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

Re: [amibroker] Fw: Metastock's formula into AFL



PureBytes Links

Trading Reference Links


//Enter Long:
Buy= Cross( MA( Close,9), MA( Close,50)) AND Close > MA( Close,80);
// Close Long:
Sell= Cross( MA( Close,50), MA( Close,9)) AND Close > MA( Close,80);
// Enter Short:
Short= Cross( MA( Close,50), MA( Close,9)) AND Close < MA( Close,80);
// Close Short:
Cover= Cross( MA( Close,9), MA( Close,50)) AND Close < MA( Close,80);

Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
Short=ExRem(Short,Cover);Cover=ExRem(Cover,Short);

Filter=Buy > 0 OR Sell > 0 OR Short > 0 OR Cover > 0;

AddColumn(Buy,"buy");AddColumn(Sell,"sell");
AddColumn(Short,"short");AddColumn(Cover,"cover");

//Note:
//click explore to generate a recent signal with this system



Inwind wrote:

> Can someone please convert this Metastock's formula into AFL -
> Thanks
>

Enter Long:
Cross( Mov( Close,9,S), Mov( Close,50,S)) And Close >
Mov( Close,80,S)

Close Long:
Cross( Mov( Close,50,S), Mov( Close,9,S)) And Close >
Mov( Close,80,S)

Enter Short:
Cross( Mov( Close,50,S), Mov( Close,9,S)) And Close <
Mov( Close,80,S)

Close Short:
Cross( Mov( Close,9,S), Mov( Close,50,S)) And Close <
Mov( Close,80,S)
>
> When testing futures in MetaStock it’s best to use a "points only"
> test. To do this, choose Options from the System Tester dialog and
> then Points Only Test from the Testing page.
>
> To use The Explorer to screen for futures generating a recent signal
> with this system, choose The Explorer from the Tools dialog and enter
> in the following rules:
>
> COLUMN FORMULAS
>

ColumnA: Buy Sign
Cross( Mov( Close,9,S), Mov( Close,50,S)) And Close >
Mov( Close,80,S)

ColumnB: Shrt Sig
Cross( Mov( Close,50,S), Mov( Close,9,S)) And Close <
Mov( Close,80,S)
> FILTER SOURCE
>
> Filter Enabled: YesThanksPeter
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.