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

Re: [EquisMetaStock Group] exit



PureBytes Links

Trading Reference Links

--- In equismetastock@xxxxxxxxxxxxxxx, "Fulvio" <fulami@xxxx> wrote:
> >THE YO YO EXIT: This exit is very similar to the
> >Chandelier Exit except that the ATR stop is always
> >pegged to the most recent close instead of the highest
> >high. Since the closes move higher and lower, the stop
> >also moves up and down (hence the Yo Yo name).
> 
> thanks for your help, do you have the formula?

I found this, the code is for TS:

Function:YoYoExitLong 
--------------------------------------------------
Input:ATRMult(Numeric),ATRLen(Numeric); 

If MarketPosition=1 then 

YoYoExitLong=C-ATRMult*AvgTrueRange(ATRLen) else 
YoYoExitLong=0; 
--------------------------------------------------


{Yo yo exit short} 

if marketposition = -1 then exitshort("yoyo short") c + Atrmpx* 
avgtruerange(atrn) stop; 


{Yo yo exit long} 

if marketposition = 1 then exitlong("yoyo long") c - Atrmpx * 
avgtruerange(atrn) stop; 


{ Atrmpx This is the multipier for Average true range and should be a 
number } 
{ Atrn This is the number of days to calculate the Average True 
Range} 


You should test the atrmpx carefully on the specific market you are 
trading. Markets with higher average volatility will require a larger 
multiplier. This stop is designed to get you out of extreme adverse 
one day moves against your position and should not be used as a 
primary stop. 

It will not be triggered until you are in a position, so used EOD it 
will not be active on the entryday, since Tradestation will not know 
you are in your position until the close. 

--------------------------------------------------------

Best Regards





------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/BefplB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/equismetastock/

<*> 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/