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?

http://www.purebyte s.com/archives/ amibroker/ 2007/msg04437. html <http://www.purebytes.com/archives/amibroker/2007/msg04437.html>


----- Original Message -----
From: ftone...@optonline. net <mailto:[email protected]> <mailto:[email protected]> To: amibro...@yahoogrou ps.com <mailto:[email protected]> <mailto:[email protected]> Sent: Saturday, February 14, 2009 8:13 AM <mailto:[email protected]> Subject: Re: [amibroker] RMO. Attn: Fred Tonetti <mailto:[email protected]>

 <mailto:[email protected]>
 <mailto:[email protected]>
RMO ?

----- Original Message -----
From: MAVIRK
Date: Friday, February 13, 2009 3:32 am
Subject: [amibroker]    RMO. Attn: Fred Tonetti
To: amibro...@yahoogrou ps.com <mailto:[email protected]>

Do you still have the your RMO code? Could you please post it? Thanks. <mailto:[email protected]>
 <mailto:[email protected]>

<http://us.ard.yahoo.com/SIG=13oejteqm/M=493064.12016308.12445700.8674578/D=groups/S=1705632198:NC/Y=YAHOO/EXP=1234644775/L=/B=9n5rG0PDhEo-/J=1234637575988542/A=3848644/R=0/SIG=131l83flq/*http://searchmarketing.yahoo.com/arp/srchv2.php?o=US2006&cmp=Yahoo&ctv=Groups5&s=Y&s2=&s3=&b=50>

Reply via email to