elfunambolo: The orders should be opened at 4:30:00 instead of 4:40:00
- Your clock vs your brokers is off by 10 minutes.
valSL = (1 + iLow(NULL,0,CandelaLow) - 1 - (MODE_SPREAD / 10) );
Mode spread is a constant, an enumeration to be used in market info.MODE_SPREAD
13
Spread value in points
what do you think 13/10 is?. What do you think the candle low - 1 is. Bogus except on for JPY pairs and that chart.if ((Close[1]- valSL) > 3 ) return; //se SL > 30 pips
That's not 30 pips. That's not 30 points. That is 3. Bogus except on that chart. You are not adjusting SL, TP, and slippage; for 4/5 digit brokers and for JPY pairs. For metals try: How to manage JPY pairs with parameters? - MQL4 and MetaTrader 4 - MQL4 programming forum (Item 3) #3- You must RefreshRates between server calls.
whroeder1:
- Your clock vs your brokers is off by 10 minutes.
- Mode spread is a constant, an enumeration to be used in market info.
MODE_SPREAD
13
Spread value in points
what do you think 13/10 is?. What do you think the candle low - 1 is. Bogus except on for JPY pairs and that chart. - That's not 30 pips. That's not 30 points. That is 3. Bogus except on that chart. You are not
adjusting
SL, TP, and slippage; for 4/5 digit brokers
and for JPY pairs.
For metals try: How to manage JPY pairs with parameters? - MQL4 and MetaTrader 4 - MQL4 programming forum (Item 3) #3
- You must RefreshRates between server calls.
1. How can I check if I have 10 minutes of shift between clocks? I checked with broker and it has same time of my Market watch
Files:
Market_watch.JPG
87 kb
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
Hello,
I have an EA that open #3 orders after candle close (if some conditions are true). The issue is that the orders are opened after 10 minutes from candle closing (see attached screenshot of Journal and chart). The orders should be opened at 4:30:00 instead of 4:40:00
Can you help me to understand why it happened?
Thanks
Giovanni