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 |

% from 52 week high/low Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ccsjeba
Posted : Thursday, January 3, 2013 1:05:53 AM
Registered User
Joined: 5/7/2011
Posts: 13

Hello,

Can you please help me with realcode for plotting two indicators for the active symbol showing the percentage displacement of the bar's price from its 52 week highs and lows. For example, today SPX is 15.58% from its 52 week low and 0.83% from its 52 week high. I would like to plot this so that I can get historical day for every bar in the chart. 

Thanks. Appreciate it. 

Charles

Bruce_L
Posted : Thursday, January 3, 2013 8:36:36 AM


Worden Trainer

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

Assuming you find 252-Daily bars to be a reasonable approximation of 52-Weeks, you could use the following RealCode Indicator in a Daily Time Frame for the high:

Plot = 100 * (Price.Last / Price.MaxHigh(252) - 1)

And the following RealCode Indicator in a Daily Time Frame for the low:

Plot = 100 * (Price.Last / Price.MinLow(252) - 1)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ccsjeba
Posted : Thursday, January 3, 2013 2:07:14 PM
Registered User
Joined: 5/7/2011
Posts: 13

Thanks Bruce

Bruce_L
Posted : Thursday, January 3, 2013 2:18:46 PM


Worden Trainer

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

You're welcome.



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