Not clear question for me, but this could help ...
On every tick a new data like Ask, Bid and Volume is changing, but you as a programmer can decide whenever you want to open, close or modify your order based on your own strategy.
For example, at the every open of new bar, check your rules/conditions to make a new decision, or when Bid > MA(50) close your opened Sell trade, ... etc.
This way, you didn't rely on every tick, but at open of new bars or a specific rule/condition.
Do I answered you? Do I understand what you mean?
yes is possible to run
OnTimer();
Not clear question for me, but this could help ...
On every tick a new data like Ask, Bid and Volume is changing, but you as a programmer can decide whenever you want to open, close or modify your order based on your own strategy.
For example, at the every open of new bar, check your rules/conditions to make a new decision, or when Bid > MA(50) close your opened Sell trade, ... etc.
This way, you didn't rely on every tick, but at open of new bars or a specific rule/condition.
Do I answered you? Do I understand what you mean?
Thank you, but that's not i need.
yes is possible to run
Okay, Thank you.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
We know that EA that works in function OnTick() runs based on ticks.
My question is, is it possible to write an EA based on time but not based on ticks? Thank you.