Jim Dean![]() Sage ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3433 Joined: 3/13/2006 Location: L'ville, GA ![]() | 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. |