Subject : RE: Simply buy system Posted : 11/15/2017 10:05 AM Post #29682 - In reply to #29680
You can do all this with an Indicator much more easily, I suspect. Think about simulating the entries and exits in the Indicator, and keeping track of whatever stats you want to examine, also within the indicator. You can output the results via a "Debugmsg(string-variable)" command in OLang, or use "if bar = Numrec-1 then MsgBox(string-variable)" to see a popup. NOTE: the if/then with MsgBox is *important*, to prevent a repeat on every bar.