Search found 1 match
- Tue Oct 03, 2017 10:24 pm
- Forum: MetaTrader
- Topic: Code Help
- Replies: 0
- Views: 3288
- Gender:
Code Help
Trying to get the profit of the order just closed and add that to my previous TpAmount variable ... Would this work? double ticket=OrderSelect(i,SELECT_BY_POS,MODE_TRADES); if(OrderType()>=2 || OrderMagicNumber()!=MyMagic) continue; Print("* Closing ... ",OrderSymbol(),". Ticket #&quo...