- Search Forex Factory
- 3 Results
- danielbg replied Feb 20, 2012
I guess itīs right: double OpenPrice=OrderOpenPrice(); //if (Bid<OpenPrice){ if (LimitLength==true) { int maxDuration = LengthTrade * 60; // 60 minutes for(int pos = OrdersTotal()-1; pos >= 0 ; pos--) if ( OrderSelect(pos, SELECT_BY_POS) // Only my ...
- danielbg replied Feb 20, 2012
I tried this (without success): if (LimitLength){ int maxDuration = LengthTrade * 60; // 60 minutes for(int pos = OrdersTotal()-1; pos >= 0 ; pos--) if ( OrderSelect(pos, SELECT_BY_POS) // Only my orders w/ && OrderMagicNumber() == MagicNumber // my ...
- danielbg replied Feb 20, 2012
Help with a code — Could someone please help me with that code: extern bool LimitDuration = true; extern int DurationTrade= 15; (...) if (LimitDuration){ int maxDuration = DurationTrade * 60; for(int pos = OrdersTotal()-1; pos >= 0 ; pos--) if ...
- Posts by Member Search: 'danielbg'