L0rd1:
What do you see in the original code to prevent 2 trades being opened in the same hour ?
Hello,
here we have one sell order at 13:00, but next sell order at 13:12 is to much
nothing, i can't understand logical how it can work with this 2 lines:
if((TimeHour(TimeCurrent())>TradeTime)) cantrade=true; //here current time musst be grater than 13 and if((TimeHour(TimeCurrent())==TradeTime)&&(cantrade)) // here current time ist equal 13
L0rd1:
And 13:12 is which Hour ?
nothing, i can't understand logical how it can work with this 2 lines:
if((TimeHour(TimeCurrent())>TradeTime)) cantrade=true; //here current time musst be grater than 13 and if(( TimeHour (TimeCurrent())==TradeTime)&&(cantrade)) // here current time ist equal 13
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 try to get LotScalp EA https://www.mql5.com/en/code/10604 to trade at 2 different times a day, but one trade at once at same hour.
As default do LotScalp EA trade one time a day as defined( 7 o'clock)
so i modifyed original code ....
by adding this
and setting extern int Orders=10; to extern int Orders=1;
and it works, if i define (Time_1=13; and Time_2=23;) EA opens two orders for 13 o'clock, but it have to open just one order and after this order closed (by TakeProfit) the next order can be opened at one of defined hours. One opened order at once and at one defined hour.
here we have one sell order at 13:00, but next sell order at 13:12 is to much
I hope you understand me :) and hope you can help me
thanks