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

Re: [amibroker] Re: Absolute value ATR?



PureBytes Links

Trading Reference Links

remove the stylenorescale from the plot statements


--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com

On 26/02/2008, Louis Préfontaine <rockprog80@xxxxxxxxx> wrote:
Hi,

Thanks for the suggestion.  I must do something wrong however because from the code I wrote

_SECTION_BEGIN("ATR");
periods = Param( "Periods", 15, 1, 200, 1 );
Plot( ATR(periods)/Ref(C,-1)*100
, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );

LongPer = Param("Long Period", 50, 10, 100, 5 ); /* select periods with
parameter window */

MidPer = Param("Mid Period", 20, 0, 50, 1);
ShortPer = Param("Short Period", 10, 3, 10, 1 );

LongEMA = EMA( ATR(periods)/Ref(C,-1)*100, LongPer );
MidEMA = EMA (ATR(periods)/Ref(C,-1)*100, MidPer);
ShortEMA = EMA( ATR(periods)/Ref(C,-1)*100, ShortPer );

_SECTION_END(); 

_SECTION_BEGIN("ema-ATR");
Plot( LongEMA, "EMA(ATR(periods)/Ref(C,-1)*100, "+WriteVal(LongPer,1)+")", colorBlue,
styleLine|styleNoRescale );
Plot( MidEMA, " EMA(ATR(periods)/Ref(C,-1)*100, "+WriteVal(MidPer,1)+")", colorBrown,
styleLine|styleNoRescale );
Plot( ShortEMA, " EMA(ATR(periods)/Ref(C,-1)*100, "+WriteVal(ShortPer,1)+")", colorGreen,
styleLine|styleNoRescale );


_SECTION_END();  

I get only results of ATR > 3-4.  Only Indu.x is under 2; all the other one are over 3-4, and sometimes 6-7 and more.

However, are you sure about the idea of entering/exiting a stock when volatility gets too high?  Wouldn't it be better simply to scan and avoid high volatily stocks to reduce the drawdown possibility?

Thanks,

Louis

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html




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

__,_._,___