9nix6 / Median-and-Turbo-Renko-indicator-bundle

MQL5 header file for 'Median and Turbo renko indicator bundle' available for MT5 via MQL5 Market. The file lets you easily create a Renko EA in MT5 using the Median Renko indicator.
https://www.mql5.com/en/market/product/16347
GNU General Public License v3.0
80 stars 38 forks source link

EA 2MA_Cross - trading schedule don't work #7

Closed smash31 closed 2 years ago

smash31 commented 2 years ago

Hi. In EA 2MA_Cross, schedule trading does not seem to be working. The EA makes an order even if the time is not included in the scheduling hours. In the code, there isn't if condition before market orders (line 350 of 2MA_Cross.mq5). I suggest to add this condition at the line 350 and close it to 400 : if(!timeControl.IsScheduleEnabled() || timeControl.IsTradingTimeValid()) {} I'm french. Sorry for my approximatively english.

Thanks for your work !!

9nix6 commented 2 years ago

Updated. Thank you for contributing.