Add a trigger to start the search for an exit

Often when trading, an event will trigger the search for an exit, but may not be when you actually want to exit. 



For example you may be trading a channel up, then price breaks below the channel but isn't a good exit point, it should just be a trigger to find a good exit based on the exit strategy.


If SQX had a trigger event to look to close out using the close strategy, this would be ideal! Otherwise there is no way to track that the trigger event has happened as you can't reference it.

Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Feature
  • Status Waiting for information
  • Priority Normal
  • Assignee None

History

m
#1

mattedmonds

15.01.2021 03:57

Task created

m
#2

mattedmonds

15.01.2021 04:23
Voted for this task.
MF
#3

Mark Fric

16.01.2021 19:54

Status changed from New to Waiting for information

sorry, I don't understand how you mea it, can you explain it better? Ideally write some pseudo code how it is supposed to work.
m
#4

mattedmonds

16.01.2021 20:48
Hi Mark,


Normally an exit condition would require the reason for the exit to be present at the time that the exit occurs. 


In my example above, in a long trade, you are trading a channel upwards, and the price breaks below the channel. This is a reason to exit the trade, but may not be the best time to exit the trade, it should only exit the position following breaking below the channel being a trigger, then search for the best exit using the exit strategy.


The actual ideal exit may be when the position is back inside the channel again. In the current exit methodology, it wouldn't recognise that an exit was needed, if back inside the channel again. A trigger to search for an exit would solve this.


Code logic would be something like:

If Exit trigger  1 conditions met

Then Exit strategy 1 is activated

When exit strategy 1 conditions are met, trade is exited based on those rules.


Until the trigger conditions are met, exit strategy 1 isn't in play.


Note that the trigger conditions may not be in play at the time that the trade is exited. This can't currently be programmed in SQX.


In the example above Exit Trigger 1 could be: close < channel low.

Exit strategy 1 when Exit Trigger 1 has activated it, could be: close > channel low (where channel resistance is met).


This would be a much better exit than an exit at the time that the trigger condition caused the search for an exit.


Also I just wanted to thank you for this great program. I am getting a lot of value from it and your support team have been great. Really impressed!


If you can get your team to get the Darwinex tick data that is available up to date that would be fantastic. For example GBPJPY has just 3 months of data with 3 years missing. Many pairs are fully up to date, while many others have years missing for no reason.


Thanks,

Matt


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please