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

[amibroker] adapative moving average in amibroker


  • Date: Fri, 29 Jan 2010 13:09:19 +0530 (IST)
  • From: Meerut Money Managers <meerutmoneymanagers@xxxxxxxx>
  • Subject: [amibroker] adapative moving average in amibroker

PureBytes Links

Trading Reference Links



greetings
 
i wanted to import AMA in to amibroker
 
please advice

 
THANKS & REGARDS


MEERUT MONEY MANAGERS (MMM)
www.meerutmoneymanagers.com


Disclaimer :This e-mail is confidential & for information only. It cannot be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. You are also hereby notified that any use, any form of reproduction, dissemination, disclosure, modification, distribution and/or publication of this e-mail message,contents or its attachment(s) other than by its intended recipient(s) is strictly prohibited. If you have received this message in error,please delete it and all copies from your system and notify the sender immediately by return e-mail. Internet communications cannot be guaranteed to be timely,secure, error or virus-free. The sender does not accept liability for any errors or omissions. The contents of this message may not necessarily represent the views or policies of the sender/MMM. The contents of this message & attachment (if any) is not a legal binding on the sender and cannot be produced or challenged in any legal department/court.



From: Deepak Patade <iamdeepakpatade@xxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Fri, 29 January, 2010 9:59:07 AM
Subject: Re: [amibroker] Re: ADX based trading system

 

This is fine ,
Can we add some more lines to this.
cover any buy or sell if any one of either macd or stoch crosses after the buy or sell signal.
say m1>s1 and k >d , so a buy signal is given since both are in buy mode.
this call is to be covered if either of this goes out of the trade i.e s1>m1 or d>k.
 
when either is not in call, we must also be out of the trades.
we shall enter trade only if
s1 > m1 and d > k
 
or the previous condition remeets ie m1 > s1 and k > d

On Fri, Jan 29, 2010 at 12:05 AM, jilm_jones <Jilm_Jones@xxxxxx com> wrote:
 

i think its right



//MACD

r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
m1 = MACD(r1, r2);
s1 = Signal(r1,r2, r3);
//stochastic
periods = Param( "Periods", 15, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );
periods = Param( "Periods", 15, 1, 200, 1 );
k=StochK( periods , Ksmooth);
d=StochD( periods , Ksmooth, DSmooth );

//ADX
range = Param("Periods", 14, 2, 200, 1 );
ADvX=ADX( range);

tightstop=1;
Loosestop=2;
ApplyStop(stopTypeL oss,stopModePerc ent,IIf(advx>45,tightstop, Loosestop) );

Buy=IIf(advx<20,k>d,IIf(advx>30,m1>s1,IIf(Cross( Advx,23) AND LLV(advx,BarsSince( Cross(23, advx)))<18,m1>s1,
IIf(Cross(27, advx) AND HHV(advx,BarsSince( Cross(advx, 27))),k>d,0))));

Sell=IIf(advx<20,k<d,IIf(advx>30,m1<s1,IIf(Cross( Advx,23) AND LLV(advx,BarsSince( Cross(23, advx)))<18,m1<s1,
IIf(Cross(27, advx) AND HHV(advx,BarsSince( Cross(advx, 27))),k<d,0))));
Short=Cover= 0;
Buy=ExRem(Buy, Sell);
Sell=ExRem(Sell, Buy);




The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.

__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___