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

[EquisMetaStock Group] Re: help with stop formula



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=6021
------------------------------------------------------------------------

Formul given on #1 doesn't work...
Corrected type may be as given below, first check it pls..

strata:=10;
If(C=PREV,PREV,    If(Ref(C,-1)<PREV,Min(PREV,C*(1+strata/100)),     
If((Ref(C,-1)>PREV) AND (C>PREV),
    Max(PREV,C*(1-strata/100)),
     If(C>PREV,C*(1-strata/100),C*(1+strata/100) ))));


--- In equismetastock@xxxxxxxxxxxxxxx, "Flash Gordon" 
<daniele.bevilacqua@xxxx> wrote:
> Hi everybody.
> 
> I have recently begun my first attempts coding (still working 
through the formula book) and I would like some help.
> 
> I have written a simple indicator that gives me +1 or -1 to go long 
or short. On the basis of this I have developed a system that has me 
open long or short according to the indicator signal (therefore, 
always in the market).
> 
> I am now attempting to add stops. Now the two questions:
> 
> 1. I have been exploring various formulas for stops, and one which 
I have found and like is the Trailing Stop by Andrzej Herman - here's 
the formula
> 
> strata:=10;
>       If(
>          C=PREV,
>          PREV,
>          If(
>             ((Ref(C,-1)<PREV)AND (C<PREV)),
>             Min(PREV,C*(1+strata/100)),
>             If(
>                (Ref(C,-1)>PREV) AND (C>PREV),
>                Max(PREV,C*(1-strata/100)),
>                If(
>                   C>PREV,
>                   C*(1-strata/100),
>                   C*(1+strata/100)
>                )
>             )
>          )
>       )
> 
> I have visually inspected with various stocks and like it, but I 
don't quite understand the formula, as the "strata" command is 
unknown to me - can someone explain it?
> (and yes, I have looked in the manual without finding a reference 
for it :-)
> 
> 2. I would like to insert in the system an exit condition, whereby 
the position is ended when both Trailing Stop (above) and SAR are 
hit, so for example for close long I have
> 
> (SAR( 0.020,0.2 ) AND  Fml( "Trailing Stop")> L)
> 
> problem is, generally the system is still giving the original 
signal and therefore it enters the market again in the previous 
direction the following day.
> 
> What I would like to do, instead, is that once both stops are hit 
(on the same day) and the system closes the position, it will wait 
for the next enter signal of the opposite direction. To repeat it 
with different words, what I want to try and do is let the system 
enter into a position once and if it gets stopped out, it wont enter 
another position until it gets a signal to enter a trade going the 
opposite direction.  
> 
> I hope this is clear.
> 
> I appreciate any help on this all,
> 
> 
> Daniele


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/