As you refer to full candles being above EMA13 for a buy and below EMA13 for a sell then try:-
BUY (next bar)
(L > Mov(C,13,E) AND Cross(Mov(C,13,E),Mov(C,21,E)) OR Mov(C,13,E) > Mov(C,21,E) AND Cross(L,Mov(C,13,E)))
SELL (next bar)
Cross(Mov(C,13,E),H)
--- On Mon, 11/5/09, susanta sarkar <sus19in@xxxxxxxxx> wrote:
From: susanta sarkar <sus19in@xxxxxxxxx> Subject: [EquisMetaStock Group] coding problem To: equismetastock@xxxxxxxxxxxxxxx Received: Monday, 11 May, 2009, 1:51 PM
hi all, i am very new to metastock coding, though i am using metastock for technical analysis for some time now. i am facing a small problem, hope i get a solution to my problem here.... problem1:- how to write a code for the following. if EMA 13 is above 21, and the first full candle is above it, then buy Problem2:- how to write a code for the following:- sell when the first full candle is below EMA 13
regards, sus19in
|