MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

CCI & Moving Average by Adam Hefner
----- Original Message -----
From: <MFall31148@xxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Saturday, July 08, 2000 7:06 PM
Subject: Formula HELP!!!

Friends:
Having just bought a new computer and installed MetaStock 6.52 with all the patches, tc., I find that I've lost some custom formulas. Stupid me that I didn't print them out, but such is the way things go sometimes. Can't remember what I did before, so I need help. Here it is... I want to buy when the CCI (standard) goes above a moving average of itself (the CCI (standard)): conversely I want to sell when the CCI (standard) goes below a moving average of itself (the CCI (standard)). Will be optimizing this, but I can figure that part out myself. Sorry to put anyone at extra effort that can help me...will do my best to return favor. Thanks, Milt Fall


Re: Formula HELP!!!

To: <metastock@xxxxxxxxxxxxx>
Subject: Re: Formula HELP!!!
From: "ZBIGNIEW A WOZNICA" <WEING@xxxxxxxxxxx>
Date: Sun, 9 Jul 2000 20:51:08 -0400
References: <c8.73f59cd.26990de9@xxxxxxx>
Reply-To: metastock@xxxxxxxxxxxxx
Sender: owner-metastock@xxxxxxxxxxxxx

CCI System Test

{cross(CCI(14),MOV(CCI(14),PERIOD OF MOVING AVERAGE,E))}

Buy
cross(CCI(14),mov(CCI(14),20,E))

Sell
cross(mov(CCI(14),20,E),CCI(14))


[20253]

Re: Formula HELP!!!

To: <metastock@xxxxxxxxxxxxx>
Subject: Re: Formula HELP!!!
From: "Adam Hefner" <vonhef@xxxxxxxxxxxx>
Date: Sun, 9 Jul 2000 08:43:48 -0500
References: <c8.73f59cd.26990de9@xxxxxxx>
Reply-To: metastock@xxxxxxxxxxxxx
Sender: owner-metastock@xxxxxxxxxxxxx

Milt,

I have listed below a quick code for what you described. This is not a system test, just a code that can be displayed with your chart. Since you are using 6.52, you may wish to delete the line "CCI(Cp);" and display your own CCI code from the drop down list (that would allow you to change the look of the moving average for easier viewing).
Adam

CCI & Moving Average

{CCI moving average, This will display the Standard CCI and
a moving average of the CCI}

{Lb is the Moving average look-back Cp is the CCI period}
Lb:=Input("Look-back period ?",2,100,3);
Cp:=Input("CCI periods ?",3,60,14);
CCI(Cp);
Mov(CCI(Cp),Lb,S)

 

Source / From: TOP
http://purebytes.com/archives/metastock/

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!