Is CurrentTimeStamp global?
yes, i toghut thats mabye the problem came from "BarShift".
vushel:
yes, i toghut thats mabye the problem came from "BarShift".
No idea, we don't know what you are doing with NewBar or BarShift . . . .
yes, i toghut thats mabye the problem came from "BarShift".
if ( signalbuy==1 && (Time[0] > last_time|| CheckOncePerBar==false) ) { OrderSend( Symbol(),OP_BUY,Ask, ........................ ) ; last_time = Time[0]; }
WDholic:
Use Time[0] != last_time. A post several years ago, reported the the broker messed up server time (current time, wrong date). When the fixed it, the EA stopped trading for several days.
Time[0] > last_time|| ...
WHRoeder:
Use Time[0] != last_time. A post several years ago, reported the the broker messed up server time (current time, wrong date). When the fixed it, the EA stopped trading for several days.
Use Time[0] != last_time. A post several years ago, reported the the broker messed up server time (current time, wrong date). When the fixed it, the EA stopped trading for several days.
thanks.. i never know that a broker can messed up server time.. :-)

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
i tried this code :
i dunno why but it's execute on the second bar since the pattern show .
thanks !