fulltilt:
- i need to check if the last order closed in profit ...and you posted that code. What is your problem with that code?
- but my code close also order with different magicnumberCode that you didn't post. No mind readers here.
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber2 && OrderProfit()>0) step2=1; // winner if(OrderType()==OP_BUY && OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber??? && step2==1) {
you are right, it is working!
sorroy ;-)
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 need to check if the last order closed in profit ...
if true an additional sell or buy should be closed ( 2 orders floating sell order -profit + buy order + profit) 2 different magicnumbers
but my code close also order with different magicnumber