Attached is a partial screenshot which shows individual gains/losses per trade (not using backtest mode). I've placed them using drawText...RELATIVETOTOP and would like to know if there's a manner to have them add together to another drawTextRelative location with cumulative totals. I wasn't able to find any help through "search" using "cumulative".
Partial code for this computation is:
I'm sure I'd have to learn more about bar counters but I only need this for the current day or so.
Any help is greatly appreciated!
Thanks in Advance.
kz
Partial code for this computation is:
PHP Code:
drawTextRelative(0,60,Math.round(vTargetPrice.toFixed(2)*10 - vEntryPrice.toFixed(2)*10)/10,Color.white,Color.navy,Text.RELATIVETOTOP | Text.VCENTER |
Any help is greatly appreciated!
Thanks in Advance.
kz
Comment