Hi All,
I'd like to test how certain buy/sell rules perform on an indicator itself, using the indicator as price and not the stock price
For example, the buy/sell rules are:
buy=cross(indicator,MA(indicator,20));
sell=cross(MA(indicator,20),indicator);
Now I want the buy and sell prices to be the values of the indicator and not the stock prices
I tried to use:
buyprice=indicator;
sellprice=indicator;
but it didn't work
of course one can always create an artificial ticker by using AddtoComposite, then perform a backtest on it.
But I'm wondering if there is a better solution that doesn't require the use of Addto composite
Thanks
N.
__._,_.___
Posted by: namanh_ca@yahoo.ca
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
**** 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/
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