Here is a quick little study I created to show the current PL for any open positions on the current symbol at the top of the current candle. This is meant for day trading / scalping (may not show on higher time frames).
Ruby:
#Sase
#Add bubble above the the current candle if there is an open position
#If PL is positive then green else yellow
Def PL = GetOpenPL();
AddChartBubble (GetQuantity () != 0 and isnan(close[-1]), high, PL,If PL > 0 Then Color.GREEN Else Color.YELLOW, Yes);
Last edited: