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

[EquisMetaStock Group] system test for trailing stop?



PureBytes Links

Trading Reference Links

Title: Message
jose or anyone thinks may be of help,
 
i have the following code for trailing stoploss. it is simple but fits my trading i suppose.
 
i would like to see the the system tester optimizations for this. anyone can convert??
 
cheers,
t
 

If(

         C=PREV,

         PREV,

         If(

            ((Ref(C,-1)<PREV)AND (C<PREV)),

            Min(PREV,C*(1+opt1/100)),

            If(

               (Ref(C,-1)>PREV) AND (C>PREV),

               Max(PREV,C*(1-opt1/100)),

               If(

                  C>PREV,

                  C*(1-opt1/100),

                  C*(1+opt1/100)

               )

            )

         )

      )


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links