When i set my End Hour to 15 and i started it with strategic tester when the local hour and Current Hour goes to 15 the order is still open and not deleted as i set my End Hour.
can you elaborate more
thank you in advance
cheers!
Hey its an amazing code, but why I dont understand how End Hour works?
When i set my End Hour to 15 and i started it with strategic tester when the local hour and Current Hour goes to 15 the order is still open and not deleted as i set my End Hour.
can you elaborate more
thank you in advance
cheers!
As attached picture, plz erase the charaters in red rectangle, after it will run with endhour
if(last != iTime(m_symbol.Name(), PERIOD_D1, 0))// && hourCurrent > InpStartHour) { //Check Trading time if(isTradingTime) { if(hourCurrent >= InpStartHour) // && hourCurrent < InpEndHour){
if you mean this code that i should erase the caracter "//", and End Hour still doesnt work.
If you can show the exact code i should erase it will help me a lot
Thanks in advace
cheers!
if you mean this code that i should erase the caracter "//", and End Hour still doesnt work.
If you can show the exact code i should erase it will help me a lot
Thanks in advace
cheers!
if(last != iTime(m_symbol.Name(), PERIOD_D1, 0)) { //Check Trading time if(isTradingTime) { if(hourCurrent >= InpStartHour && hourCurrent < InpEndHour) { DeleteOldOrds(); //Send Order BUY_STOP va SELL_STOP OpenOrder(); last = iTime(m_symbol.Name(), PERIOD_D1, 0); } } else { DeleteOldOrds(); //Send Order BUY_STOP va SELL_STOP OpenOrder(); last = iTime(m_symbol.Name(), PERIOD_D1, 0); } }
if(last != iTime(m_symbol.Name(), PERIOD_D1, 0)) { //Check Trading time if(isTradingTime) { if(hourCurrent >= InpStartHour && hourCurrent < InpEndHour) { DeleteOldOrds(); //Send Order BUY_STOP va SELL_STOP OpenOrder(); last = iTime(m_symbol.Name(), PERIOD_D1, 0); } } else { DeleteOldOrds(); //Send Order BUY_STOP va SELL_STOP OpenOrder(); last = iTime(m_symbol.Name(), PERIOD_D1, 0); } }
i have tired this code but nothing happens when i use strategic tester i tried optimizing end hour with "Start 10; Step 1; Stop 22" and they have same result.
is there any missing part or something that i dont understand how it works?
i have tired this code but nothing happens when i use strategic tester i tried optimizing end hour with "Start 10; Step 1; Stop 22" and they have same result.
is there any missing part or something that i dont understand how it works?
I also tried to visualized it using 10 as an End Hour, but after the time goes 11,12,.... there is still remain the pending order that not trigerred.Thank you, Cheers!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Lazy Bot MT5 (Daily Breakout EA):
- This Bot use stratery Breakout of Daily Bar, I tested for 3 Pair currency : GBPUSD, EURUSD, XAUUSD - Default setting is not sure the best, you can test for your parameter. - This is version for MT5 that convert from MT4 - this EA is best for broker low spread
Author: Nguyen Quoc Hung