Registered User Joined: 9/1/2009 Posts: 7
|
Based upon whatever trading ideas I have, is there a way to "paint" a straight line (either vertical or horizontal) on a chart using only the most recent point from an indicator?
For example, I want to calculate the standard deviation of the last 10 trading bar's closing price and based on that value, paint a straight horizontal line all the way across the price chart?
Same thing for a vertical line if I want to "paint" a vertical line every 10 trading days.
As a variation, I might want to make those lines a color of my choice.
Can that be done? Do we have a solution for that already or some code samples to play with?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I do not know of a practical automated method to Plot a vertical line every 10 trading days using RealCode (although you could create a RealCode Condition and put hash marks at these intervals).
The easiest way to accomplish the horizontal line would be to right-click on the Value Scale and select Add Horizontal Pointer. You could then right-click on it, select Block Diagram. You can then run a the desired Indicator through a Last Value in Series Block to the PointerValue Block to get the desired Horizontal Line.
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.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|