logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Mark Allan  
#1 Posted : Saturday, January 28, 2006 5:39:59 PM(UTC)
Mark Allan

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/27/2006(UTC)
Posts: 3

I would like an indicator to show the price percentage change of a security since the "open" of the first price bar of the day. As the security's intraday price changes, the indicator will show the price percentage change since the opening price of the day. I tried several formulas. None are right. The last was: Roc(dayofweek(), valuewhen(1,dayofweek(),open),%) * 100 Thanks!
Jose  
#2 Posted : Sunday, January 29, 2006 2:46:11 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Mark, try this MS intraday indicator: [code:1:042b53ccd0] ================= Change % intraday ================= ---8<------------------------------ { Percentage change intraday - v2.0 For intraday charts only. ©Copyright 2006 Jose Silva. The grant of this license is for personal use only - no resale or repackaging allowed. All code remains the property of Jose Silva. http://www.metastocktools.com } { User input } plot:=Input("Change from: [1]Open, [2]Prev Close; [3]Day start",1,3,1); { Day's start } nuDay:=DayOfMonth()<>Ref(DayOfMonth(),-1) OR Cum(1)=2; { Select today's Open or Yesterday's Close } x:=If(plot=1,O,Ref(C,-1)); { Day's % change } chPer:=(C/ValueWhen(1,nuDay=1,x)-1)*100; { Plot in own window } If(plot=3,nuDay,chPer) ---8<------------------------------ [/code:1:042b53ccd0] jose '-)
Mark Allan  
#3 Posted : Monday, January 30, 2006 1:50:10 AM(UTC)
Mark Allan

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/27/2006(UTC)
Posts: 3

It works great.
Mark Allan  
#4 Posted : Tuesday, January 31, 2006 2:41:11 AM(UTC)
Mark Allan

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/27/2006(UTC)
Posts: 3

It works great.
Jose  
#5 Posted : Tuesday, January 31, 2006 7:55:43 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Mark Allan wrote:
It works great.
Still? :-s
Users browsing this topic
Guest (Hidden)
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.