Can you modify this EA to move SL to Breakeven+5pips (lock 5 pips after BE) when it get 20 pips in profit? Thank you. - page 2
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
thank you , but I am not a coder :((:((
but you can read, not coding :
if this condition if(TrailingStop>0) IS TRUE - in such a case following lines will be executed, otherwise not - does your trading meet this requirement? or didn't you change TrailingStop (input parameter) to make checking this condition to give TRUE ... Think logically!...
if((OrderOpenPrice()+ (BEStopPips*MyPoint))>Bid) ...- perhaps additional brackets can help...
perhaps in your MT-build some functions are called differently... nobody has the same trading & soft environment as you, but logically the code seems to be correct at a glance
but you can read, not coding :
if this condition if(TrailingStop>0) IS TRUE - in such a case following lines will be executed, otherwise not - does your trading meet this requirement? or didn't you change TrailingStop (input parameter) to make checking this condition to give TRUE ... Think logically!...
if((OrderOpenPrice()+ (BEStopPips*MyPoint))>Bid) ...- perhaps additional brackets can help...
perhaps in your MT-build some functions are called differently... nobody has the same trading & soft environment as you, but logically the code seems to be correct at a glance
thank you
thank you
I didn't understand if you've got what you wanted ?...
but the only possible reason for violation in the calculation itself, I can assume, IS double behavior in calculations (testing needed) - some knowledge or even tricks (CompareDoubles) needed sometimes... the overall logics is normal in the code as I mentioned above...
(as well as you have double OpenPrice & int BEStopPips)