0
(0)
ชื่อ:
EMAplusWPRv1_1
ผู้เขียน: ทัวร์18 (2011.03.30 09:24)
ดาวน์โหลดแล้ว: 5067
ดาวน์โหลด:
 

เวอร์ชันจริง : 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 และเพื่อลดการเบิกจ่าย. 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 นาที (ม.5) 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) * lotStep;

   ถ้า (มากมาย < minAllowedLot)  lots = minAllowedLot;
   ถ้า (มากมาย > maxLots)        lots = maxLots;
   ถ้า (มากมาย > maxAllowedLot)  lots = maxAllowedLot;

รายงานผู้ทดสอบกลยุทธ์

EMAplusWPRv1_1 + position sizing
XTrade-MT4 Demo (สร้าง 229)
เครื่องหมาย EURUSD (ยูโรเทียบกับดอลลาร์สหรัฐ)
ระยะเวลา 5 นาที (ม.5) 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, however with 500 usd start deposit. It is doing ok so far for a month and a half.

The new version, แต่ถึงอย่างไร, 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

ยังไม่มีคะแนนโหวต! เป็นคนแรกที่ให้คะแนนโพสต์นี้.

ขออภัยที่โพสต์นี้ไม่มีประโยชน์สำหรับคุณ!

ให้เราปรับปรุงโพสต์นี้!

บอกเราว่าเราจะปรับปรุงโพสต์นี้ได้อย่างไร?



ผู้เขียน: ทีมงาน Forex Wiki
เราคือทีมผู้ซื้อขาย Forex ที่มีประสบการณ์สูง [2000-2023] ที่อุทิศตนเพื่อใช้ชีวิตในแบบของเรา. วัตถุประสงค์หลักของเราคือการได้รับอิสรภาพทางการเงินและอิสรภาพ, และเราได้ติดตามการศึกษาด้วยตนเองและได้รับประสบการณ์ที่กว้างขวางในตลาด Forex เพื่อเป็นหนทางในการบรรลุวิถีชีวิตที่ยั่งยืนด้วยตนเอง.