I am a recent conversion from TradeStation to NinjaTrader and I am attempting to convert my indicators into Ninja 7. I have a few questions and an issue I cant get past
Questions:
========
1) How do you assign a value to plot? From what I understand, Ninja has something called a values collection.. but I don't understand how it is used. I have a function that I want to return a value that I want plotted. How do I tell my plot statement to use that value? I tried Values.Set(MyFunction) but I am not getting anything to plot with the Add(new Plot(color, line, "name")); function.
2) How do you plot marker lines? I want horizontal lines at 100, 40, 0, -40, and -100 but I can seem to pass a straight value into the plot statement to get these lines to plot.
3) I am having a weird datatype issue. It is my understanding that the double[] datatype can hold an array of numbers ... but on this statement...
vOsc = 0; I get an error that I am trying to convert an INT to double. vOsc is declared in my variables section as private double[] vOsc;
Comment