I am not s skillful programmer.
I am using NT7 currently on live-trading from more than 2 years.
Now I am thinking to migrating slowly to NT8, and start trying the strategy script for NT8.
I need help on how to plot from strategy script on NT8.
In particular, this is the main plotting part of my strategy script in NT7:
===========================
Add(StrategyPlot(0));
Add(StrategyPlot(1));
Add(StrategyPlot(2));
Add(StrategyPlot(3));
Add(StrategyPlot(4));
Add(StrategyPlot(5));
// Set the color for the indicator plots
//StrategyPlot(0).Plots[0].Pen.Color = Color.Blue;
StrategyPlot(0).Plots[0].Pen.Color = Color.White;
StrategyPlot(0).Plots[0].Pen.Width = 3;
StrategyPlot(1).Plots[0].Pen.Color = Color.Red;
StrategyPlot(2).Plots[0].Pen.Color = Color.Pink;
StrategyPlot(3).Plots[0].Pen.Color = Color.GreenYellow;
StrategyPlot(3).Plots[0].Pen.Width = 2;
StrategyPlot(4).Plots[0].Pen.Color = Color.Yellow;
StrategyPlot(5).Plots[0].Pen.Color = Color.Black;
// Set the panel which the plots will be placed on. 1 = price panel, 2 = panel under the price panel, etc.
StrategyPlot(0).PanelUI = 1;
StrategyPlot(1).PanelUI = 2;
StrategyPlot(2).PanelUI = 3;
StrategyPlot(3).PanelUI = 1;
StrategyPlot(4).PanelUI = 4;
StrategyPlot(5).PanelUI = 3;
====================
Basically I am plotting 6 lines with values from the strategy script (not data-series values) into 3 (new) additional panel below the price-chart. Some of the lines are plotted in the price-data-series panel.
Now I am struggling to write a simple direct NT8 script for the plotting part.
Your help with sample working script (if any) of similar topic is very much helpful.
( I cannot get full understanding to apply from the sample script "SampleStrategyPlot").
Thank you
Comment