PDA

View Full Version : ProGo Indicator. Can someone fix my ninjascript indicator?


tradereight
01-15-2010, 06:21 AM
Hello I found on this page http://www.traderslaboratory.com/forums/56/larry-williams-indicator-required-1338-2.html
the ProGo Indicator.

PRO GO I:
var: prof(0),pub(0);
Prof=Average(O - C,7);
Value1 = (((Summation( Prof - Lowest(Prof,7),7)) / Summation((highest(Prof,7 ) - Lowest(Prof,7)),7)))*100;
Pub=Average(O - C[1],7);
Value2 = (((Summation( Pub - Lowest(Pub,7),7)) / Summation((highest(Pub,7) - Lowest(Pub,7)),7)))*100;
Plot1( Value1, "Prof" ) ;
Plot2( Value2, "Public" ) ;
Plot3( 25, "25" ) ;
Plot4( 75, "75" ) ;

I tried converting it to ninjatrader but, well it does not plot anything ...

Can someone please correct the code?

Cheers
tradereight

NinjaTrader_Bertrand
01-15-2010, 06:43 AM
tradereight, this wouldn't even compile on my end here as SUM would expect a dataseries input, or use the default input series (close) if you do not specify one -

http://www.ninjatrader-support.com/HelpGuideV6/SUM.html

marketmasher
01-17-2010, 06:01 PM
I looked at it using a bunch of dataseries, but it looks backwards somehow... Maybe if you explained how it is used, it might be clearer.