A coding question for NT7. I have a 5Min chart which I sometimes switch to 15Min and back. Depending on which of the two timeframes is in use I want a certain EMA to show. Let's say when I am using the 5min chart I want to see an EMA40, when I switch it to 15Min I do not want to see the EMA40 but an EMA80. Is there a way to put this into the code? Perhaps something like this:
protected override void OnBarUpdate()
if (PrimaryDataSeries=5min)
{
show EMA 40
remove EMA80
}
else if (PrimaryDataSeries=15min)
{
show EMA 80
remove EMA40
}
My question is how to express the parts in bold in correct coding language.
sandman
Comment