Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 4/15/2007 Posts: 73
|
I use blocks to find stocks above a moving average and sort them by the number of consecutive bars acheived. There seems to be a blocks imposed limit of 50 bars. Once 50 is reached it seems to stop counting. Is there way of removing this limit.?
|
|
Registered User Joined: 12/31/2005 Posts: 2,499
|
add the directive
'#Cumulative
to your code and the watchlist computation will not be optimized and all bars will be evaluated.
|
|
Registered User Joined: 4/15/2007 Posts: 73
|
JAS sorry where do I add the code? At the moment I create the scan by just dragging the MA up to the column.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
BDRPPLIR,
I'm not sure if it makes a difference, but I always use it as the first line in my RealCode when I need it.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Administration
Joined: 10/7/2004 Posts: 378
|
After you have created the column, right click on it and select QuickEdit. There is a field in there called Max bars to test. You can increase this number to what you like. Increasing it may slow performance a bit but will get you what you want.
Ole
|
|
Registered User Joined: 4/15/2007 Posts: 73
|
Ole
Spot on! That did the trick thank you.
regards
Bernard
|
|
Guest-1 |