Here it is //This can be made simpler, more generic AND faster with ...
/*Len1 = Optimize("Len1", 2, 2, 11, 1); Len2 = Optimize("Len2", 10, 2, 21, 1); Len3 = Optimize("Len3", 30, 2, 50, 1); */
Len1 = Param("ma_len1",2,2,40,1); Len2 = Param("sum_len2",10,2,40,1); Len3 = Param("ema_len2",30,2,100,1); Len4 = 81;
//Indicators
MAz = Cum(0); MAy = C;
for (i = 1; i <= Len2; i++) { MAy = MA(MAy, Len1); MAz = MAz + MAy; }
ST1 = 100 * (C - (MAz / Len2)) / (HHV(C, Len2) - LLV(C, Len2));
Plot(ST1, "SwingTrade-1", colorBrightGreen);
ST2 = EMA(ST1, Len3); Plot(ST2, "SwingTrade-2", colorGrey50);
ST3 = EMA(ST2, Len3); Plot(ST3, "SwingTrade-3", colorRed);
On Sat, Feb 14, 2009 at 2:57 PM, LB wrote:
Is this what you are talking about? ----- Original Message ----- Sent: Saturday, February 14, 2009 8:13 AM Subject: Re: [amibroker] RMO. Attn: Fred Tonetti
RMO ?
----- Original Message ----- From: MAVIRK Date: Friday, February 13, 2009 3:32 am Subject: [amibroker] RMO. Attn: Fred Tonetti
> Do you still have the your RMO code? > Could you please post it? > Thanks.
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|