script, so be gentle. :-)
I wrote a script to drawDots on the chart and set a certain value (for the Market Analyzer when a certain pattern was found.
On the chart the dots are drawn perfectly, exactly the way they're supposed to be, but the values in the Market Analyzer doesn't synchronize with what's on the charts
even though they should be initiated at the same time. The results are totally different from one another.
I set the calculate on close to false and true (at separate times). Neither seems to correct the problem.
(Side Note: Yesterday, it seemed to work perfectly with the calculate on close set to "True", but I didn't change anything today. I didn't even close the NT program from yesterday)
Does anyone have any ideas on what could be the problem?
Example Below:
if ((SMA(1)[1] < SMA(1)[0]) && (SMA(1)[1] < SMA(1)[2]) && (Close[0]>High[1]))
{
DrawDot(CurrentBar.ToString()+"bullish",AutoScale, 0,Low[0]-TickSize,Color.Green);
maOutput.Set(100);
}
Comment