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 |

standard deviation Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
tradehawk
Posted : Tuesday, June 8, 2010 7:29:56 PM
Registered User
Joined: 4/19/2009
Posts: 18

I would like to calc 2 std deviations on the 5 day moving avg of the high of the day , any ideas for real code.  I see the standard deviation indicator but assume only 1 std is possible.

Thanks tim

bobre1
Posted : Sunday, June 13, 2010 2:23:01 PM
Registered User
Joined: 10/7/2004
Posts: 886
The easy way to do it I believe is to do the following:

Create a RealCode indicator:
plot = price.High

Apply a bollinger band child indicator to that plot with period = 5 and standard deviation = 2.

Bob
tradehawk
Posted : Wednesday, June 16, 2010 8:27:44 PM
Registered User
Joined: 4/19/2009
Posts: 18
Bob ,
 
Thanks, this looks like it will work.

Tim
bobre1
Posted : Wednesday, June 16, 2010 10:14:09 PM
Registered User
Joined: 10/7/2004
Posts: 886
You're welcome Tim.

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