Forex Community Place

Dapatkan hingga
$50000
karena mengundang teman
untuk memperoleh Bonus StartUp
dari InstaForex
Tidak perlu investasi!
Dapatkan bonus
55%
ke akun anda!
Page 2 of 2
FirstFirst 1 2
Results 11 to 19 of 19

Thread: [ASK] Coding EA berdasar indikator CCI dan RSI

  1. #11 Collapse Post
    Harian
    ----
     
    invest is an unknown quantity at this point invest's Avatar
    Join Date
    Nov 2011
    Location
    BLITAR
    Posts
    85
    Accrued Payments
    10 USD (What is this?)
    Thanks
    1
    Thanked 3 Times in 3 Posts
    SubscribeSubscribe
    Subscribed: 0
    Quote Originally Posted by aguseko     
    jangan lupa bos nanti kalau EA-nya sudah jadi di share di sini ya supaya teman-teman yang lain juga bisa dapat ijo-ijo nya juga...
    nunggu komandnnya turun dlu om..mash ada kendala nih..hhehe
    jika postingan saya sekiranya bermanfaat, tolong kasih cendol,namun jika kurang berkenan d'hati agan* semua..saya minta maav

  2. #12 Collapse Post
    Knuckle Gesit
    Mengintai
     
    agungm0 is a glorious beacon of light agungm0 is a glorious beacon of light agungm0 is a glorious beacon of light agungm0 is a glorious beacon of light agungm0 is a glorious beacon of light agungm0 is a glorious beacon of light agungm0's Avatar
    Join Date
    Feb 2012
    Location
    Pontianak
    Posts
    1,170
    Accrued Payments
    147 USD (What is this?)
    Thanks
    394
    Thanked 508 Times in 202 Posts
    SubscribeSubscribe
    Subscribed: 0
    Quote Originally Posted by invest     
    CCI period 14, Pricenya==>> typical...
    RSI period 14 jga om..
    PHP Code:
    double RSIiRSI((Symbol(), Period(), 14PRICE_TYPICAL0);
    double CCIiCCI(Symbol(), Period(), 14PRICE_TYPICAL,0); 
    PHP Code:
     if ((CCI==-100 ) && (RSI<30 ))
        
    OrderSend(Symbol(), OP_BUY,....................................... 
    \kira kira begitu codingnya untuk opsi buy , setahu saya , semoga ada yang bisa menambahkan. kalau memabntu jangan lupa thanks nya...
    KLIK THANKS YA.. BILA BERMANFAAT

  3. 2 Users Say Thank:

    darkingdom (04-12-2013), invest (02-25-2013)

  4. #13 Collapse Post
    Banned
    ----
     
    analisahariini is an unknown quantity at this point analisahariini's Avatar
    Join Date
    Feb 2013
    Location
    sidoarjo
    Posts
    82
    Accrued Payments
    12 USD (What is this?)
    Thanks
    1
    Thanked 5 Times in 4 Posts
    SubscribeSubscribe
    Subscribed: 0
    kelihatannya sistem yang di pakai ini simple sekali,tapi kalau memang netul-betul disiplin dalam penerapannya bagus juga kali ya hasilnya....

    Though trading on financial markets entails high risk, still it can generate extra income on condition that you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.


  5. #14 Collapse Post
    Harian
    ----
     
    invest is an unknown quantity at this point invest's Avatar
    Join Date
    Nov 2011
    Location
    BLITAR
    Posts
    85
    Accrued Payments
    10 USD (What is this?)
    Thanks
    1
    Thanked 3 Times in 3 Posts
    SubscribeSubscribe
    Subscribed: 0
    Quote Originally Posted by agungm0     
    PHP Code:
    double RSIiRSI((Symbol(), Period(), 14PRICE_TYPICAL0);
    double CCIiCCI(Symbol(), Period(), 14PRICE_TYPICAL,0); 
    PHP Code:
     if ((CCI==-100 ) && (RSI<30 ))
        
    OrderSend(Symbol(), OP_BUY,....................................... 
    \kira kira begitu codingnya untuk opsi buy , setahu saya , semoga ada yang bisa menambahkan. kalau memabntu jangan lupa thanks nya...
    thanks om ats bantuannya..saya coba inject'kan codingnya dlu..
    Quote Originally Posted by analisahariini     
    kelihatannya sistem yang di pakai ini simple sekali,tapi kalau memang netul-betul disiplin dalam penerapannya bagus juga kali ya hasilnya....
    hehehe..sederhana gini..ql qta tertib trhadap rule yang tlah d'buat..insyaAllah opit om..
    sistem trading simple atopun rumit..tujuannya tetep sama kok om..yaitu dapet opit..
    betuul nda'???????
    jika postingan saya sekiranya bermanfaat, tolong kasih cendol,namun jika kurang berkenan d'hati agan* semua..saya minta maav

  6. #15 Collapse Post
    Orang Asing
    Malu-malu
     
    aswadias is an unknown quantity at this point aswadias's Avatar
    Join Date
    Feb 2013
    Location
    Nangroe Aceh Darussalam
    Posts
    16
    Accrued Payments
    2 USD (What is this?)
    Thanks
    9
    Thanked 1 Time in 1 Post
    SubscribeSubscribe
    Subscribed: 0
    salam kenal....
    Gmn kelanjutan tentang EA Strategi trading ini TS? Master2 tolong dong buatin EA yg di mintak oleh TS tu....
    Kayknya bagus tu strateginya...

    Though trading on financial markets entails high risk, still it can generate extra income on condition that you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.


  7. #16 Collapse Post
    Knuckle Gesit
    Bla
     
    bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan's Avatar
    Join Date
    Jan 2012
    Location
    Negeri 1001 GoA
    Posts
    1,165
    Accrued Payments
    242 USD (What is this?)
    Thanks
    2,579
    Thanked 2,042 Times in 636 Posts
    SubscribeSubscribe
    Subscribed: 0
    kulunuwun...
    yonk cb share sdikit masta..
    tp script ini rada puanjaang pool, jadi yaa bisa dikatakan EA CCI-RSI postingan bersambung...
    Kalo semisal bab 1 dulu : pengaturan MM
    PHP Code:
    # property link www.indo.mt5.com
    # belajar bikin EA CCi-RSI ala newbie
    //+---------------------------------------------------+
    //|Money Management  CCI_RSI                                 |
    //+---------------------------------------------------+
    extern bool MoneyManagement true;   
                                         
    extern double TradeSizePercent 10
    extern double    Lots                1;    
    double MaxLots                100.0;

    //----CCI_RSI input parameters
    extern double    TakeProfit            0;
    extern double    StopLoss             60;
    extern int UseTrailingStop 0;
    extern  int        TrailingStopType     2
    extern double    TrailingStop        40;

    extern string Sep1 "======= General Inputs =======";
    extern  int SignalCandle 1
    extern int ExitOnCross 1

    // H1 CCI_RSI parameters
    extern int TrendTimeFrame 60;
    extern int RSI_TrendPeriod 20;
    extern int RSI_TrendBuyEntry 51;
    extern int RSI_TrendSellEntry 49;

    // CCI_RSI parameters
    extern int RSI_Entry_Period 14;
    extern int RSI_BuyEntry 50;
    extern int RSI_SellEntry 50;
    extern int CCI_Period 14;
    extern int CCI_BuyEntry 100;
    extern int CCI_SellEntry = -100;

    extern int UseAcc 1;
    extern int AccLevel 7;

    extern int UseRSI_Exit 1;
    extern int RSI_BuyExit 50;
    extern int RSI_SellExit 50;
    extern int UseCCI_Exit 1;
    extern int CCI_BuyExit 0;
    extern int CCI_SellExit 0;

    extern bool UseTimeLimit true;
    extern int StartHour =8;    
    extern int StopHour 15;     
    bool YesStop;

    double lotMM;
    int ticket;
     
    string  ExpertName="CCI_RSI";
     
    int     MagicCode 5;

    int      MagicNumber;  
    string   nameEA
    gmana matuk blum...?

    bersambung................
    Last edited by bhayan; 03-04-2013 at 01:01.
    :: semboyan Qu ::
    "Kesuksesan Trader tdk dinilai seberapa banyak mendapatkan Profit, tapi seberapa byk muncul Trader Baru yg Sukses dr Ilmu/Pengalaman yang disampaikan & ditularkannya.." (indahnya berbagi....)

    Yuk berbagi di treads Top 10 Broker, perjalananTranding Jurnal, bongkar2 strategi :indi ADX (MT4/MT5), juga: indi ADX Trends 2013, Sumbangsih rekan2 & Master ditunggu loh?

  8. User Say Thank:

    aswadias (03-04-2013)

  9. #17 Collapse Post
    Knuckle Gesit
    Bla
     
    bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan has a reputation beyond repute bhayan's Avatar
    Join Date
    Jan 2012
    Location
    Negeri 1001 GoA
    Posts
    1,165
    Accrued Payments
    242 USD (What is this?)
    Thanks
    2,579
    Thanked 2,042 Times in 636 Posts
    SubscribeSubscribe
    Subscribed: 0
    Quote Originally Posted by bhayan     
    yonk cb share sdikit masta..
    tp script ini rada puanjaang pool, jadi yaa bisa dikatakan EA CCI-RSI postingan bersambung...
    Kalo semisal bab 1 dulu : pengaturan MM
    dr link post : https://indo.mt5.com/showthread.php?...=1#post2272634

    Sekarang...
    bab 2 :
    expert initialization function/expert deinitialization function/
    PHP Code:
    //=============================================================================
    // expert initialization function
    //=============================================================================
    int init()
    {
        
    MagicNumber MagicCode*1000 func_Symbol2Val(Symbol())*100 func_TimeFrame_Const2Val(Period());
        
    nameEA ExpertName Symbol() + "_" func_TimeFrame_Val2String(func_TimeFrame_Const2Val(Period()));

        return(
    0);
    }


    //=============================================================================
    // expert deinitialization function
    //=============================================================================
    int deinit()
    {
        return(
    0);

    Check Entry Signals
    PHP Code:
    //=============================================================================
    //
    //                                CheckEntrySignals()
    //                                      entry BUY dan entry SELL
    //=============================================================================
    int CheckEntrySignals()
    {
       
    double myRSI240myRSImyCCImyAcc;
       
    double myRSIprevmyCCIprev;
        

       
    myRSI240 iRSI(Symbol(),TrendTimeFrame,RSI_TrendPeriod,PRICE_CLOSE,SignalCandle);

         if (
    myRSI240 RSI_TrendBuyEntry// Check for direction to place trade
         
    {
    mediately return 0
    //====================================indo.mt5.com
    // entry BUY -----------------> bro....
    // Check CCI

          
    myCCI iCCI(Symbol(),0,CCI_Period,PRICE_CLOSE,SignalCandle);
          
    myCCIprev iCCI(Symbol(),0,CCI_Period,PRICE_CLOSE,SignalCandle+1);
          if (
    myCCI CCI_BuyEntry) return(0);

    // Check ik CCI  salah

          
    if (myCCIprev myCCI) return(0);

    // CCI OK so check RSI

           
    myRSI iRSI(Symbol(),0,RSI_Entry_Period,PRICE_CLOSE,SignalCandle);
           
    myRSIprev iRSI(Symbol(),0,RSI_Entry_Period,PRICE_CLOSE,SignalCandle+1);
           if ( 
    myRSI RSI_BuyEntry ) return(0);
           
    // Check ik RSI  salah

          
    if (myRSIprev myRSI) return(0);

    // RSI OK so Check Accelerator

           
    if (UseAcc == 1)
           {
               
    myAcc iAC(NULL0SignalCandle);
               if (
    myAcc AccLevel*Point) return(0);
           }
           return(
    1);
         }
         

         if (
    myRSI240 RSI_TrendSellEntry)
         {
    //====================================indo.mt5.com
    // entry SELL -----------------> bro....
    // Check CCI

          
    myCCI iCCI(Symbol(),0,CCI_Period,PRICE_CLOSE,SignalCandle);
          if (
    myCCI CCI_SellEntry) return(0);
           
    // Check if CCI is falling

          
    if (myCCIprev myCCI) return(0);
          
    // CCI OK so check RSI

           
    if ( myRSI RSI_SellEntry ) return(0);

    // Check if RSI is falling

          
    if (myRSIprev myRSI) return(0);
          
    // RSI OK so Check Accelerator

           
    if (UseAcc == 1)
           {
               if (
    myAcc > -AccLevel*Point) return(0);
           }

           return(
    2);
         }

        return (
    0); // has not changed


    Last edited by bhayan; 03-04-2013 at 19:54.
    :: semboyan Qu ::
    "Kesuksesan Trader tdk dinilai seberapa banyak mendapatkan Profit, tapi seberapa byk muncul Trader Baru yg Sukses dr Ilmu/Pengalaman yang disampaikan & ditularkannya.." (indahnya berbagi....)

    Yuk berbagi di treads Top 10 Broker, perjalananTranding Jurnal, bongkar2 strategi :indi ADX (MT4/MT5), juga: indi ADX Trends 2013, Sumbangsih rekan2 & Master ditunggu loh?

  10. User Say Thank:

    aswadias (03-05-2013)

  11. #18 Collapse Post
    Banned
    ----
     
    ainiyah is an unknown quantity at this point ainiyah's Avatar
    Join Date
    Mar 2013
    Posts
    23
    Accrued Payments
    4 USD (What is this?)
    Thanks
    0
    Thanked 1 Time in 1 Post
    SubscribeSubscribe
    Subscribed: 0
    Quote Originally Posted by invest     
    maav om momod, numpang buka lapak lagi, ini saya ada kendalabagaimana meng'ekspresikan logika berikut k'dalam coding MQL..
    Buy jika CCI menembus level -100 dan RSI hampir menembus level 20...
    Sell jika CCI menembus level 100 dan RSI hampir menembus level 80..
    mohon bantuannya para master..thanks sebelumnya
    Spoiler Spoiler:
    sudah berapa lama gan pakai strategi CCI ,bila buy pada cci di level 100 apa gak kurang jauh gan karena saya pernah lihat sih cci bisa sampai menembus level 200 lebih,,,
    thank's

    Though trading on financial markets entails high risk, still it can generate extra income on condition that you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.


  12. <a href="https://www.mt5.com/id/forex_humor">Forex Portal MT5</a>
  13. #19 Collapse Post
    Newbie
    ----
     
    Erd is on a distinguished road Erd's Avatar
    Join Date
    Feb 2015
    Posts
    22
    Accrued Payments
    5 USD (What is this?)
    Thanks
    3
    Thanked 10 Times in 7 Posts
    SubscribeSubscribe
    Subscribed: 0
    Quote Originally Posted by invest     
    maav om momod, numpang buka lapak lagi, ini saya ada kendalabagaimana meng'ekspresikan logika berikut k'dalam coding MQL..
    Buy jika CCI menembus level -100 dan RSI hampir menembus level 20...
    Sell jika CCI menembus level 100 dan RSI hampir menembus level 80..
    mohon bantuannya para master..thanks sebelumnya
    Spoiler Spoiler:
    extern string ________Trade________= "Setting Trade";
    extern double TakeProfit = 30;
    extern double Stoploss = 0;
    extern int Slippage = 3;
    extern double Lot = 0.1;
    extern int Magic = 10;

    double slb,tpb,sls,tps,pt;
    int Res=0;
    string EA1 = "Sell...Bro...";
    string EA2 = "Buy...Bro...";
    int Magic1=0; int Magic2=1;
    //+------------------------------------------------------------------+
    //| Expert initialization function |
    //+------------------------------------------------------------------+
    int init()
    {
    //---
    if(Digits==3 || Digits==5)pt=10*Point;else pt=Point;return(0);
    if(!IsExpertEnabled()) Alert("EA NOT AKTIF, KLIK TOMBOL AUTO TRADING");
    if(!IsTradeAllowed()) Alert("EA NOT AKTIF, CENTANG PADA ALLOW LIVE TRADING");
    //---
    return(0);
    }
    //+------------------------------------------------------------------+
    //| Expert deinitialization function |
    //+------------------------------------------------------------------+
    int deinit()
    {
    //---
    return (0);
    }
    //+------------------------------------------------------------------+
    //| Expert tick function |
    //+------------------------------------------------------------------+
    int start()
    {
    //---

    double CCI = iCCI(NULL,0,14,PRICE_TYPICAL,0);
    double RSI = iRSI(NULL,0,14,0,0);



    if(Stoploss==0){slb=0;sls=0;}else if(Stoploss>0){slb=Ask-Stoploss*pt;sls=Bid+Stoploss*pt;}
    if(TakeProfit==0){tpb=0;tps=0;}else if(TakeProfit>0){tpb=Ask+TakeProfit*pt;tps=Bid-TakeProfit*pt;}

    if(OrdersTotal()==0)
    {
    if((CCI>80) && (RSI>80))
    {
    Res=(OrderSend(Symbol(),OP_SELL,Lot,Bid,Slippage,s ls,tps,EA1,Magic1+Magic,0,Red));
    }

    if((CCI<20) && (RSI<20))
    {
    Res=(OrderSend(Symbol(),OP_BUY,Lot,Ask,Slippage,sl b,tpb,EA2,Magic2+Magic,0,Blue));
    }

    }
    return (0);
    }


    Di coba dulu ini Bro...sdh sesuai apa blm ,maaf saya ketik langsung blm tak coba di metaeditor...ada errornya apa g'

    Though trading on financial markets entails high risk, still it can generate extra income on condition that you apply the right approach. By choosing a reliable broker such as InstaForex you get access to the international financial markets and open your way towards financial independence. You can sign up here.


Page 2 of 2
FirstFirst 1 2
Please read recommendations on how to write popular and useful posts in the Contest of the Best Answers Please read recommendations on how to write popular and useful posts in the Best Content Contest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts