MD Hafijul:
Hi,
I have a simple if condition, if true then send order. The condition consists of multiple &&'s.
is it possible to enable disable one &&(Condition) from input panel?
I actually want to enable/disable that "&& CurrentBar!=LastOrderOpenBar" part of the code.
Thanks in advance!
input BarCheck = true; if ( ((Bull>50 && diff1<20)||(Bull>80 && diff1<30)||(Bull>30 && diff1 <6)) && total <1 && Ask -50 > MovingAverage && Spread < AllowedSpread) if((BarCheck == true && CurrentBar != LastOrderOpenBar) || BarCheck == false) int orderTicket = OrderSend(NULL,OP_BUY,2,Ask,5000,Ask-50,Ask+120,"Buy_Trailing Stop",MagicNumber);I have removed your erroneous IFs as well
Paul Anscombe:
I have removed your erroneous IFs as well
I have removed your erroneous IFs as well
Hahaha, Thank you very much!

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
Hi,
I have a simple if condition, if true then send order. The condition consists of multiple &&'s.
is it possible to enable disable one &&(Condition) from input panel?
I actually want to enable/disable that "&& CurrentBar!=LastOrderOpenBar" part of the code.
Thanks in advance!