Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Using the display screen width in bars in an indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
jschott
Posted : Monday, June 29, 2015 1:45:18 PM
Registered User
Joined: 10/27/2004
Posts: 821
Location: Philly area

I would like to write an indicator where the variable is the present number of screen bars currently displayed.  For example, if I was using HHV in an indicator, the HHV periods would adsjust as I used the slider to change the screen periods.

Clearly the SF software knows and uses this value - so is there a way for me to use it?

Bruce_L
Posted : Monday, June 29, 2015 1:55:54 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

There is a Block called BarCount which can be accessed in a Block Diagram by right-clicking and selecting Data From Other Tools.

ActiveChart.BarsVisible will return the same thing in RealCode. You will also want to add the following line to your RealCode.

'#RECALC_ON_ZOOM_SCROLL

StockFinder 5 RealCode Reference



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.