Thank you very much, Francesco, for the strategy, which seems solid and robust !
I tried this on AUD CAD 30 minutes and it works also quite well.
Extended variables : S for short average close
With 15.000 bars from 7 February till 4 May 2018 it gives a robust profit of 2.945 CAD in 3 months (I did no IS/OOS testing) with M=3, N=2, L = 50 and S = 40, in 398 trades, spread 1,7 pips calculated
I also tried a maximum of one trade per day, with adding the condition ” OneTradePerDay = IntradayBarIndex < (Barindex – TradeIndex(1)) ”
This reduces the amount of trades with more then half, 180 trades, giving a robust profit of 2.354 CAD, with M=3, N=5, L = 50 and S = 90 (also I did no IS/OOS testing so far)
========================================================
For other currencies and indices I am still testing
So far for the FTSE with 2 contracts, exposure more than 30.000 GBP (!), it gives interesting profit of 3.900 GBP on the 15 minutes bar chart with 15.000 bars, from an a maximum of one trade per day, from 6 september 2017 till 4 May 2018, with M=1, N=3, L = 50 and S = 40 (also I did no IS/OOS testing so far !!)
The risk of overfitting for this kind of short periods is very big !! When testing for 100.000 bars the profit especially in the beginning, completely deminish !!!!!!!, but the endresult is quiet the same !
When testing the FTSE for 100.000 15 minutes-bars with not restricted trades per day, the NON- robust profit is a bit lower as when restricted to one trade per day, but not robust and a bit lower.
Kind regards,
Jan