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!
|
|
|
|
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 '-)
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 1/27/2006(UTC) Posts: 3
|
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 1/27/2006(UTC) Posts: 3
|
|
|
|
|
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.