Renz Carillo:
I couldn't figure out what's wrong with my code, i've tried everything i could think of. The buy and sell position is working but the order limit,stop,and stop limit part isn't working.
I figured it out the loop is getting stopped when it could not select the position symbol or position magic number, since it is an order and not a position therefore orderSymbol!=Symbol() would always be true,so what i did is just remove the code below:
if(orderSymbol!=Symbol() || orderMagicNumber!= inpMagic ) continue; //if(orderPendingSymbol!= Symbol() || orderPendingMagicNumber!= inpMagic) continue;

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
I couldn't figure out what's wrong with my code, i've tried everything i could think of. The buy and sell position is working but the order limit,stop,and stop limit part isn't working.