// Initialize method of a custom indicator
protected override void Initialize()
{
Add(new Plot(Color.Orange, "SMA"));
Displacement = 2; // Plots the indicator value from 2 bars ago on the current bar
}
I get the following: The name 'Displacement' does not exist in current context
Comment