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

RE: [EquisMetaStock Group] barssince - what am I doing wrong??



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.  Please use this
page to reply.
 




That 
goes for me as well - Thanks Roy
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Jono

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: pumrysh 
  [mailto:no_reply@xxxxxxxxxxxxxxx]Sent: Wednesday, October 23, 2002 
  10:42 AMTo: equismetastock@xxxxxxxxxxxxxxxSubject: Re: 
  [EquisMetaStock Group] barssince - what am I doing 
  wrong??Roy,Thanks! I was hoping you'd get in 
  on this.Mike & Chellester, Roy is the KING when it comes to 
  working with formulas. He has spent countless hours working with these 
  formulas. His work on the Trade Equity indicators is pure genius. We are 
  honored to have a copy of it in the group files section. I would 
  encourage you and everyone else to take some time and study this work. 
  It is an education that would take you lierally years to obtain on your 
  own. The greatest part is that Roy offers this work for FREE!Roy, you 
  are one in a million!! THANKS,Preston --- In 
  equismetastock@xxxx, "Roy Larsen" <rlarsen@xxxx> wrote:> 
  Chellester> > Pd:=5;> 
  A:=C>(BBandTop(C,20,S,2));> B:=A AND Alert(A=0,2);> 
  D:=If(PREV=0,If(B,1,0),If(BarsSince(PREV=0)>=Pd,0,PREV));> Buy:=D 
  AND Alert(D=0,2);> Sell:=D=0 AND Alert(D,2);> Sell;> 
  > This will give the most accurate timing from the FIRST bar of a 
  signal. I> would create this as an indicator and use an FmlVar() 
  call for the System> Tester "Buy" signal, and an Fml() call for the 
  System Tester "Sell" signal.> > There are a number of ways 
  you can approach different parts of your problem,> but I think the 
  approach above using a PREV based latch is going to be the> most 
  accurate. You probably need to display all variables as outputs at 
  the> same time to get an idea of what each is doing. As presented 
  above "Sell" is> the only output.  For visual verification you 
  could use> > Pd:=5;> 
  A:=C>(BBandTop(C,20,S,2));> B:=A AND Alert(A=0,2);> 
  D:=If(PREV=0,If(B,1,0),If(BarsSince(PREV=0)>=Pd,0,PREV));> Buy:=D 
  AND Alert(D=0,2);> Sell:=D=0 AND Alert(D,2);> A+5;> 
  B+3.75;> D+2.5;> Buy+1.25;> Sell;> > 
  Roy> > > Hi, I must be doing something wrong with my formulas 
  etc -(Only had> > MetaStock for a couple of weeks, so thats 
  quite possible!!)> > I want to test trades that last a number of 
  days, say 5, but I can't> > see a simple way of doing 
  this.  What I've tried is setting up the> > buy signals, 
  getting that all working, and then for closing using the> > 
  barssince function. For example if the Enter Long formula was> 
  >> > c>(BBandTop(c,20,S,2)) I would be trying to close 
  by> >> >> > barssince(c>(BBandTop(c,20,S,2)) 
  )>5> >> > but in my tests, I'm still getting results 
  where the longest trade> > was for up to 300 days!!  I've also 
  tried using if() in a similar> > manner.> >> > 
  Can anyone tell me what I'm doing wrong, or if there is a better 
  way> > to do this.> >> > Thanks so much, 
  it's driving me nuts!!> >> >> >> 
  >> > To unsubscribe from this group, send an email to:> 
  > equismetastock-unsubscribe@xxxx> >> >> 
  >> > Your use of Yahoo! Groups is subject to <A 
  href="http://docs.yahoo.com/info/terms/";>http://docs.yahoo.com/info/terms/> 
  >> >> >> >To 
  unsubscribe from this group, send an email 
  to:equismetastock-unsubscribe@xxxxxxxxxxxxxxxYour 
  use of Yahoo! Groups is subject to the <A 
  href="http://docs.yahoo.com/info/terms/";>Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


<font face=arial
size=-2>ADVERTISEMENT<img src="http://ad.doubleclick.net/ad/N879.ameritrade.yahoo/B1054521.11;sz=300x250;adc=ZHS;ord=1035341981?"; alt="" width="300" height="250"
border="0">









To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.