[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EquisMetaStock Group] 1-2-3 SYSTEM



PureBytes Links

Trading Reference Links


These are the basic building blocks:

---8<---------------------

{ Basic Peaks/Troughs }
top:=Ref(H,-1)>H AND Ref(H,-1)>Ref(H,-2);
bot:=Ref(L,-1)<L AND Ref(L,-1)<Ref(L,-2);

{ Last Peak/Trough values }
top1:=ValueWhen(1,top,Ref(H,-1));
bot1:=ValueWhen(1,bot,Ref(L,-1));

{ 2nd-last Peak/Trough values }
top2:=ValueWhen(2,top,Ref(H,-1));
bot2:=ValueWhen(2,bot,Ref(L,-1));

{ 3rd-last Peak/Trough values }
top3:=ValueWhen(3,top,Ref(H,-1));
bot3:=ValueWhen(3,bot,Ref(L,-1));

{ Higher bottoms example }
bot1>bot2

---8<---------------------


jose '-)
http://www.metastocktools.com



--- In equismetastock@xxxxxxxxxxxxxxx, "Sharad Lohia" <sharadlohia@xxx
.> wrote:
> Dear All,
> 
> Has anybody got the code for programming the 1-2-3 pattern in
> Metastock.
> 
> I have been trying to write the program - but getting stuck.
> 
> Basically - Go long on a higher top and higher bottom formation
> and short a lower top, lower bottom formation.
> 
> The problem comes on keeping track of the previous bottom and then
> keeping track of the next bottom being a higher bottom and then
> keeping track of the previous top being crossed and then keeping
> track of the stop loss....
> 
> any help would be greatly appreciated
> 
> thnx
> sharad





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/