|
Why is pos = 2? or 3?
Codersguru:
I added in this code and got this result:
if (counted_bars>0) counted_bars--;
int pos = Bars- counted_bars;
Print ("Bar index number is ", pos, ".");
// Bars is declared internally and equals the number of bars on the chart.
double dHigh , dLow, dResult; // a String of declarations.
Comment ("Hi, I'm here on the main Chart Window!");
// Prints a message in the top left corner of the chart.
The bar index number prints out as 2 , then 3, then 2,then 3??
|