I was using the following code to add some info to an Alert message in an indicator (NT 7 rev 9).
message = BarsPeriods[0].Value+BarsPeriods[0].Id+" "+message;
Should be cool. It was running on a 5 minute YM ##-## chart using Simulated Data Feed.
The results I got were:
first two alerts said the Period was "Day".
All the rest said the period was "HeikenAshi".
There are only four charts in the workspace open, and only one running the indicator which can produce these particular alerts. None of the charts are Day or HeikenAshi.
I used BarsPeriods[0] instead of BarsPeriod out of habit. It should be the same thing of course. There is only one timeframe (the chart's) in this indicator.
Cheers,
saltminer
p.s. I changed it to BarsPeriod and recompiled. It says "Day" again on a 1 minute chart.
Comment