https%3A//i.imgur.com/IOk3bnP.jpg[/img]']
Hi, I would like to create a plot for the white arrows on the DAILY Chart when these conditions are met
1. The Weekly DPO line is below the Zeroline
2. 10Week EMA is below 30Week EMA
3. Weekly Close is greater than previous week close
Overview,
On left chart, the white arrows near the 4 white dotted lines are invalid because, the DPO line is above zeroline, marked on the Weekly chart.
The only valid WHITE arrow is being marked by the Blue line.
I am not sure if this is possible, and like to seek some help.
Thanks
#white arrow plot
Plot Trend1 = MovAvgExponential(close, 10);
Trend1.AssignValueColor(if close > Trend1 then Color.GREEN else Color.RED);
Trend1.SetLineWeight(1);
Plot Trend2 = MovAvgExponential(close, 30);
Trend2.AssignValueColor(if close > Trend2 then Color.GREEN else Color.RED);
Trend2.SetLineWeight(2);
Plot white = close > Trend1 and close<trend2 and Trend2 > Trend1;
white.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
white.SetLineWeight(3);
L5.AssignValueColor(COLOR.white);
##
input price = close;
# DPO parameters
input colorNormLength = 3;
input DPO_length = 14;
# MOBO parameters
input ColoredMobo = yes;
input ColoredFill = yes;
input BreakArrows = yes;
input MOBO_midline = no;
input MOBO_displace = 0;
input MOBO_length = 6;
input Num_Dev_Dn = -0.8;
input Num_Dev_Up = +0.8;
# Fuel Cell (MACD) inputs
input showMACD = no; # Turns the Fuel Cells on (yes) or off (no).
input MACDfastLen = 10; # standard MACD parameter.
input MACDslowLen = 15; # standard MACD parameter.
input MACDLen = 10; # standard MACD parameter.
input MACDScaling = 50; # Enlarge or shrink FuelCell size.
input MACDWidth = 3; # Width of individual FuelCell elements.
input MACDColors = {default "Cyan_Only", "Cyan_Magenta", "Red_Green"};
input level =-1;
plot Zeroline = 0;
ZeroLine.SetDefaultColor(GetColor(5));
plot DPO = price - Average(price[DPO_length / 2 + 1], DPO_length);
DPO.DefineColor("Highest", Color.Yellow);
DPO.DefineColor("Lowest", Color.Light_Red);
DPO.AssignNormGradientColor(colorNormLength, DPO.color("Lowest"), DPO.color("Highest"));
Hi, I would like to create a plot for the white arrows on the DAILY Chart when these conditions are met
1. The Weekly DPO line is below the Zeroline
2. 10Week EMA is below 30Week EMA
3. Weekly Close is greater than previous week close
Overview,
On left chart, the white arrows near the 4 white dotted lines are invalid because, the DPO line is above zeroline, marked on the Weekly chart.
The only valid WHITE arrow is being marked by the Blue line.
I am not sure if this is possible, and like to seek some help.
Thanks
#white arrow plot
Plot Trend1 = MovAvgExponential(close, 10);
Trend1.AssignValueColor(if close > Trend1 then Color.GREEN else Color.RED);
Trend1.SetLineWeight(1);
Plot Trend2 = MovAvgExponential(close, 30);
Trend2.AssignValueColor(if close > Trend2 then Color.GREEN else Color.RED);
Trend2.SetLineWeight(2);
Plot white = close > Trend1 and close<trend2 and Trend2 > Trend1;
white.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
white.SetLineWeight(3);
L5.AssignValueColor(COLOR.white);
##
input price = close;
# DPO parameters
input colorNormLength = 3;
input DPO_length = 14;
# MOBO parameters
input ColoredMobo = yes;
input ColoredFill = yes;
input BreakArrows = yes;
input MOBO_midline = no;
input MOBO_displace = 0;
input MOBO_length = 6;
input Num_Dev_Dn = -0.8;
input Num_Dev_Up = +0.8;
# Fuel Cell (MACD) inputs
input showMACD = no; # Turns the Fuel Cells on (yes) or off (no).
input MACDfastLen = 10; # standard MACD parameter.
input MACDslowLen = 15; # standard MACD parameter.
input MACDLen = 10; # standard MACD parameter.
input MACDScaling = 50; # Enlarge or shrink FuelCell size.
input MACDWidth = 3; # Width of individual FuelCell elements.
input MACDColors = {default "Cyan_Only", "Cyan_Magenta", "Red_Green"};
input level =-1;
plot Zeroline = 0;
ZeroLine.SetDefaultColor(GetColor(5));
plot DPO = price - Average(price[DPO_length / 2 + 1], DPO_length);
DPO.DefineColor("Highest", Color.Yellow);
DPO.DefineColor("Lowest", Color.Light_Red);
DPO.AssignNormGradientColor(colorNormLength, DPO.color("Lowest"), DPO.color("Highest"));