PureBytes Links
Trading Reference Links
|
Hi Khalid,
Please try this code.
Indicator Code:
cond1:= Sum((C> Mov(C,5,S)) AND (C> Mov(C,6,S)),3)=3;
Cond2:= Alert(Cross(Mov(C,6,S), Mov(C,5,S)),3);
Entry:= cond1 AND cond2;
Exit:= Cross(Mov(C,6,S), Mov(C,5,S));
Entry; Exit
NOTE: I guessed that you want cross of 5 and 6 DMA also anytime during last 3 days instead of same day. If you want cross of 5,6 DMA on current day instead of any day during last 3 days, then eliminate Alert and use the following code for cond2
cond2:= Cross(Mov(C,6,S), Mov(C,5,S)). This condition will check Close above 5 and 6DMA in last 3 days but cross of 5-6DMA on current day only.
I have back tested your strategy. It is good for entry as it picks stocks at lower levels, but exits at very small profits even in a bigger trend. Sometimes trend continues after exit but there is no re-entry.
Thanks and Regards,
Amit Trivedi
President & CEO
Athenasolutionz.com - "We sell hope, in the stock market."
----- Original Message -----
From: Khalid Masood
To: equismetastock@xxxxxxxxxxxxxxx
Sent: Monday, September 18, 2006 5:30 AM
Subject: [EquisMetaStock Group] 5 DMA-Close & 6 DMA-Open Crossover
Hi,
I want to code an indicator with following parameters:
For Entry:
(1). Today's close is above (5day simple closing moving average &
6day simple open moving average) for last three days.
(2). 5day closing moving average crosses above 6day open moving
average.
For Exit:
6day open moving average crosses above 5day close moving average.
I have tried but unsucessfull,please help & thanks in advance.
Regards
Khalid
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|