Like the function says it runs every tick...
jamesh99:
Hi
If I am using an EA whose logic runs using the OnTick() event, and it is linked to a chart whose timeframe is M1 then will trades ONLY occur at minute start/ends, or is an intra-minute trade possible?
Thanks.
The EA is executed on every tick - particulary OnTick() method. So for example if during 1 munites it will be 100 ticks then OnTick() will be called 100 times. So in general if you want to control minute's start-end you'll need to do it manually - for example
datetime currTime = TimeCurrent(); if(TimeSeconds(currTime ) == 0) { .... }
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
Hi
If I am using an EA whose logic runs using the OnTick() event, and it is linked to a chart whose timeframe is M1 then will trades ONLY occur at minute start/ends, or is an intra-minute trade possible?
Thanks.