Oliver Posted February 9, 2021 Report Share Posted February 9, 2021 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 Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted February 9, 2021 Report Share Posted February 9, 2021 CurrentCandle.candlenum is the sequence # of the current candle, 0 based. You can use that for MaxBars. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.