NW Florida
Experience: Intermediate
Platform: OX and TOS
Trading: Futures Options, Stocks
Posts: 234 since Aug 2012
Thanks Given: 29
Thanks Received: 115
|
Soooo...I am trying to create a multi-time frame RSI label but having some issues. The label works for the current chart but the daily label is blacked out. I have tried some other inputs or structure but the best I could get was this or the daily label is pegged at 50....any thoughts?
declare upper;
input length = 14;
input RSIOverbought = 70.00;
input RSIOversold = 30.00;
#input aggregationPeriodday = AggregationPeriod.dAY;
#input aggregationPeriodmin = AggregationPeriod.MIN;
def RSID = reference RSI(length, price = close(period = "day" )).RSI;
def RSIchart = reference RSI(length,price = close).rsi;
AddLabel(yes, "RSIDay: " + Round(RSID, 2), if RSID >= RSIOverbought then Color.RED else if RSID <= RSIOversold then Color.GREEN else Color.WHITE);
AddLabel(yes, "RSI: " + Round(RSIchart, 2), if RSIchart >= RSIOverbought then Color.RED else if RSIchart <= RSIOversold then Color.GREEN else Color.WHITE);
Thanks
|