Can you tell me if there is a difference between calling an indicator from a strategy when the indicator is added by the code or just referenced.
e.g is
protectedoverridevoid Initialize()
{
Add(SmoothedRsiInverseFisherTransform(4,4));
....
}
protectedoverridevoid OnBarUpdate()
{
if (Rising(SmoothedRsiInverseFisherTransform(4,4)))
.....
}
different from
protectedoverridevoid Initialize()
{
stuff ....
}
protectedoverridevoid OnBarUpdate()
{
if (Rising(SmoothedRsiInverseFisherTransform(4,4)))
.....
}
Could there be therefore a difference in indicator values used by the code and those displayed ?
probably a silly question but I'm trying to locate behaviour difference in my strategy between live and backtested data.
thanks for any help
regards dave
Comment