I want to generate automated trades with EnterLong() and its cousins. I'm told I have to use a strategy since EnterLong() will not work inside an indicator (compilation fails).
I also need to have lines drawn on the chart. These lines will represent the entry and exit points that are being monitored. Should the price action hit them, orders to buy or sell will be automatically generated.
Add(new Plot(Color.Green,PlotStyle.Line, "PlotBuyLine"));
is giving me the following error when I try to compile my strategy. Is this supported? If not, what are my options?
Error: The best overload method match for NinjaTrader.... has some invalid arguments.
Thanks in advance.
-mp
Comment