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

[amibroker] How to Force AmiBroker to Hold Buy Only for 30 days


  • Date: Fri, 26 Feb 2010 17:48:36 -0000
  • From: "bistrader" <bistrader@xxxxxxxxx>
  • Subject: [amibroker] How to Force AmiBroker to Hold Buy Only for 30 days

PureBytes Links

Trading Reference Links

Hello,

I have a regular backtest with Buy and Sell statements.  Is there a way to force the buy ONLY to stay on a buy for 30 days?

Example:
Buy = true 20 calendar days ago;
Sell = true 8 calendar days ago;
Buy - true yesterday; 

Want to force Buy to stay on buy for total of 30 days and then want to sell but only if another Buy signal did not come along.  In this case, system would go on buy 20 days ago and stay on buy today since had another buy signal before 31 days was up, even though sell was true 8 days ago.



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

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

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

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/