Iam trying to acces the TSSuperTrend value for an MA condition...
I came up with this but run into a problem of:
"MovingAverageType and 'SuperTrendMode'" does not exist in the corrent contex...
Here is the code:
if(TSSuperTrend(14,MovingAverageType.HMA,2.618,14, SuperTrendMode.ATR).UpTrend[0] == TSSuperTrend(14,MovingAverageType.HMA,2.618,14,Sup erTrendMode.ATR).UpTrend[1])
{
Plot0.Set(1);
}
else
{
Plot0.Set(0);
}
Not sure what is wrong with this... any help is appreciated...
Thanks,
R.T.
Comment