Hi, All
I try to backtest Parabolic SAR EA with EURUSD result not bad
Original EA code
https://www.mql5.com/en/code/23039
https://www.mql5.com/en/code/download/23039/parabolic_sar_ea.mq5
(anyone can try modify)
I test with default setting with XM broker result is ok (good)
but profits is not much, I need more money. I want to scale profits.
So, I modify EA from Fix lot to Auto Risk Percent Lot
by using standard class MoneyFixedMargin.mqh on MQL5
I use to cut and paste code from EA using MoneyFixedMargin.mqh to replace Lot size calculate
The first test result good on broker XM.com
testing backtest EURUSD from 1 January this year to now (December)
100 to 22,682
500 to 101,005
1000 to 132,655
2000 to 164,358
setting ar Risk 30% and all default setting from original
The problem I try to another broker all backtest fail. it can not use with other broker success
So, I test do optimization with EURUSDm broker Exness got a result (just 12 months this year)
500 to 602,461
1,000 to 793,616
2,000 to 987,378
However exness not good result it has to lose order continue 3 order (but optimize setting risk at 20% that still have a fund for trading) XM broker is a better result
Problem EA is sensitive, all it can not copy setting to use with other brokers
if you want to use other brokers you need to do optimization new one all again.
I confirm each broker need to do a new one optimization.
So, you need to optimize your own broker.
if you share setting file .set best set from optimization result
try share file OPT from optimization is better
OPT file is collect all result of optimization
(you can import file by click right on optimize result tab)
(sorry my EA using on folder name \A3\ on Expert folder)
from OPT file, How to choose optimization setting
to choose LOW Drawdown only first and use NON-profits factor or high-profit factor.
if high profits setting has high Drawdown do not use it.
use low Drawdown is low risk
use Blank profits factor is low risk (backtesting result is won all 100%)
use high-profit factor is low risk (low loss)
same all EA problem
setting value EA for backtesting result better is can possible
but future never know is still work good or not
and it looks like all broker have chart data is a difference for all broker
why all EA is faile when using different brokers.
XM Global Limited
IntLotOrRisk=1
InpVolumeLotOrRisk=30
InpLots=1
InpStopLoss=50
InpTakeProfit=50
Inp_timeframe=30
Inp_SAR_step=0.02
Inp_SAR_maximum=0.2
InpBarCurrent=1
m_magic=82139559
InpPrintLog=true
Exness-MT5Trial
IntLotOrRisk=1
InpVolumeLotOrRisk=20
InpLots=1
InpStopLoss=69
InpTakeProfit=98
Inp_timeframe=32769
Inp_SAR_step=0.33
Inp_SAR_maximum=7.9
InpBarCurrent=9
m_magic=82139559
InpPrintLog=true
I try to backtest Parabolic SAR EA with EURUSD result not bad
Original EA code
https://www.mql5.com/en/code/23039
https://www.mql5.com/en/code/download/23039/parabolic_sar_ea.mq5
(anyone can try modify)
I test with default setting with XM broker result is ok (good)
but profits is not much, I need more money. I want to scale profits.
So, I modify EA from Fix lot to Auto Risk Percent Lot
by using standard class MoneyFixedMargin.mqh on MQL5
I use to cut and paste code from EA using MoneyFixedMargin.mqh to replace Lot size calculate
The first test result good on broker XM.com
testing backtest EURUSD from 1 January this year to now (December)
100 to 22,682
500 to 101,005
1000 to 132,655
2000 to 164,358
setting ar Risk 30% and all default setting from original
The problem I try to another broker all backtest fail. it can not use with other broker success
So, I test do optimization with EURUSDm broker Exness got a result (just 12 months this year)
500 to 602,461
1,000 to 793,616
2,000 to 987,378
However exness not good result it has to lose order continue 3 order (but optimize setting risk at 20% that still have a fund for trading) XM broker is a better result
Problem EA is sensitive, all it can not copy setting to use with other brokers
if you want to use other brokers you need to do optimization new one all again.
I confirm each broker need to do a new one optimization.
So, you need to optimize your own broker.
if you share setting file .set best set from optimization result
try share file OPT from optimization is better
OPT file is collect all result of optimization
(you can import file by click right on optimize result tab)
(sorry my EA using on folder name \A3\ on Expert folder)
from OPT file, How to choose optimization setting
to choose LOW Drawdown only first and use NON-profits factor or high-profit factor.
if high profits setting has high Drawdown do not use it.
use low Drawdown is low risk
use Blank profits factor is low risk (backtesting result is won all 100%)
use high-profit factor is low risk (low loss)
same all EA problem
setting value EA for backtesting result better is can possible
but future never know is still work good or not
and it looks like all broker have chart data is a difference for all broker
why all EA is faile when using different brokers.
XM Global Limited
IntLotOrRisk=1
InpVolumeLotOrRisk=30
InpLots=1
InpStopLoss=50
InpTakeProfit=50
Inp_timeframe=30
Inp_SAR_step=0.02
Inp_SAR_maximum=0.2
InpBarCurrent=1
m_magic=82139559
InpPrintLog=true
Exness-MT5Trial
IntLotOrRisk=1
InpVolumeLotOrRisk=20
InpLots=1
InpStopLoss=69
InpTakeProfit=98
Inp_timeframe=32769
Inp_SAR_step=0.33
Inp_SAR_maximum=7.9
InpBarCurrent=9
m_magic=82139559
InpPrintLog=true