Fayetteville,Arkansas
Posts: 4 since Jul 2016
Thanks Given: 5
Thanks Received: 1
|
low 21
declare upper;
def loday = lowest(low, 21 );
plot sigday = if( loday[1] == low[1] and close > high[1] ) or ( loday[2] == low[2] and close > high[2] ) or ( loday[3] == low[3] and close > high[3] ) or ( loday[4] == low[4] and close > high[4] ) then yes else Double.nan;
##
sigday.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
sigday.SetDefaultColor(Color.GREEN);
****************************************************************************************
Hi 21
declare upper;
#input displace = 0;
def hiday = Highest(high, 21 );
#plot sigday = ( hiday[1] and close < low[1]) or ( hiday[2] and close < low[2]) ;
plot sigday = if( hiday[1] == high[1] and close < low[1] ) or ( hiday[2] == high[2] and close < low[2] ) or ( hiday[3] == high[3] and close < low[3] ) or ( hiday[4] == high[4] and close < low[4] ) then yes else Double.nan;
##
sigday.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
sigday.SetDefaultColor(Color.GREEN);
This is the best I could do.
|