I have the code below:
if(High[0]>High[1] && Low[0]>=Low[1])
{
plusDm=Close[0] - Close[1];
}
else if(High[0]>High[1] && Low[0]<Low[1] &&
(High[0]-High[1]) > (Low[1]-Low[0]))
{
plusDm=Close[0] - Close[1];
}
else
{
plusDm=0.0;
}
Plot.Set(plusDm);
This is not working and general i can't work with prices.
Another example that doesn't return anything:
Plot.Set(High[10]-Low[10])
Thank you.
Comment