Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
HI,
I have a few indicators that I set a Global trigger to eg TriggerHit=Sell.
What I am trying to do is count the candles after the trigger so that I can reset the Trigger to=Null.
I have looked at iBarShift, I also need to have it run the routine only once per candle/tick.
i've probably got it completely wrong.
1) Check that its a new candle before doing the function.
2) Counting the candles after trigger is set.
Any help is gratefully appreciated.