I am curious if there is a reason that OrderTotals() loop doesn't work in strategy tester(MT4build445)..
My expert is written that when there are no open orders, i'm expecting the ea to print to journal - that it did not select any orders(in strategy tester).
Just trying to get an order out of my EA at the moment.
//=problems when using strategy tester=
// 1. gets signal one bar late.
// 2. doesn't open an order.
// A. doesn't print if it has found an order.
// B. doesn't print if it has NOT found an order like "No orders are open at this time or EA could not select its order(s)."
// 3. can run slow on strategy tester on speed="31".
code is attached because "text too long." came up when trying to post with SRC.
sure this has worked before..
WAS Trying to see a print "No orders are open at this time or EA could not select its order(s)." if there are no orders.
now works though.. some reason i had orderstotal - 1 and >=0 so no nested else if there..
If you feel inclined, a little experiment.
Just before your line of code that places an Order add a line of code that creates an Object, any Object it doesn't matter and then duplicate the exact same line of code so the same object with the same object name is created twice. I suspect that this will cause the IBFX - Quick Scripts.mqh code to see an error that comes from the Object creation and it will fail to set the SL & TP for the Order.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.