View Single Post
  #6 (permalink)  
Old 11-21-2005, 04:37 AM
Techguy's Avatar
Techguy Techguy is offline
Junior Member
 
Join Date: Nov 2005
Posts: 26
Techguy is on a distinguished road
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??
Attached Images
File Type: jpg barcountmystery.JPG (48.4 KB, 1756 views)
__________________
Kind Regards,

Techguy
Never Lose A Password
Reply With Quote