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 a specific date Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ccsjeba
Posted : Thursday, January 10, 2013 11:01:54 PM
Registered User
Joined: 5/7/2011
Posts: 13

Hello,

Can you please help me with the realcode for calculating the price% from a specific date until close of today? For example, I want a watchlist column showing the %price increase from low of 11/16/2012 to high of today. 

Thanks

Bruce_L
Posted : Friday, January 11, 2013 7:56:31 AM


Worden Trainer

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

Please try the the following RealCode Indicator:

'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Price Percent Change from Date
'|******************************************************************
'# Cumulative
'# Basis = UserInput.Date = "11/16/2012"
Static Ref As Single
If isFirstBar Then
    Ref = IndexForDate(Basis)
End If
Plot = 100 * (Price.High / Price.Bar.LowValue(Ref) - 1)


-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ccsjeba
Posted : Friday, January 18, 2013 3:45:05 PM
Registered User
Joined: 5/7/2011
Posts: 13

Thanks Bruce

Bruce_L
Posted : Friday, January 18, 2013 3:46:40 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.