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

Re: [EquisMetaStock Group] Reentering a trade



PureBytes Links

Trading Reference Links

------------------------------------------------------------------------
You cannot reply to this message via email because you have chosen not
to disclose your email address to the group.

To reply:  http://groups.yahoo.com/group/equismetastock/post?act=reply&messageNum=5655
------------------------------------------------------------------------

Joe,

many thanks for your suggestion... I'll give a try.

Happy trading to you too! ;)

Mimmo


--- In equismetastock@xxxx, "Joe J." <jojab@xxxx> wrote:
> Minmo,
>  
> Here is something you could try:
>  
> Setup:=If(
> Barssince(Long) > Barssince (ExitLong)
> and
> Barssince(Long) > Barssince(Short),1,0);  
> {these two statements tell you that you had a long trigger and that 
you
> were stopped out of it on the trailing ATR}
>  
> Reenter:=
> Setup=1
> and
> High > ValueWhen(1,ExitLong,High + XX)  {this says reenter when you 
were
> stopped out and now the high of that bar has been exceeded by XX 
points
> - obviously you can change this to what ever reentry you want}.
>  
> I haven't tested this out but the basic concept should work for you.
> The two commands that you'll need are Barssince and ValueWhen.
>  
> Good Trading,
>  
> Joe J.
> 
> -----Original Message-----
> From: sharpatwork [mailto:mtrimarco@x...]
> Sent: Thursday, December 05, 2002 5:33 AM
> To: equismetastock@xxxx
> Subject: [EquisMetaStock Group] Reentering a trade
> 
> 
> Hello all,
> 
> I'm new to this forum and I'm wondering whether any of Metastock 
> language gurus could help me in some way. :)
> 
> I'm trying to code in Metastock how to reenter a previous trade in 
> the same direction after a trailing stop has been triggered.
> 
> Let say I have a very simple TS using 2 MA and a TrailingStop 
> calculated on ATR. I'm basing the long trades on ShortMA crossing 
> LongMA and the short trades on the opposite condition. Suppose that 
> the ExitLong condition contains the "OR L <= TrailingStop" 
statement 
> and, during the backtest, this condition is met. After that, the 
> market turns up again and continues the previous trend. If I was 
> Long, how to code to reenter to the long position?
> 
> Many thanks for the suggestions and for the time you will dedicate 
to 
> my question.
> 
> Mimmo
> 
> 
> 
> Yahoo! Groups Sponsor	
> 
> ADVERTISEMENT
>  
> 
<http://rd.yahoo.com/M=238036.2508768.3991457.2244883/D=egroupweb/S=17
05
> 375617:HM/A=1310183/R=0/*http://www.esignal.com/web/12279.asp> 
	
>  
> <http://us.adserver.yahoo.com/l?
M=238036.2508768.3991457.2244883/D=egrou
> pmail/S=:HM/A=1310183/rand=748913895> 	
> 
> To unsubscribe from this group, send an email to:
> equismetastock-unsubscribe@xxxx
> 
> 
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/> .


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/