First Time With Variables. Trying to get Bar Counter to work
-
Hello!
I am using a varaible and am trying to get it to count bars. After 3 bars i want the trade to close. I found the following link and tried to copy it:
http://fxdreema.com/forum/topic/6986/check-age-based-on-candles/2
It didn't fully work for me though. I cant seem to get the EA to close the trade after 3 candles. What am I doing wrong?
Thanks for the help while I learn this program!
-
- Remove the 'modify variables' block on the right. You are modifying the variable twice.
- Substritute the 'close' block by a blue 'Close trades' block. The pink one requires a 'For each trade' block that is not there.
-
Thank you. You solved it for me again!
-
You are welcome.