Free Programmer for Profitable Strategies
Broker Challenge "NDD/STP" vs. True "ECN" and "Mkt Mkr" broker talk 46 replies
Dealing with "Invalid Price", "Requote", "Server Busy" in MT4 3 replies
The old "Control Points" vs. "Every Tick" testing question 2 replies
loop: passing Array to function question? 8 replies
Using Bid in While Loop? 11 replies
DislikedThanks for your repllies.
How about when:
- Counting open trades
- Modifying trades
- Closing Trades
- Deleting trades
Which route shall I choose?
Ignored
DislikedOpentrades use the OrdersTotal function to get all orders or if you are counting for a particular pair use an incremental counter
modifying incremental
Closing trades if you are closing all trades you can use a while loop and loop it while orderstotal >0 For closing all orders for a certain pair you will need to use an incremental counter BUT each time you close an order you need to reset the counter back to the beginning. This is because of how orders are indexed when you use the orderselect functionIgnored
DislikedThank you all for replying.
When you say "use an incremental counter" do you mean the "for loop" counter which ends in (i++)? If this is the case, what is the technical name for the opposite counter which ends in (i--)?Ignored
DislikedHi,
Question About the "For Loop".
When does one use "for (i=0;i<limit;i++)" and not "for (i=limit;i>0;i--)" or vica versa? In other words, when one has to count from 1 to 10 or the opposite?
Regards.Ignored
DislikedThanks for your repllies.
How about when:
- Counting open trades
- Modifying trades
- Closing Trades
- Deleting trades
Which route shall I choose?
Ignored
DislikedClosing trades if you are closing all trades you can use a while loop and loop it while orderstotal >0 For closing all orders for a certain pair you will need to use an incremental counter BUT each time you close an order you need to reset the counter back to the beginning. This is because of how orders are indexed when you use the orderselect functionIgnored