Yellowbeard1781:
Trying to count the number of times that the Ask price goes above the High of the day. Only seem to get zero, with the following
code. Can someone tell me what I'm doing wrong or missing? Seems like this should be pretty simple. Perhaps code is
only being seen as a true or false condition.
Thanks!
I think start() is deprecated.
You want to look up Event Handling Functions to determine where you want to do your testing. OnStart() and OnInit() aren't the correct place as
these are only used for initialization. You probably want OnTick() for an EA or OnCalculate() for an indicator.
Yellowbeard1781: Trying to count the number of times that the Ask price goes above the
High of the day. Only seem to get zero, with the following code.
You are resetting the count to zero each tick.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Trying to count the number of times that the Ask price goes above the High of the day. Only seem to get zero, with the following code. Can someone tell me what I'm doing wrong or missing? Seems like this should be pretty simple. Perhaps code is only being seen as a true or false condition.
Thanks!