รหัสแหล่งที่มา

0
(0)
ชื่อ:
รหัสแหล่งที่มา
ผู้เขียน: ฉัน (2011.05.10 10:06)
ดาวน์โหลดแล้ว: 4048
ดาวน์โหลด:
Source Code 1
SourceCode.mq4 (3.0 Kb) ดู

คำอธิบาย:

นี่เป็น EA ตัวแรกที่ฉันนำเสนอให้ทุกคนได้เห็นและใช้งาน. สิ่งนี้เขียนโดยฉัน. ควรใช้ EA นี้กับ EURUSD 15 นาที ด้วยเงินทุนเริ่มต้นที่ $1000. หากคุณใช้งาน EA นี้ตั้งแต่วันที่ 14 มกราคม 2011 till today, you might find profit with good profit%.

คำแนะนำ:

  • EURUSD only
  • 15 แผนภูมินาที
  • Firstly run this as long, then as short, then as long+ short from 12th Jan till today to see in which direction the wind is blowing. Then please test according to that wind direction.
5 ความคิดเห็น หากต้องการโพสต์ความคิดเห็นใหม่, โปรด เข้าสู่ระบบ หรือ ลงทะเบียน

tg2007:
This is source code modified. Please run this as long from 01/16 till today or whenever you download it and be amazed. Yes the risk /reward is not great. อย่างไรก็ตาม, look at the percent won and the graphs. However also note that the total trade # อยู่ในระดับต่ำ. Hence dont expect a trade right away. Maybe a few trades (น้อยกว่า 5) a month can be expected.
int init()
{
  return(0);
}

int deinit()
{  
  return(0);
}

int start()
{     
      int total = OrdersTotal();                  
      ถ้า (OrdersTotal() < 1)   // I wont open more than 1 trade per time.
         ถ้า(ชั่วโมง() > 8 && ชั่วโมง() < 17)  //Will trade during volatile times when people are usually awake
            if( iMACD(โมฆะ,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(โมฆะ,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )
            ถ้า ( ( (iMA(โมฆะ,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(โมฆะ,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(โมฆะ, 15, 0.02, 0.2, 0) > สูง[0]) &&
               ( iBearsPower(โมฆะ,15,13,PRICE_CLOSE,0) <   0  &&  iBearsPower(โมฆะ,15,13,PRICE_CLOSE,0) >    iBearsPower(โมฆะ,15,13,PRICE_CLOSE,1)))          
               OrderSend(เครื่องหมาย(),OP_SELL,0.1,เสนอราคา,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,สีแดง); // Risk/Reward sucks here..

      ถ้า (OrdersTotal() < 1)   // I wont open more than 1 trade per time.
         ถ้า(ชั่วโมง() > 8 && ชั่วโมง() < 17)  //Will trade during volatile times when people are usually awake
         //If the prices are within Boil Band and EMA 3,34 crossover in favor and BullsPower in favor, then trade in buy
            if( iMACD(โมฆะ,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(โมฆะ,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )       
            ถ้า( (สูง[1] < iBands(โมฆะ,0,20,2,0,PRICE_LOW,MODE_UPPER,1))  &&  (สูง[2] < iBands(โมฆะ,0,20,2,0,PRICE_LOW,MODE_UPPER,2)))
              ถ้า ( (iMA(โมฆะ,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(โมฆะ,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(โมฆะ, 15, 0.02, 0.2, 0) < ต่ำ[0])&&( iBullsPower(โมฆะ,15,13,PRICE_CLOSE,0) >   0)  &&  (iBullsPower(โมฆะ,15,13,PRICE_CLOSE,0) <    iBullsPower(โมฆะ,15,13,PRICE_CLOSE,1)))  
               OrderSend(เครื่องหมาย(),OP_BUY,0.1,Ask,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,สีเขียว);// Risk/Reward sucks here..

}

Start testing with 1000USD EURUSD M15

21.05.2011 10:49 tg2007

This is source code modified. Please run this as long from 01/16 till today or whenever you download it and be amazed. Yes the risk /reward is not great. อย่างไรก็ตาม, look at the percent won and the graphs. However also note that the total trade # อยู่ในระดับต่ำ. Hence dont expect a trade right away. Maybe a few trades (น้อยกว่า 5) a month can be expected.
int init()
{
  return(0);
}

int deinit()
{  
  return(0);
}

int start()
{     
      int total = OrdersTotal();                  
      ถ้า (OrdersTotal() < 1)   // I wont open more than 1 trade per time.
         ถ้า(ชั่วโมง() > 8 && ชั่วโมง() < 17)  //Will trade during volatile times when people are usually awake
            if( iMACD(โมฆะ,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(โมฆะ,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )
            ถ้า ( ( (iMA(โมฆะ,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(โมฆะ,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(โมฆะ, 15, 0.02, 0.2, 0) > สูง[0]) &&
               ( iBearsPower(โมฆะ,15,13,PRICE_CLOSE,0) <   0  &&  iBearsPower(โมฆะ,15,13,PRICE_CLOSE,0) >    iBearsPower(โมฆะ,15,13,PRICE_CLOSE,1)))          
               OrderSend(เครื่องหมาย(),OP_SELL,0.1,เสนอราคา,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,สีแดง); // Risk/Reward sucks here..

      ถ้า (OrdersTotal() < 1)   // I wont open more than 1 trade per time.
         ถ้า(ชั่วโมง() > 8 && ชั่วโมง() < 17)  //Will trade during volatile times when people are usually awake
         //If the prices are within Boil Band and EMA 3,34 crossover in favor and BullsPower in favor, then trade in buy
            if( iMACD(โมฆะ,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(โมฆะ,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) )       
            ถ้า( (สูง[1] < iBands(โมฆะ,0,20,2,0,PRICE_LOW,MODE_UPPER,1))  &&  (สูง[2] < iBands(โมฆะ,0,20,2,0,PRICE_LOW,MODE_UPPER,2)))
              ถ้า ( (iMA(โมฆะ,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(โมฆะ,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(โมฆะ, 15, 0.02, 0.2, 0) < ต่ำ[0])&&( iBullsPower(โมฆะ,15,13,PRICE_CLOSE,0) >   0)  &&  (iBullsPower(โมฆะ,15,13,PRICE_CLOSE,0) <    iBullsPower(โมฆะ,15,13,PRICE_CLOSE,1)))  
               OrderSend(เครื่องหมาย(),OP_BUY,0.1,Ask,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,สีเขียว);// Risk/Reward sucks here..

}
21.05.2011 10:44 tg2007

Can anyone help me with this? Why is this not trading live?
17.05.2011 14:35 tg2007

I am not entirely sure either. WHen I run this on backtest, it does trade nicely. However on real test no trade
17.05.2011 14:28 tg2007

EA compiles OK, but I get no trades at all. Even if I lengthen the time. Thanks anyway, I needed a simple EA to get me writing my own. I think I have problems with my proxy server and the strategy tester :(.

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

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

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

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

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

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

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



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