if
(Stochastics(7, 14, 3).K[0] > 90)
{
DrawDot("Dot"+CurrentBar.ToString(), true, 0, High[0] + (TickSize * 4), Color.Red);
Print ("Stoch: ");
Print (Stochastics(7,14,3).K[0]);
}
What am I doing wrong? I've written dozens of strategies, all using exactly this same syntax (I swear some of them had Stochastics in them), and they've worked great. If I replace Stochastics in this strategy with any other indicator, everything checks out and matches up, and dots are painted exactly where they should be. There aren't any date-related issues, as this CL 02-14 chart is the only one I have open. It's not a sequence issue, as none of the consecutive values that show up in the Output Window match up with any of the consecutive bars on the chart in any combination at any point in time. This problem occurs whether I use the wizard or code it manually, and it happens the same whether it's a minute, range or Renko chart.
Thanks in advance,
Gary

Comment