Re: [Bulk] Re: [amibroker] Re: Breaking the 70% winners barrier

 

Nick, I just had a quick look at your code and there may be a small error in either the comments or your code. When calculating fp6, shouldn't the calculation be a Subtraction?


//component 5
//Rule: Buy if the Close is higher than the 15-Day average High
//minus the 15-Day average Low. Sell on the opposite condition.
fp6=Close>(MA(High,15) + MA(Low,15))/2;


In the next section is fp3 meant to be your Buy or Sell Short variable? the value of fp3 will be a 1 if only zero or one of the past three open-to-closes are down. fp3 will be a zero if two or three of the past open-to-closes are down. That may be exactly as you intended, I just did not understand the intent.
 
Best wishes,

Larry

__._,_.___

Posted by: portfoliobuilder99@gmail.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (14)
**** 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/


.

__,_._,___


EmoticonEmoticon