Ok e grazie, per lo script. Facendolo girare, tale e quale, ho risultati comunque negativi. Sicuro di avere postato la versione dello script corretta?
Ciao
Test mpMarianog EUR/USD (TICKS)
Simulated account AssetsFix
Bar period 4 hours (avg 343 min)
Test period 2017-01-02..2017-12-29 (1518 bars)
Lookback period 80 bars (19 days)
Simulation mode Realistic ticks (slippage 5.0 sec)
Avg bar 120.0 ticks 24.4 pips range
Spread 0.8 pips (roll -0.02/0.01)
Contracts per lot 1000.0
Capital invested 1500$
Gross win/loss 2337$ / -2803$ (-353p)
Average profit -470$/year, -39.14$/month, -1.81$/day
Max drawdown -683$ -146.8% (MAE -683$ -146.8%)
Total down time 99% (TAE 38%)
Max down time 38 weeks from Feb 2017
Max open margin 150$
Max open risk 70.53$
Trade volume 4405574$ (4447174$/year)
Transaction costs -312$ spr, 15.68$ slp, -0.16$ rol
Capital required 1339$
Number of trades 343 (347/year, 7/week, 2/day)
Percent winning 77.3%
Max win/loss 22.21$ / -71.44$
Avg trade profit -1.36$ -1.0p (+6.7p / -27.2p)
Avg trade slippage 0.0457$ 0.0p (+0.3p / -0.9p)
Avg trade bars 1 (+1 / -1)
Max trade bars 13 (52 hours)
Time in market 30%
Max open trades 1
Max loss streak 3 (uncorrelated 4)
Annual growth rate -31.26%
Profit factor 0.83 (PRR 0.70)
Sharpe ratio -1.29
Kelly criterion -5.26
R2 coefficient 0.436
Ulcer index 100.0%
Ciao
Code:
#include <profile.c> function run() { set(TICKS|PLOTNOW); StartDate = 20170101; EndDate = 20171231; BarPeriod = 240; BarZone=CET; StartMarket=0001; EndMarket=2359; asset("EUR/USD"); Commission=0; Spread=0.00008; Capital=1500; Margin = 0.1 * OptimalF * Capital* sqrt(1 + ProfitClosed/Capital); int periodo=5; var caso=random(); Entry=-0.6*ATR(periodo); Stop=ATR(periodo); TakeProfit=0.3*Stop; if(ATR(periodo)>0.00200) { if(NumOpenTotal==0){ if(caso>0) reverseLong(1); else reverseShort(1); printf("\natr:%.5f entry:%.5f stop:%.5f takeprofit:%.5f", ATR(periodo),Entry,Stop,TakeProfit); } } // PlotBars=150; // plotTradeProfile(10); // plotMAEGraph (100); PlotWidth=800; }
Simulated account AssetsFix
Bar period 4 hours (avg 343 min)
Test period 2017-01-02..2017-12-29 (1518 bars)
Lookback period 80 bars (19 days)
Simulation mode Realistic ticks (slippage 5.0 sec)
Avg bar 120.0 ticks 24.4 pips range
Spread 0.8 pips (roll -0.02/0.01)
Contracts per lot 1000.0
Capital invested 1500$
Gross win/loss 2337$ / -2803$ (-353p)
Average profit -470$/year, -39.14$/month, -1.81$/day
Max drawdown -683$ -146.8% (MAE -683$ -146.8%)
Total down time 99% (TAE 38%)
Max down time 38 weeks from Feb 2017
Max open margin 150$
Max open risk 70.53$
Trade volume 4405574$ (4447174$/year)
Transaction costs -312$ spr, 15.68$ slp, -0.16$ rol
Capital required 1339$
Number of trades 343 (347/year, 7/week, 2/day)
Percent winning 77.3%
Max win/loss 22.21$ / -71.44$
Avg trade profit -1.36$ -1.0p (+6.7p / -27.2p)
Avg trade slippage 0.0457$ 0.0p (+0.3p / -0.9p)
Avg trade bars 1 (+1 / -1)
Max trade bars 13 (52 hours)
Time in market 30%
Max open trades 1
Max loss streak 3 (uncorrelated 4)
Annual growth rate -31.26%
Profit factor 0.83 (PRR 0.70)
Sharpe ratio -1.29
Kelly criterion -5.26
R2 coefficient 0.436
Ulcer index 100.0%
Comment