indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Tools > Software > Metastock

DPonline
Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-08-2010, 12:30 PM
Sunshine's Avatar
Sunshine Sunshine is offline
indiTraders VIP
 
Join Date: Oct 2009
Posts: 2,531
Thanks: 6,210
Thanked 4,443 Times in 1,983 Posts
Sunshine has a reputation beyond repute
Sunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond repute
Default Metastock Doubts

Please tell me how to do the following in Metastock.
1.I want an Indicator which draws lines like Murray lines.
Line 1 ( Square of(Square root of Lowest low value)+1))
Line 2(Square of(Square root of Lowest low value)+2))

Thanks.
(sorry I didnot know how to enter the square symbol)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Sunshine For This Useful Post:
  #2 (permalink)  
Old 29-08-2010, 01:39 PM
Oxymoron's Avatar
Oxymoron Oxymoron is offline
Super Moderator
 
Join Date: Mar 2009
Location: Chennai
Posts: 1,275
Thanks: 4,471
Thanked 4,828 Times in 1,156 Posts
Oxymoron has a reputation beyond repute
Oxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond repute
Default

Originally Posted by bestnifty View Post
Please tell me how to do the following in Metastock.
1.I want an Indicator which draws lines like Murray lines.
Line 1 ( Square of(Square root of Lowest low value)+1))
Line 2(Square of(Square root of Lowest low value)+2))

Thanks.
(sorry I didnot know how to enter the square symbol)

Code:
Pds:= 20;
Pr:= C;
LowPrice:= LLV(Pr,Pds);
a:= Power(Power(LowPrice + 1,.5),.5);
b:= Power(Power(LowPrice + 2,.5),.5);
a;
b
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Oxymoron For This Useful Post:
  #3 (permalink)  
Old 29-08-2010, 03:04 PM
Sunshine's Avatar
Sunshine Sunshine is offline
indiTraders VIP
 
Join Date: Oct 2009
Posts: 2,531
Thanks: 6,210
Thanked 4,443 Times in 1,983 Posts
Sunshine has a reputation beyond repute
Sunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond repute
Default Error

Sorry Sir ,
The error is not in the formula but in my explanation.
I want to draw the line from the recent low .
Like in the Acc chart.The most recent low is 800 in July.
If I apply this Indicator on (that low )it should draw the line on 857 and 917 as in the chart.
So I changed LLV into Lowest but it shows error ( Pr, Pds) as after Pr ')' is expected.
Should we change Pds value in the first line and replace pds with periods in
Low value column ?
Thanks for the help

Last edited by Sunshine; 18-09-2014 at 06:51 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Sunshine For This Useful Post:
  #4 (permalink)  
Old 09-09-2010, 04:50 PM
Oxymoron's Avatar
Oxymoron Oxymoron is offline
Super Moderator
 
Join Date: Mar 2009
Location: Chennai
Posts: 1,275
Thanks: 4,471
Thanked 4,828 Times in 1,156 Posts
Oxymoron has a reputation beyond repute
Oxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond repute
Default

Originally Posted by bestnifty View Post
Sorry Sir ,
The error is not in the formula but in my explanation.
I want to draw the line from the recent low .
Like in the Acc chart.The most recent low is 800 in July.
If I apply this Indicator on (that low )it should draw the line on 857 and 917 as in the chart.

How did you arrive at 857 and 917?

Originally Posted by bestnifty View Post
So I changed LLV into Lowest but it shows error ( Pr, Pds) as after Pr ')' is expected.
Should we change Pds value in the first line and replace pds with periods in
Low value column ?
Thanks for the help

Lowest plots the lowest value of the data array in the displayed chart.

Did you want something like this?

Code:
Pds:= 20;
Pr:= C;
LowPrice:= LLV(Pr,Pds);
a:= Power(Power(LowPrice + 1,.5),.5);
b:= Power(Power(LowPrice + 2,.5),.5);
d:= C <> LowPrice AND Ref(C,-1) = Ref(LowPrice,-1);
f:= LastValue(BarsSince(d) + 1);
g:= LastValue(Cum(1));
i:= If(Cum(1) > g - f,a,0);
j:= If(Cum(1) > g - f,b,0);
i;
j;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Oxymoron For This Useful Post:
  #5 (permalink)  
Old 09-09-2010, 05:40 PM
Sunshine's Avatar
Sunshine Sunshine is offline
indiTraders VIP
 
Join Date: Oct 2009
Posts: 2,531
Thanks: 6,210
Thanked 4,443 Times in 1,983 Posts
Sunshine has a reputation beyond repute
Sunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond repute
Default

Sorry Sir , this too does not solve the problem.
Here I have attached the chart of Tata steel.The recent low after a peak is 493
The Indicator has to find the RECENT LOW or if it is not possible we manually apply it (like Fibonacci Fan) and it draws the lines.
1.The Low is 493 .Sq.Rt of 493 is 22.2
2.First line =(Sq.rt+1=23.2*23.2) - which is 538
3.Second Line =(sq rt+2=24.2*24.2) which is 585
If it consumes a lot of time please ignore it.I will calculate manually/
Thanks for the efforts.

Last edited by Sunshine; 18-09-2014 at 06:51 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to Sunshine For This Useful Post:
  #6 (permalink)  
Old 09-09-2010, 07:10 PM
Oxymoron's Avatar
Oxymoron Oxymoron is offline
Super Moderator
 
Join Date: Mar 2009
Location: Chennai
Posts: 1,275
Thanks: 4,471
Thanked 4,828 Times in 1,156 Posts
Oxymoron has a reputation beyond repute
Oxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond reputeOxymoron has a reputation beyond repute
Default

Originally Posted by bestnifty View Post
Sorry Sir , this too does not solve the problem.
Here I have attached the chart of Tata steel.The recent low after a peak is 493
The Indicator has to find the RECENT LOW or if it is not possible we manually apply it (like Fibonacci Fan) and it draws the lines.
1.The Low is 493 .Sq.Rt of 493 is 22.2
2.First line =(Sq.rt+1=23.2*23.2) - which is 538
3.Second Line =(sq rt+2=24.2*24.2) which is 585
If it consumes a lot of time please ignore it.I will calculate manually/
Thanks for the efforts.

Oh I misread the first line as 'square root of(square root of...)' instead of 'square of(square root of)'. Tell me if this is right:

Code:
Pds:= 20;
Pr:= C;
LowPrice:= LLV(Pr,Pds);
a:= Power(Power(LowPrice,.5) + 1,2);
b:= Power(Power(LowPrice,.5) + 2,2);
d:= C <> LowPrice AND Ref(C,-1) = Ref(LowPrice,-1);
f:= LastValue(BarsSince(d) + 1);
g:= LastValue(Cum(1));
i:= If(Cum(1) > g - f,a,0);
j:= If(Cum(1) > g - f,b,0);
a; b; {Use i,j instead of a,b if you want only to plot the last line value}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Oxymoron For This Useful Post:
  #7 (permalink)  
Old 09-09-2010, 09:32 PM
Sunshine's Avatar
Sunshine Sunshine is offline
indiTraders VIP
 
Join Date: Oct 2009
Posts: 2,531
Thanks: 6,210
Thanked 4,443 Times in 1,983 Posts
Sunshine has a reputation beyond repute
Sunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond repute
Default

Thank you sir.
This is what I want.Again thanks for spending your precious time for my request.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Sunshine For This Useful Post:
  #8 (permalink)  
Old 10-09-2010, 01:42 PM
Sunshine's Avatar
Sunshine Sunshine is offline
indiTraders VIP
 
Join Date: Oct 2009
Posts: 2,531
Thanks: 6,210
Thanked 4,443 Times in 1,983 Posts
Sunshine has a reputation beyond repute
Sunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond repute
Default Price Bar Explore

Sir ,
Is it possible to find by Exploration -scrips not touching the Moving Avearge and stands aloof like an Island ?
please see the attached image.

Last edited by Sunshine; 18-09-2014 at 06:51 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-09-2010, 02:16 PM
kkseal kkseal is offline
Hip-py
 
Join Date: Apr 2009
Posts: 4,909
Thanks: 6,508
Thanked 9,445 Times in 4,056 Posts
kkseal has a reputation beyond reputekkseal has a reputation beyond repute
kkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond reputekkseal has a reputation beyond repute
Default

Now how can you expect anyone to code that unless you define 'stands aloof like an island'
__________________
'Growth & Value are joined at the hip' - Warren buffet
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to kkseal For This Useful Post:
  #10 (permalink)  
Old 10-09-2010, 02:19 PM
Sunshine's Avatar
Sunshine Sunshine is offline
indiTraders VIP
 
Join Date: Oct 2009
Posts: 2,531
Thanks: 6,210
Thanked 4,443 Times in 1,983 Posts
Sunshine has a reputation beyond repute
Sunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond repute
Default

Friend , Just for simile I used that word.Pls see the Sep 2 bar .It too stands alone
not touched by the MA.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

indiTraders - Forum for the Active Indian Trader > Tools > Software > Metastock


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


DPonline

All times are GMT +5.5. The time now is 02:56 PM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2