How can I check if TP has changed?
-
Hello everyone
I'd like to check whether TP has changed on any of my trades. When TP is seen to have changed, then I want to send an alert. How can I do this?
I think first on Tick I have Pass, then modify variables to log current TP
Then on next Pass I have to check TP but I am not sure how to pass first TP to check take profit block. Can anyone give me some guidance?

-
you need to code that with run blocks
-
I'm not sure how to do that, I've only just started with this. I have no idea what a run block is!
As far as I know, I need to:
- Get all the current TPs for each trade (do I do that on Init? or on tick?)
- For each TP, add it to a variable(?)
- On tick, check the variable is the same (or different) to the original value
- If it is the same, do nothing
- If it is different, then send the alert
Am I on the right track here?
-
@learningfx You can create a boolean variable moving from false to true once the SL has been successfully modifed. That you can chek that variable status for any other later checking.