I have being trying to apply my V-WAP analysis to an index on Tradestation using this code
[LegacyColorValue = true];
inputs:
UpColor(Blue),
DownColor(Red);
vars:
Answer(0),
U_MPD (0),
L_MPD (0);
Answer = VWAP_H;
U_MPD = VWAP_H + ((highD(0)-lowD(0))/2);
L_MPD = VWAP_H - ((highD(0)-lowD(0))/2);
if AvgPrice >= Answer then
SetPlotColor(1,DownColor)
else
SetPlotColor(1,UpColor);
Plot1(Answer,"VWAP");
Plot2 (U_MPD,"Upper");
Plot3 (L_MPD,"Lower");
However it does not want to plot on any of the indexes, it works fine on shares.
Any suggestions greatly appreciated
[LegacyColorValue = true];
inputs:
UpColor(Blue),
DownColor(Red);
vars:
Answer(0),
U_MPD (0),
L_MPD (0);
Answer = VWAP_H;
U_MPD = VWAP_H + ((highD(0)-lowD(0))/2);
L_MPD = VWAP_H - ((highD(0)-lowD(0))/2);
if AvgPrice >= Answer then
SetPlotColor(1,DownColor)
else
SetPlotColor(1,UpColor);
Plot1(Answer,"VWAP");
Plot2 (U_MPD,"Upper");
Plot3 (L_MPD,"Lower");
However it does not want to plot on any of the indexes, it works fine on shares.
Any suggestions greatly appreciated