Weight averaged ADXR strategy
Forums › ProRealTime English forum › ProOrder support › Weight averaged ADXR strategy
- This topic has 10 replies, 2 voices, and was last updated 6 years ago by gabri.
-
-
11/06/2017 at 11:14 AM #51604
This strategy is based on the modified version of the Directional Movement indicator I posted here. The strategy has to be backtested but it always gives above 70% of winning trades with a decent gain/loss ratio. The average gain per trade can be improved by changing the stop loss and the ADXR threshold.
Blue skies.
12345678910111213141516171819//tipomm=2//x=5 - I normally use a number between 5 and 10DEFPARAM CumulateOrders = False// Entering longignored, ignored, mioDI, ignored, mioADXR, ignored = CALL "PRT - ADX e DI"[14, 2]c1 = (mioADXR > 50)c2 = (mioDI > 0)IF c1 AND c2 THENBUY 3000 CASH AT average[x,tipomm](low) limitENDIF// Exiting longIF longonmarket THENSELL AT average[x,tipomm](high) limitENDIFset stop %loss 151 user thanked author for this post.
11/06/2017 at 11:15 AM #51631Hi Gabri, thanks for your contribution for the benefit of everyone here!
About this specific strategy, I’d like to know a little more:
_ what instrument, spread and / or fees?
_ what timeframe?
_ optimized settings: did you try WFA?11/06/2017 at 12:31 PM #51652Nicolas,
I use stocks (italian, german and french), daily timeframe and no spread on the strategy I posted. I used this system for several months in real trading (manual) and got always more than 70% winning trades and better gain/loss ratios than the one published. I didn’t WFA.
Gabri
11/06/2017 at 1:24 PM #5165511/06/2017 at 2:22 PM #5166611/06/2017 at 2:32 PM #5166711/06/2017 at 4:14 PM #5167311/06/2017 at 4:37 PM #51682I coded it this way:
(trendperiod is an optimized variable), a 100 days period is a good compromise between performance and trades quantity..
12345678910111213141516171819202122DEFPARAM CumulateOrders = Falsetipomm=2x=5 //I normally use a number between 5 and 10// Entering longignored, ignored, mioDI, ignored, mioADXR, ignored = CALL "Mio - ADX e DI"[14, 2]c1 = (mioADXR > 50)c2 = (mioDI > 0)c3 = close>average[trendperiod](close)IF c1 AND c2 and c3 THENBUY 3000 CASH AT average[x,tipomm](low) limitENDIF// Exiting longIF longonmarket THENSELL AT average[x,tipomm](high) limitENDIFset stop %loss 1511/06/2017 at 7:23 PM #51728Nicolas,
I think your addition it’s quite interesting but I personally think that launching a screener first (CSI or ADXR) and then running the code on the first 10-15 stocks of the list (building a portfolio) has better results. I quickly tested your version on a portfolio and seems to be carrying lower profits. I like the fact though that you have better gain per trade.
Gabriele
11/06/2017 at 8:30 PM #5172911/06/2017 at 8:43 PM #51732Good question. I don’t use too much this system anymore but I used to rebalance weekly. I always keep between 20 to 35 stocks in a short trading portfolio. When I sell I am not rushed to find a new stock to replace the old. I just run this screener (or some other screener focused on short term trading) once a week and if I find a good stock I add it.
-
AuthorPosts
Find exclusive trading pro-tools on