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

Re: [amibroker] Addcolumn( close x days after buydate ....) : [AFL gurus please]


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: Re: [amibroker] Addcolumn( close x days after buydate ....) : [AFL gurus please]
  • From: "Anthony Faragasso" <ajf1111@xxxxxxxx>
  • Date: Sat, 4 Sep 2004 08:23:05 -0400

PureBytes Links

Trading Reference Links

Do you mean something like this:

addcolumn(valuewhen(ref(buy,-10),close),"x10");




----- Original Message ----- 
  From: kris45mar 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, October 04, 2004 7:49 AM
  Subject: [amibroker] Addcolumn( close x days after buydate ....) : [AFL gurus please]


  Hi all.
  Could I ask for help with this concept please: I wish to explore for a buy condition and then add columns for the closing price x number of days after the buydate.
  This to be exported to Excel.

  I am stuck with barsince,datenum, barindex, etc.

  //sample...

  Buy = Cond1;

  SetTradeDelays(1,1,1,1);

  Sell =0;

  Filter = Buy;

  AddColumn(Close,"buyprice",1.2);

  // How to add a column showing the close 10 days after the buy date...

  // then add a column showing the close 20 days after the buy date....

  //...etc


  Any help, guidance, tips appreciated.

  Regards

  ChrisB

              
  ---------------------------------
  Do you Yahoo!?
  vote.yahoo.com - Register online to vote today!

  [Non-text portions of this message have been removed]



  Check AmiBroker web page at:
  http://www.amibroker.com/

  Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 


        Yahoo! Groups Sponsor 
              ADVERTISEMENT
             
       
       


------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/
      
    b.. To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/