I could create
Int longTrades, and increment it as part of my long entry code;
Int shortTrades, and increment it as part of my short entry codes;
Int allTrades, which is a sum of the above two lines.
But this morning I found the following:
int allTrades = Performance.AllTrades.Count;
int longTrades = Performance.LongTrades.Count;
int shortTrades = Performance.ShortTrades.Count;
and have implemented it "onBarUpdate"
Regrettably, every time the bar updates (tick bar) and trades have been executed that should increment these values, the values print out as zero.
Any thoughts?
Perhaps I am missing a piece of code involving "Get" these values?
Ty in advance,
Andrew
Comment