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

Re: [amibroker] Help with buy formula



PureBytes Links

Trading Reference Links

Tom this is a different error. I wish I had the background. Does anyone else get the error message?  Marshall
  ----- Original Message ----- 
  From: professor@xxxxxxxxxxxxxx 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, December 12, 2006 10:32 AM
  Subject: Re: [amibroker] Help with buy formula



  Marshall,
  Here is the code after the changes. Nothing special.
  //Buy Signals

  Condition1 = C > Dropline AND Ref(C,-1) < Ref(Dropline,-1);

  Cond1=StochK() - Ref(StochK(),-1) >1;

  Cond2=MACD() > Ref(MACD(),-1);

  Cond6=StochD()<25; 

  Cond7=BarsSince(Cond6) <=7;



  //Sell Signals

  Condition10 = C < Increase AND Ref(C,-1) > Ref(Increase,-1);

  Cond11=StochK() - Ref(StochK(),-1) < 1;

  Cond12=MACD() < Ref(MACD(),-1);

  Cond16=StochD()>75; 

  Cond17=BarsSince(Cond16) <=7;

  //Buy and Sell orders

  Buy = BarsSince(Condition1) <=5 AND Cond1 AND Cond7;

  Sell = BarsSince(Condition10) <=5 AND cond11 AND Cond17;

  //Short and Cover conditions

  Short = Sell;

  Cover = Buy;

  I hope that this helps.

  Thanks,

  Tom








   

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.16/582 - Release Date: 12/11/2006 4:32 PM