remove the stylenorescale from the plot statements
-- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com On 26/02/2008, Louis Préfontaine <[EMAIL PROTECTED]> 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 >