----- 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)
|