Clone existing strategy MC

46 views
Skip to first unread message

Hernan Javier Ardila Sanchez

unread,
Apr 18, 2024, 11:53:41 AMApr 18
to Adaptrade Builder
I have read several articles and the Adaptrade Builder manual, I want to learn how to use it as best as possible by reading the documentation and make the most of the trial version to then make the subsequent purchase, my question is: I have several strategies I have made based on the same prototype where I call an external Multicharts function created by the user where all the candlestick patterns are case coded using only the daily candlestick price data and that function is called each time for strategies using multiple triggers, could I replicate this with Adaptrade Editor? , then clone and Adaptrade Builder strategies with correct values for this function, profit, stop, intraday, multiday, etc.?. Thank you very much and I look forward to the answer. 

Mike Bryant

unread,
Apr 18, 2024, 12:34:30 PMApr 18
to adaptrad...@googlegroups.com

I recommend you read the documentation about using custom indicators in Builder. It’s discussed in the user’s guide, in a video under the Videos link on the site and in several newsletters, such as this one: http://www.adaptrade.com/Newsletter/NL-TrueFalseFilters.htm. The basic idea is that you provide a function name that when called in your code returns the indicators values. At the same time, you add an extra column to your file of price data to represent the indicator values, as returned by that function call. Builder does the rest. Provided you have your indicator in the form of a function that returns a value and you can plot those values on a chart in MultiCharts, it should work.

 

Mike Bryant

Adaptrade Software

Hernan Javier Ardila Sanchez

unread,
Apr 23, 2024, 1:15:32 PMApr 23
to Adaptrade Builder
Good morning, Mike,

Thank you for your reply, I don't understand very well how I could do it, but the general idea is this, in this function contains 151 candlestick patterns calculated with the daily price value of the last 5 sessions that are stored inside a data array "OHCLValues", where the values 152 and 153 are always True and False respectively and are set as Inputs PatternYes and PatternNo, whose inputs are optimized to choose which pattern would improve the strategy if it is True and which one should be avoided if it is False, adding some trigger (cross of averages, Breakout supports and resistances, etc) . This function gives as result False/True and are used as buy and sell conditions. 
Example:

If PatternsCand(PatternYes,OHCLValues) and PatternsCand(PatternNo,OHCLValues)=False and "Trigger" then Buy/Sell

How can I replicate it?

Cordially,

Javier

Mike Bryant

unread,
Apr 23, 2024, 1:47:07 PMApr 23
to adaptrad...@googlegroups.com

The article I linked to below in the prior response is a perfect match to your problem. It illustrates the process of setting up a true/false custom indicator for use in Builder. It looks like you already have the indicator functions, so you’re already basically done. You just need to plot them on the chart window, include the values in your file of price data, and enter the function names, such as PatternsCand(PatternYes,OHCLValues), on the Data File Format window, as shown in Fig. 1 in the article.

Reply all
Reply to author
Forward
0 new messages