EnvelopeMA เวอร์ชัน 0.0.1.beta

0
(0)
ชื่อ:
EnvelopeMA เวอร์ชัน 0.0.1.beta
ผู้เขียน: กัสซิโอ เจ. พานนอนเชลลี, แอนดรูว์ ดี. จากโนวิส (2010.03.08 10:03)
ดาวน์โหลดแล้ว: 4828
ดาวน์โหลด:
EnvelopeMA version 0.0.1.beta 1
ซองจดหมายMA.mq4 (8.7 Kb) ดู
Hi folks,

ฉันได้เรียนรู้และสร้าง EA จาก 2 เดือน, อันนี้เป็นครั้งแรกของฉันที่สมเหตุสมผลและ "แทบไม่มีข้อผิดพลาดเลย" หุ่นยนต์. มันเป็นเพียงกางเกงขาสั้น (ไม่มีตำแหน่งยาวจนถึงขณะนี้), when short positions are clearly good a long position version will be cloned and attached to the EA. It was made for 15-minute chart (เอ็ม 15) because there are no many sell stop positions executed to place it on higher periods (เอ็ม30, H1+) and no lower periods because the spread becomes more significantly. Entry is made by sell stop pending orders placed whenever the Ask price and two moving averages are comprised by the low period envelope bands, this order stands for 1h15min. Exits when three different Parabolic SAR points are under the Ask price and there is a crossover of moving averages (signal moving average crosses fast moving average from down to up).

S/L and T/P are configurable and optional. Obviously there are ways to turn this system a great winner using Martingale strategy but the main idea now is to improve only the sell signals. หลังจากนี้, we will attach risk management modules, better exit ways, เป็นต้น. I hope you don't mind code is in Portuguese. Some explanations of input parameters are below:

  • AguardaCompletarCandle: Wait for 15-minute chart bar is completed to take a decision (is equivalent to use "Open bar prices only" in tester)
  • ที.พี: ทำกำไร (ในจุด)
  • ส: หยุดการสูญเสีย (ในจุด)
  • PerEnv: Period of envelope
  • sdEnv: Deviation of envelope
  • PerMM: Period of signal exponential moving average
  • PerMMl: Period of fast (slower than signal) exponential moving average

other input parameters are explained in "พารามิเตอร์อินพุต" box in the tester and it's part of risk management, not about order placing.

I hope you enjoy and whenever someone leave good idea(ส) they will be implemented and be made available here.

3 ความคิดเห็น หากต้องการโพสต์ความคิดเห็นใหม่, โปรด เข้าสู่ระบบ หรือ ลงทะเบียน

I'm very thankful for your comments, I'll be adjusting the EA as soon as I have free time and translate to english version.

อีกด้วย, lot size module is not good, some reasons:
1) extreme lot sizes are not well calculated, no minimum margin level relevance;
2) lot size is intended to work only on ABCXYZ pairs, where ABC is account currency and XYZ is another currency;
3) เท่านั้น 1:100 leverage accounts;
4) no metals for trading while lot sizes calculated are very wrong;

I'm working hard on risk management modules, soon I'll send you a enhanced version of the robot.

Have a nice week,

31.03.2010 09:35 kimble9t

WHRoeder wrote:
   สำหรับ ( i=0; ฉัน<OrdersTotal(); ฉัน ++ )
      ถ้า ( OrderSelect(0, SELECT_BY_POS, MODE_TRADES) && OrderCloseTime() == 0 && Op == OrderType() )
         สั่งซื้อปิด(OrderTicket(),

With MODE_TRADES you only get open orders so OrderCloseTime will always be zero (unnecessary test)

When you close an order higher numbered orders are renumbered, so the above code will close every other open order, not all orders. Always count DOWN when closing and modifying lot sizes (partial close.)

MargemLivre/100000
tam_lote >= 0.01
Preco + Pips*Point

Hard coded numbers means the EA fails on a mini account (get values from MarketInfo)

Pips*Point fails on 5 digit brokers Pips*pips2dbl won't:

//++++ These are adjusted for 5 โบรกเกอร์หลัก.
double  pips2points,    // เลื่อนหลุด  3 pips    3=points    30=points
        pips2dbl;       // หยุดการสูญเสีย 15 เม็ด    0.0015      0.00150
int     Digits.pips;    // DoubleToStr(dbl/pips2dbl, Digits.pips)
int init() {
    ถ้า (Digits == 5 || Digits == 3) {   // Adjust for five (5) โบรกเกอร์หลัก.
                pips2dbl    = Point*10; pips2points = 10;   Digits.pips = 1;
    } else {    pips2dbl    = Point;    pips2points =  1;   Digits.pips = 0; }

 

Dear sir

No orders are executed in my platform, but only shows the pending orders, don't know the reason why .

In which place the above correction to be replaced in the EA ? thank you

10.03.2010 17:52 robert76

   สำหรับ ( i=0; ฉัน<OrdersTotal(); ฉัน ++ )
      ถ้า ( OrderSelect(0, SELECT_BY_POS, MODE_TRADES) && OrderCloseTime() == 0 && Op == OrderType() )
         สั่งซื้อปิด(OrderTicket(),

With MODE_TRADES you only get open orders so OrderCloseTime will always be zero (unnecessary test)

When you close an order higher numbered orders are renumbered, so the above code will close every other open order, not all orders. Always count DOWN when closing and modifying lot sizes (partial close.)

MargemLivre/100000
tam_lote >= 0.01
Preco + Pips*Point

Hard coded numbers means the EA fails on a mini account (get values from MarketInfo)

Pips*Point fails on 5 digit brokers Pips*pips2dbl won't:

//++++ These are adjusted for 5 โบรกเกอร์หลัก.
double  pips2points,    // เลื่อนหลุด  3 pips    3=points    30=points
        pips2dbl;       // หยุดการสูญเสีย 15 เม็ด    0.0015      0.00150
int     Digits.pips;    // DoubleToStr(dbl/pips2dbl, Digits.pips)
int init() {
    ถ้า (Digits == 5 || Digits == 3) {   // Adjust for five (5) โบรกเกอร์หลัก.
                pips2dbl    = Point*10; pips2points = 10;   Digits.pips = 1;
    } else {    pips2dbl    = Point;    pips2points =  1;   Digits.pips = 0; }

 

โพสต์นี้มีประโยชน์เพียงใด?

คลิกที่ดาวเพื่อให้คะแนน!

คะแนนเฉลี่ย 0 / 5. นับคะแนนเสียง: 0

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

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

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

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



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