0
(0)
名前:
EMAplusWPRv1_1
著者: ツアー18 (2011.03.30 09:24)
ダウンロード済み: 5067
ダウンロード:
 

ACTUAL VERSION : http://codebase.mql4.com/7746

Expert advisor that trade in the trend of EMA and buy/sell signals get from Williams %R

I have tried to create an Expert advisor that could by traded with 1000 EUR starting equity and to minimize the drawdown. Hope you like it. I appreciate every feedback.

Optimized for EURUSD 5 分

I have removed some bugs, changed position sizing, you define the % of your account you want to risk on a single trade. I added simple trailing stop, if trailingStop = 0, then it is disabled.

You use it on your own risk. I am not responsible for your loss, you have to change, test and optimize it for your purpose.

入力:

extern double takeProfit      = 200;      // take profit
extern double maxStopLoss     = 50;       // stop loss

extern double maxLots         = 10;       // max lots per position
extern double maxContracts    = 2;        // max open positions, 2 is optimal for smoother equity

extern double EMA             = 144;      // EMA to identify trend
extern int    iWPRPeriod      = 46;       // Williams' Percentage Range to determine buy/sell signals
       int    iWPRretracement = 30;       // retracement of Williams' Percentage to allow next trade
extern double trailingStop    = 50;       // トレーリングストップ, 使用 0 to disable trailing stop
extern int    risk            = 2;        // % of account you want to risk on a trade
extern double magicNumber     = 13131;

ストラテジーテスターレポート

EMAplusWPRv1_1
XTrade-MT4 Demo (建てる 229)
シンボル EURUSD (ユーロ対米ドル)
期間 5 分 (M5) 2010.01.04 00:00 - 2011.02.01 23:55 (2010.01.04 - 2011.02.02)
モデル ティックごと (利用可能なすべての最小時間枠に基づく最も正確な方法)
パラメーター takeProfit=200; maxStopLoss=50; maxLots=0.1; maxContracts=2; EMA=144; iWPRPeriod=46; trailingStop=50; risk=6; magicNumber=13131;
テスト中のバー 59025 モデル化されたティック 7365767 モデリング品質 なし
チャートの不一致エラー 8220
頭金 1000.00
純利益合計 1635.88 粗利益 4478.56 総損失 -2842.67
プロフィットファクター 1.58 期待される見返り 3.92
絶対ドローダウン 22.16 最大ドローダウン 249.69 (10.77%) 相対ドローダウン 12.99% (188.82)
総取引数 417 ショートポジション (勝利した %) 198 (67.68%) ロングポジション (勝利した %) 219 (73.52%)
利益取引 (% 合計の) 295 (70.74%) 損失取引 (% 合計の) 122 (29.26%)
最大 利益貿易 67.23 損切り -39.62
平均 利益貿易 15.18 損切り -23.30
最大 連勝 (お金の利益) 20 (273.93) 連敗 (金銭の損失) 6 (-142.17)
最大 連続利益 (勝利数) 326.42 (15) 連敗 (損失の数) -142.17 (6)
平均 連勝 4 連敗 2

EMAplusWPRv1_1 1

To use my position sizing increase the maxLots size and define the risk - 幾つか % of your account you want to risk on a single trade.

For position sizing I use the following code:

   minAllowedLot  =  MarketInfo(シンボル(), MODE_MINLOT);    //IBFX= 0.10
   lotStep        =  MarketInfo(シンボル(), MODE_LOTSTEP);   //IBFX= 0.01
   maxAllowedLot  =  MarketInfo(シンボル(), MODE_MAXLOT );   //IBFX=50.00

   balance = AccountBalance();  
   ilo   =  ((バランス * 危険 / 100) / maxStopLoss); 

   lots  =  NormalizeDouble(ilo, 0) * ロットステップ;

   もしも (たくさん < minAllowedLot)  lots = minAllowedLot;
   もしも (たくさん > maxLots)        lots = maxLots;
   もしも (たくさん > maxAllowedLot)  lots = maxAllowedLot;

ストラテジーテスターレポート

EMAplusWPRv1_1 + position sizing
XTrade-MT4 Demo (建てる 229)
シンボル EURUSD (ユーロ対米ドル)
期間 5 分 (M5) 2010.01.04 00:00 - 2011.02.01 23:55 (2010.01.04 - 2011.02.02)
モデル ティックごと (利用可能なすべての最小時間枠に基づく最も正確な方法)
パラメーター takeProfit=200; maxStopLoss=50; maxLots=10; maxContracts=2; EMA=144; iWPRPeriod=46; trailingStop=50; risk=6; magicNumber=13131;
テスト中のバー 59025 モデル化されたティック 7365767 モデリング品質 なし
チャートの不一致エラー 8220
頭金 1000.00
純利益合計 4655.80 粗利益 13740.16 総損失 -9084.36
プロフィットファクター 1.51 期待される見返り 11.16
絶対ドローダウン 22.16 最大ドローダウン 1139.43 (28.08%) 相対ドローダウン 28.08% (1139.43)
総取引数 417 ショートポジション (勝利した %) 198 (67.68%) ロングポジション (勝利した %) 219 (73.52%)
利益取引 (% 合計の) 295 (70.74%) 損失取引 (% 合計の) 122 (29.26%)
最大 利益貿易 268.93 損切り -256.75
平均 利益貿易 46.58 損切り -74.46
最大 連勝 (お金の利益) 20 (353.21) 連敗 (金銭の損失) 6 (-354.36)
最大 連続利益 (勝利数) 1466.13 (15) 連敗 (損失の数) -664.91 (4)
平均 連勝 4 連敗 2

EMAplusWPRv1_1 2

 

9 コメント 新しいコメントを投稿するには, お願いします ログイン また 登録

genial!!!!!

01.06.2011 06:11 ea20102010

EMAplusWPRv1_1 3
19.05.2011 01:16 Pityka888

but its a great job m8

03.05.2011 20:32 zaratrau

with me doesnt work at all

03.05.2011 20:20 zaratrau

こんにちは, congratulations for your EA, I am already using it on real, ただし 500 usd start deposit. It is doing ok so far for a month and a half.

新しいバージョン, それでもないし, will not open trades correctly, it will start with 0.01 多く, Broker STS Finance, and will not increase it. Please vefify this it might be just a little bug 🙂

提案: You might include MACD 4H filter, and open trades only in the direction of relationship of Convergence/divergence bars and signal line. This is only suggestion not mandatory, the EA worsk ok so far as I said.

乾杯,

Vladimir Draganov

[email protected]

11.04.2011 20:19 vlddrg

Can i ask you, how can i set my own lot size with this EA.

I am a beginner so i hope some one can teach me, ありがとう.

31.03.2011 21:22 nomis

やあ,

thanks for new version.

you should make a backtest from 2011.02.02 の上, because the last version made only losses since then.

Re

31.03.2011 09:21 KlamseN

the trailingStop does not trail at all
30.03.2011 14:06 razoff

やあ

Can you help me to create a Bollinger Bands and Stochastic in 1 スクリプト ?

so that i can use it in my expert advisor

この投稿は役に立ちました?

星をクリックして評価してください!

平均評価 0 / 5. 投票数: 0

これまでのところ投票はありません! この投稿を最初に評価してください.

この投稿が役に立たなかったことをお詫び申し上げます!

この投稿を改善しましょう!

この投稿を改善する方法を教えてください?



著者: 外国為替ウィキチーム
私たちは経験豊富な外国為替トレーダーのチームです [2000-2023] 自分の思いどおりに人生を生きることに専念している人. 私たちの主な目的は、経済的自立と自由を獲得することです, 私たちは自立可能なライフスタイルを実現する手段として、独学で外国為替市場での豊富な経験を積んできました。.