I am unsuccessful at creating a custom indicator which uses compared Stochastics values. In the protected override void OnBarUpdate() section I do the following comparison in order to print a down arrow on my charts. This doesn't work.
if ( Stochastics(7,14,3).K[0] < Stochastics(7,14,3).K[1] )
Troubleshooting reveals that...
if ( Stochastics(7,14,3).K[0] < 79 ) will print arrows on the charts.
if ( Stochastics(7,14,3).K[1] < 79 ) won't print arrows on the charts.
Looks like Ninjascript completely ignores the condition when the %K parameter is not set to .K[0]
How do I go about making this work?
- MarcusPlexus
}


Comment