Difference in currentbar number in signal and chart

Questions about MultiCharts and user contributed studies.
maddog206
Posts: 3
Joined: 19 Oct 2016

Difference in currentbar number in signal and chart

Postby maddog206 » 27 Dec 2016

Hi. I have a signal and I print the currentbar number from a one minute bar chart. So I can see the currentbar number printed on the output tab of the signal. I can also see the current bar number displayed in the cross hair dialog box on the bar chart itself. The signal prints that the currentbar number is 1502 in the output tab. When I look at the actual chart, the cross hair dialog box says the current bar number is 1553. Also this is in my paper trading account. Why is there a difference between currentbar number printed on the output tab of the signal and the bar number displayed in the chart cross hair dialog box?

User avatar
Smoky
Posts: 517
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 99 times
Been thanked: 121 times

Re: Difference in currentbar number in signal and chart

Postby Smoky » 27 Dec 2016

please use Symbol_curentBar otherwise you must use Max bar back + CurrentBar for print barnumber


Return to “MultiCharts”