- Search Crypto Craft
- 3 Results
-
danielbg replied Feb 20, 2012I 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 ...
How to close trade in Metatrader after amount of time or bars
-
danielbg replied Feb 20, 2012I 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 ...
How to close trade in Metatrader after amount of time or bars
-
danielbg replied Feb 20, 2012Help 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 ...
How to close trade in Metatrader after amount of time or bars
- Posts by Trader Search: 'danielbg'