Cwparker23
Member
Code:
################################
# Original script by Cwparker23#
################################
#-----------------
#- DISCLAIMER
#-----------------
#- I am not a certified financial advisor. The content of this page/site and tools are for informational purposes only and does not constitute financial or legal advice. Under no circumstances will the author be responsible for errors or use of this tool and site. User assumes all risks.
def o = open;
PLOT h = high;
PLOT l = low;
PLOT c = close;
H.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
H.SetDefaultColor(Color.RED);
L.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
L.SetDefaultColor(Color.green);
C.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
C.SetDefaultColor(Color.white);
c.SetLineWeight(3);
DEF BUY = (C - L);
DEF SELL = (H -C);
#Bull
def HAhigh = C;
def HAlow = L ;
def HACLOSE = C ;
def HAOPEN = O ;
DefineGlobalColor("Buy", Color.UPTICK);
#GlobalColor("VOL > 2STD BULL")
DefineGlobalColor("Sell", Color.lIGHT_RED );
#GlobalColor("Sell")
AddChart(growColor = GlobalColor("Buy"), fallColor = GlobalColor("Sell"), neutralColor = Color.CURRENT,
high = HAhigh,
low = HAlow,
close = HAlow,
open = HACLOSE,
type = ChartType.CANDLE);
#bear
def HAhighX = H ;
def HAlowX = C;
def HACLOSEX = C ;
def HAOPENX = O ;
AddChart(growColor =GlobalColor("Sell"), fallColor = GlobalColor("Buy"), neutralColor = Color.CURRENT,
high = HAhighX,
low = HAlowX,
close = HACLOSEX,
open = HAhighX,
type = ChartType.CANDLE);