Jump to content
Medved Trader Forums

How to get the max number of bars on a chart?


Recommended Posts

Hi,

I am runing a scan on a stock that started traded a few months ago. How can I get the max number of bars of the stock in the scanner.  It seems that we get results for BarVolume on date before the trade started trading. 

 

in the scan below :







 

I want to replace for (int i=1; i<=500 ;i++)  by for (int i=1; i<=500 && i<MaxBars ;i++) but how to get MaxBars?

 

Regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...