Forum

Trading at specified time with OnTimer problem

Hello guys and gals, i have this very inconvenient problem. I want to place pendings orders exactly at 8:59:59 and i dont know how to do it with timer to repeat it every day. In code below every day will be x minutes away from 8:59:59 where x is 9:00 minus time you put EA in chart int OnInit () {

Problem with unexpected EA stop

Hi, i´m new to programming but trying my best. Currently i´m trying to program EA which will trade after predefined set of points e.g. open order after last trade +/- x points. My EA is working fine until one moment, When i open a trade pending order will be set +/- points only if tick will take