Ok thanks for that.... in that case is there anyway to do a check before the automatic take profit or stop loss functions are executed. I want to save the value of an indicators, ATR lets say, on the iteration they are executed.
is that possible anyhow...?
Ok thanks for that.... in that case is there anyway to do a check before the automatic take profit or stop loss functions are executed. I want to save the value of an indicators, ATR lets say, on the iteration they are executed.
is that possible anyhow...?
Thanks for that Raptor, will give that a go... one more thing, is the automatic take profit / stop loss checked at the beginning or end of the iteration...?
The execution of SL and TP is handled at the Brokers end so isn't really relevant . . . everything within your start() should be executed on the same tick, but this might not e the case if you have extensive code.
Checking if an Order has closed as I have suggested should be done early on in the start() function, if for no other reason than for it to be not missed due to any early return() statements you my have in there.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi All,
Just wanted to ask is there anyway to change the take profit and stop loss messages in the journal...? Examples below
Stop Loss
Take profit
Kind Regards
Jesse