Cribbage
Member
I didn't see this posted anywhere so I whipped it up real quick for a scalp strategy I've been working on. Makes it easier for me to see my entries when I don't want to hove my mouse over the candle or guess where a high/low is. Anyway, these labels just show you the previous candles Open-High-Low-Close-Range. Its pretty simple and easy to customize. Enjoy.
Code:
#Previous Open-High-Low-Close-Range (POHLCR) Labels
#Cribbage 7/11/2022
input O = no;
input H = yes;
input L = yes;
input C = no;
input R = yes;
input Back = 1; #How many candles back you want PCOHLC to look.
def PO = open[Back];
def PH = high[Back];
def PL = low[Back];
def PC = close[Back];
Def Range = PH-PL;
addlabel(O, "Open[1]: " + PO, color.yellow);
addlabel(H, "High[1]: " + PH, color.green);
addlabel(L, "Low[1]: " + PL, color.red);
addlabel(C, "Close[1]: " + PC, color.dark_orange);
addlabel(R, "Range[1]: " + Range, color.cyan);
#Cribbage End Code