In the initialize section, I have:
zzBAR = ZigZagUTC_TL_BarCount_Fibs_v5_1(3,false,false,false,false,false,false,false,1,true,Color.Green);
double z = zzBAR[0];
But my question is, how can I pull a value from a bar other than [0]? Like [1]. Doing something like zzBAR.lastlo[1] obviously won't work. Do I have to make a zzLASTBAR with double x = zzLASTBAR[1]; ? Or is there another cleaner way?
edit::: Forgot to mention there is the following in the variables:
private ZigZagUTC_TL_BarCount_Fibs_v5_1 zzBAR;
Comment