PDA

View Full Version : plotting lines in a strategy


kjackson
03-21-2010, 11:41 AM
Is plotting lines on a chart within a strategy allowed? Or are these only available through indicators?

I tried adding code that added a new Plot to a Strategy but it basically is saying that it's not available via StrategyBase.

Is there another way to do it, or must I code an indicator and refer to the indicator in the strategy?

thanks in advance,

Ken

NinjaTrader_Ben
03-21-2010, 07:43 PM
Hello,

Alternatively you could draw an indicator plot accross the bars that you want using the same value, which would create a straight line like you want.