Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/7/2004 Posts: 23
|
This formula is giving me the wrong answer.
Plot = ((Price.High+Price.Low+Price.Close)/3)+((Price.High(1)+Price.Low(1)+ Price.Close(1))/3)+((Price.High(2)+ Price.Low(2)+ Price.Close(2))/3)\3
What am I doing wrong?
Also, I want to put this on the same chart as price... but don't know how.
Passat
|
|

 Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
at the end youhave \3, don't you want /3?
- Craig Here to Help!
|
|
Registered User Joined: 10/7/2004 Posts: 23
|
I tryed that also..
|
|
Registered User Joined: 10/7/2004 Posts: 13
|
You need to enclose the three price calcs in parens before dividing by 3:
Plot = (((Price.High+Price.Low+Price.Close)/3)+ _
((Price.High(1)+Price.Low(1)+ Price.Close(1))/3)+ _
((Price.High(2)+ Price.Low(2)+ Price.Close(2))/3))/3
|
|
Registered User Joined: 10/7/2004 Posts: 23
|
Thanks, that worked (I don't understand it because I tried this before) .Now I want to plot this on the stock price chart. How do I do that?
|
|

 Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
Check out my response to your other post: Blocks realcode
Once I created the RealCode indicator, I copy and pasted it to the price pane.
- Craig Here to Help!
|
|
Guest-1 |