Define Buy/Sell and then use PlotShapes():

http://www.amibroker.com/guide/afl/afl_view.php?id=206

Bill
  ----- Original Message ----- 
  From: abdulazizmr 
  To: [email protected] 
  Sent: Saturday, August 30, 2008 10:12 AM
  Subject: [amibroker] help needed for this formula


  Dear All,
  please help me to add arows (buy, sell) to this formula. for example,
  when the ROCadj crosses the ROC its a buy sign and visa versa. thank you

  _SECTION_BEGIN("ROCadj");
      periods = Param("Periods", 21, 2, 200, 1 );
      ROCadj = periods * EMA( ROC( C, 1 ), periods );
      Plot( ROCadj, "ROCadj "+periods, colorRed, styleThick );
      // the line below adds standard ROC overlay
      Plot( ROC( C, periods ), "ROC "+periods, colorBrightGreen );




  ------------------------------------

  Please note that this group is for discussion between users only.

  To get support from AmiBroker please send an e-mail directly to 
  SUPPORT {at} amibroker.com

  For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
  http://www.amibroker.com/devlog/

  For other support material please check also:
  http://www.amibroker.com/support.html
  Yahoo! Groups Links





------------------------------------------------------------------------------



  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com 
  Version: 8.0.169 / Virus Database: 270.6.13/1642 - Release Date: 8/29/2008 
6:12 PM

Reply via email to