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

Re: [amibroker] broad market index



PureBytes Links

Trading Reference Links


HOPE THIS HELPS

JOE 

TO DEVELOP COMPOSITE 

// Choose a watchlist, set a date range and run scan

fundname = ParamStr("Family Name","RUT"); 

AddToComposite(1, "~" + fundname + "count", "X");

AddToComposite(IIf(Close - Ref(Close, -1) > 0, 1, 0), "~" + fundname + "Adv", "X" );

AddToComposite(IIf(Ref(Close, -1) - Close > 0, 1, 0), "~" + fundname + "Dec", "X" );

Buy = Sell = 0; 

AN A/D INDICATOR 

_SECTION_BEGIN("Russell 2000 Advance Delines");

RUTADV=Foreign("~RUTAdv","X");

RUTDECL = Foreign("~RUTDec","X");

DIFF = RUTADV-RUTDECL;

Plot(RUTADV,"RUT(Grn)",8,2);

Plot(-RUTDECL,"RUT(Red)",4,2);

Plot(MA(Diff,10),"10dayMA",1,4);

Plot(0,"",colorLightBlue,1);

Title = "Russell 2000 Adv(Green) & Decl(Red),Net10day MA";

_SECTION_END();



  ----- Original Message ----- 
  From: eric tao 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Thursday, January 11, 2007 2:15 PM
  Subject: [amibroker] broad market index


  Hi Guys,

  I try to build a Advance/Decline market indicator using AFL. I don't
  know if it's possible or the topic has been brought up before.
  I figured without static array in AFL, it's very hard to achieve. 
  Hope I'm wrong. 

  Thank you.
  Eric



   
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.9/623 - Release Date: 1/11/2007 3:33 PM