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 |

Blocks using realcode Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Passat
Posted : Monday, May 19, 2008 1:30:12 PM
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

Craig_S
Posted : Monday, May 19, 2008 1:34:29 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
at the end youhave \3, don't you want /3?

- Craig
Here to Help!
Passat
Posted : Monday, May 19, 2008 1:35:20 PM
Registered User
Joined: 10/7/2004
Posts: 23
I tryed that also..
Moderator
Posted : Monday, May 19, 2008 1:49:10 PM
Platinum Customer Platinum Customer

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

Passat
Posted : Monday, May 19, 2008 5:20:01 PM
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?
Craig_S
Posted : Tuesday, May 20, 2008 11:38:05 AM


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!
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.