it was a stupid mistake , i was using the formula block and the check profit block in OnTick tab and since market is close formula block wont get executed and the printing block was in OnTimer block , which was printing the default value stored in variable
at this moment I just realized that you use the modify variables block to modify variables rather than reusing the formula block and placing the value of the first variable on the left follow by the 2nd variable giving me a 3rd variable.
Thanks for asking that questions Z and thanks R for the response!
I am trying to use this to find candle ID for another indicators (MACD in this case).
Basically I would like to find candle ID with the highest MACD value or lowest MACD value.
However, I am kinda failed.
Can you help?
How to find candle ID within evaluation period of the highest MACD value or lowest MACD value.