Hey Guys,
Very new to here, Was wondering if someone could help me figure out why
Code: http://tos.mx/EpvMk2M
Below is what I wrote,
Everythign seems to be working fine ;however, on the weekly add on labels I keep on getting N/A on the 1mn time frame and I am not sure why it is giving this issue
Would appreciate it if someone could tell me what im doing wrong.
Very new to here, Was wondering if someone could help me figure out why
Code: http://tos.mx/EpvMk2M
Below is what I wrote,
Code:
def SMA4H200 = SimpleMovingAvg(close (period = AggregationPeriod.FOUR_HOURS), 200);
AddLabel(yes, "4H200=" + Round(SMA4H200,0) , Color.magenta);
def SMA4H50 = SimpleMovingAvg(close (period = AggregationPeriod.FOUR_HOURS), 50);
AddLabel(yes, "4H50=" + Round(SMA4H50,0) , Color.magenta);
def SMAD200 = SimpleMovingAvg(close (period = AggregationPeriod.DAY), 200);
AddLabel(yes, "D200=" + Round(SMAD200,0) , Color.YELLOW);
def SMAD50 = SimpleMovingAvg(close (period = AggregationPeriod.DAY), 50);
AddLabel(yes, "D50=" + Round(SMAD50,0) , Color.YELLOW);
def SMAW200 = SimpleMovingAvg(close (period = AggregationPeriod.WEEK), 200);
AddLabel(yes, "W200=" + Round(SMAW200,0) , Color.CYAN);
def SMAW50 = SimpleMovingAvg(close (period = AggregationPeriod.WEEK), 50);
AddLabel(yes, "W50=" + Round(SMAW50,0) , Color.CYAN);
Everythign seems to be working fine ;however, on the weekly add on labels I keep on getting N/A on the 1mn time frame and I am not sure why it is giving this issue
Would appreciate it if someone could tell me what im doing wrong.