Registered User Joined: 7/19/2010 Posts: 5
|
how can i limit indicater scan to a set # of bars; last 90 daysor monthes 6 and 7?
the chart or real code editor for my indicaters?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I am actually not quite sure what you are asking.
Many individual Indicators allow you to set one or more Periods. Some have Offset settings that allow you to check for previous Bars instead of the current Bar (and you can generally add a 1-Period Moving Average to the Indicator and use the Offset setting for the Moving Average if they don't).
Working with Indicators
The Bar Interval (or Time Frame) of the Chart is normally adjusted by selecting the desired Bar Interval at the top of the Chart.
Getting Started
When you use a saved Indicator or Condition as a Sort, you can Edit the WatchList Column for the Sort and set its Bar Interval individually.
Sortable Columns for Indicators
Scanning with Conditions
You can also Edit an Indicator and select Block Diagram. If you left-click and Drag on the Time Frame input to the Prices Block (and/or Volume Block) and select Select Block & Connect, there should be a variety of items listed that start with "Time Frame:". Selecting any of these should add a Time Frame setting that can be accessed by left-clicking on the Indicator to bring up the Main tab of its Edit window.
Block Diagrams have been de-emphasized in StockFinder but the Your First 3 Block Diagrams video covers creating Block Diagrams. Most people don't do much with Block Diagrams and use Drag and Drop or RealCode exclusively.
The History in StockFinder is normally limited by the Number of Bars settings under Settings | Data Manager (which are limited to a maximum of 5000 bars).
If you edit Price History and select Block Diagram, there should be Block called Prices. This Block should have an unconnected Output Limit input. If you left-click and Drag on this input, you can select Select Block & Connect | Parameter: Length Limit to add an option for the number of Bars of data used for the Price History Indicator.
This will allow you to exceed the 5000 Bar Limit, but you will generally need to adjust the Block Diagrams of any Indicators with Price or Volume Blocks in them individually.
That said, the 5000 Bar Limit is there for a reason. It should be strongly noted that this can dramatically affect the performance of StockFinder and slow things down significantly because of the additional memory used and calculations required. If things slow down too much, the first thing you should try is to decrease the Length Limit or avoid using this workaround altogether.
BackScanner has its own Time Frame setting and allows you to manually set the Start Date and End Date for the BackScan.
The PriceData method allows you to set specific Bar Intervals within RealCode.
New PriceData method. Get Pricing data for any symbol/timeframe
-Bruce Personal Criteria Formulas TC2000 Support Articles
|