Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Using Realcode to paint either a straight vertical or horizontal line. Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
pkuchnicki
Posted : Friday, July 30, 2010 5:10:01 PM
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?
Bruce_L
Posted : Monday, August 2, 2010 9:58:25 AM


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
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.