I'm fairly new to coding and have been grateful for all the available resources and threads that are available on this site to help with learning. That said, I'm at a roadblock in terms of creating this strategy where I'd like to plot an editted Bollinger Band with a modified displacement value.
Basically, I'd like to use Bollinger Bands with a displacement that pushes it to the left (negative values in the displacement box of the indicator seems to move it to the left, whereas positive moves it to the right) in my strategy in which when and if a moving average crosses over the middle band, it initiates a trade. I'm having trouble hard-coding the visual part into my strategy, where I use Displacement = -2; (since it appears that negative values shifts it to the left) followed by AddPlot(Brushes.Seashell, "ModifiedBollinger"); I've also used the "BarsAgo" parameter in the Strategy Builder, in which it seems to actually take effect in terms of outputting the correct data for computation. However, both parameters, BarsAgo and hard-coding in Displacement, does not seem to change the visual plot, no matter what value is inserted (negative or positive).
From past insight, it seems that hard-coding the visual shift would be the way to correctly do this, but as a person with no experience of coding, I do not have the slightest idea on how to do it correctly in NinjaScript. Any help is appreciated, and I thank you for your time!
Comment