| 
 PureBytes Links 
Trading Reference Links 
 | 
Hi Jose,
Here is the basic code
To go long:
RWIL(opt1,opt2)>1    
AND RWIH(opt3,opt4)>1 
To go Short:
RWIH(opt1,opt2)>1    
AND RWIL(opt3,opt4)>1
Straight forward, until it happens that both triggers are on the same bar. Then the Order Bias is forced either Long or Short according to your choice in EST. As I wrote before, the trades need to alternate.
Regards
Carl
  ----- Original Message ----- 
  From: Jose Silva 
  To: equismetastock@xxxxxxxxxxxxxxx 
  Sent: Friday, November 10, 2006 7:51 PM
  Subject: [EquisMetaStock Group] Re: AST long bias problem
  Carl, post your code here and we'll take a look at your problem.
  jose '-)
  http://www.metastocktools.com
  --- In equismetastock@xxxxxxxxxxxxxxx, "CJ van Heerden" <cj.vh@xxx> 
  wrote:
  >
  > 
  > Hi everyone,
  > 
  > I need some help please. 
  > 
  > I have an indicator I want to test, but cannot get the code right.
  > 
  > There is a Long signal. When it spikes through 1, I enter long.
  > There is a Short signal. When it spikes through 1, I go short.
  > 
  > So far so good. This is a stop and reverse system (the trailing
  > stops will come later).
  > 
  > Sometimes the two signals happen together. When that happens,
  > I must reverse the position -i.e. if I am long, I must go short and
  > vice versa. This is where I see my backside. 
  > 
  > This problem occurs because Advanced System Tester forces one to
  > choose a long or short bias in such a case. It is not good enough.
  > MS7.2 tested fine as it alternated automatically.
  > 
  > I would appreciate some pointers. I basically need to let the
  > system know whether I am currently long or short and let it make
  > the correct decision to buy or sell when the two signals occur
  > together.
  > 
  > I am sure that someone in the group will have an elegant solution
  > worked out. I would appreciate some help.
  > 
  > 
  > Regards,
  > 
  > Carl
   
  __________ NOD32 1861 (20061110) Information __________
  This message was checked by NOD32 antivirus system.
  http://www.eset.com
[Non-text portions of this message have been removed]
 
Yahoo! Groups Links
<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
    Individual Email | Traditional
<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)
<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
 
 |