Forex Community Place

Dapatkan hingga
$50000
karena mengundang teman
untuk memperoleh Bonus StartUp
dari InstaForex
Tidak perlu investasi!
Mulai trading tanpa
risiko dan investasi
Dengan Bonus Permulaan 1000$
Dapatkan bonus
55%
ke akun anda!
Results 1 to 6 of 6

Thread: [butuh bantuan] untuk para master yang jago edit mt4

  1. #1
    Orang Asing
    ----
     
    sinzdnozzo is an unknown quantity at this point sinzdnozzo's Avatar
    Join Date
    Nov 2017
    Posts
    8
    Accumulated bonus
    5 USD (What is this?)
    Thanks
    37
    Thanked 5 Times in 5 Posts

    [butuh bantuan] untuk para master yang jago edit mt4

    Tolong bantu edit price field stochastic nya menjadi low/high dan MA Methodenya exponential

    Berikut ini script nya

    Spoiler Spoiler:
    int start()
    {
    double MyPoint=Point;
    if(Digits==3 || Digits==5) MyPoint=Point*10;

    double TheStopLoss=0;
    double TheTakeProfit=0;
    if( TotalOrdersCount()==0 )
    {
    int result=0;
    if((iStochastic(NULL,0,5,3,3,MODE_EMA,1,PRICE_LOW/PRICE_HIGH,0)<10)) // Here is your open buy rule
    {
    result=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage ,0,0,"EA Generator www.ForexEAdvisor.com",MagicNumber,0,Blue);
    if(result>0)
    {
    TheStopLoss=0;
    TheTakeProfit=0;
    if(TakeProfit>0) TheTakeProfit=Ask+TakeProfit*MyPoint;
    if(StopLoss>0) TheStopLoss=Ask-StopLoss*MyPoint;
    OrderSelect(result,SELECT_BY_TICKET);
    OrderModify(OrderTicket(),OrderOpenPrice(),Normali zeDouble(TheStopLoss,Digits),NormalizeDouble(TheTa keProfit,Digits),0,Green);
    }
    return(0);
    }
    if((iStochastic(NULL,0,5,3,3,MODE_EMA,1,PRICE_LOW/PRICE_HIGH,0)<90)) // Here is your open Sell rule
    {
    result=OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippag e,0,0,"EA Generator www.ForexEAdvisor.com",MagicNumber,0,Red);
    if(result>0)
    {
    TheStopLoss=0;
    TheTakeProfit=0;
    if(TakeProfit>0) TheTakeProfit=Bid-TakeProfit*MyPoint;
    if(StopLoss>0) TheStopLoss=Bid+StopLoss*MyPoint;
    OrderSelect(result,SELECT_BY_TICKET);
    OrderModify(OrderTicket(),OrderOpenPrice(),Normali zeDouble(TheStopLoss,Digits),NormalizeDouble(TheTa keProfit,Digits),0,Green);
    }
    return(0);
    }
    }

    for(int cnt=0;cnt<OrdersTotal();cnt++)
    {
    OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
    if(OrderType()<=OP_SELL &&
    OrderSymbol()==Symbol() &&
    OrderMagicNumber()==MagicNumber
    )
    {
    if(OrderType()==OP_BUY)
    {
    if(TrailingStop>0)
    {
    if(Bid-OrderOpenPrice()>MyPoint*TrailingStop)
    {
    if(OrderStopLoss()<Bid-MyPoint*TrailingStop)
    {
    OrderModify(OrderTicket(),OrderOpenPrice(),Bid-TrailingStop*MyPoint,OrderTakeProfit(),0,Green);
    return(0);
    }
    }
    }
    }
    else
    {
    if(TrailingStop>0)
    {
    if((OrderOpenPrice()-Ask)>(MyPoint*TrailingStop))
    {
    if((OrderStopLoss()>(Ask+MyPoint*TrailingStop)) || (OrderStopLoss()==0))
    {
    OrderModify(OrderTicket(),OrderOpenPrice(),Ask+MyP oint*TrailingStop,OrderTakeProfit(),0,Red);
    return(0);
    }
    }
    }
    }
    }
    }
    return(0);
    }

    int TotalOrdersCount()
    {
    int result=0;
    for(int i=0;i<OrdersTotal();i++)
    {
    OrderSelect(i,SELECT_BY_POS ,MODE_TRADES);
    if (OrderMagicNumber()==MagicNumber) result++;

    }
    return (result);
    }



    maklumi saya baru belajar membuat ea

  2. The Following User Says Thank You to sinzdnozzo For This Useful Post:

    raden123 (02-04-2018)

  3. <a href="">Forex Portal MT5</a>
  4. #2
    Poster Setia
    Tiba-tiba
     
    Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi's Avatar
    Join Date
    Dec 2016
    Location
    Ganti Gas LPG
    Posts
    2,678
    Accumulated bonus
    1853 USD (What is this?)
    Saya bertemu tamu
    1 (detail lebih lanjut)
    Thanks
    1,604
    Thanked 6,687 Times in 2,655 Posts
    Quote Originally Posted by sinzdnozzo     
    Tolong bantu edit price field stochastic nya menjadi low/high dan MA Methodenya exponential

    Berikut ini script nya

    Spoiler Spoiler:
    int start()
    {
    double MyPoint=Point;
    if(Digits==3 || Digits==5) MyPoint=Point*10;

    double TheStopLoss=0;
    double TheTakeProfit=0;
    if( TotalOrdersCount()==0 )
    {
    int result=0;
    if((iStochastic(NULL,0,5,3,3,MODE_EMA,1,PRICE_LOW/PRICE_HIGH,0)<10)) // Here is your open buy rule
    {
    result=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage ,0,0,"EA Generator www.ForexEAdvisor.com",MagicNumber,0,Blue);
    if(result>0)
    {
    TheStopLoss=0;
    TheTakeProfit=0;
    if(TakeProfit>0) TheTakeProfit=Ask+TakeProfit*MyPoint;
    if(StopLoss>0) TheStopLoss=Ask-StopLoss*MyPoint;
    OrderSelect(result,SELECT_BY_TICKET);
    OrderModify(OrderTicket(),OrderOpenPrice(),Normali zeDouble(TheStopLoss,Digits),NormalizeDouble(TheTa keProfit,Digits),0,Green);
    }
    return(0);
    }
    if((iStochastic(NULL,0,5,3,3,MODE_EMA,1,PRICE_LOW/PRICE_HIGH,0)<90)) // Here is your open Sell rule
    {
    result=OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippag e,0,0,"EA Generator www.ForexEAdvisor.com",MagicNumber,0,Red);
    if(result>0)
    {
    TheStopLoss=0;
    TheTakeProfit=0;
    if(TakeProfit>0) TheTakeProfit=Bid-TakeProfit*MyPoint;
    if(StopLoss>0) TheStopLoss=Bid+StopLoss*MyPoint;
    OrderSelect(result,SELECT_BY_TICKET);
    OrderModify(OrderTicket(),OrderOpenPrice(),Normali zeDouble(TheStopLoss,Digits),NormalizeDouble(TheTa keProfit,Digits),0,Green);
    }
    return(0);
    }
    }

    for(int cnt=0;cnt<OrdersTotal();cnt++)
    {
    OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
    if(OrderType()<=OP_SELL &&
    OrderSymbol()==Symbol() &&
    OrderMagicNumber()==MagicNumber
    )
    {
    if(OrderType()==OP_BUY)
    {
    if(TrailingStop>0)
    {
    if(Bid-OrderOpenPrice()>MyPoint*TrailingStop)
    {
    if(OrderStopLoss()<Bid-MyPoint*TrailingStop)
    {
    OrderModify(OrderTicket(),OrderOpenPrice(),Bid-TrailingStop*MyPoint,OrderTakeProfit(),0,Green);
    return(0);
    }
    }
    }
    }
    else
    {
    if(TrailingStop>0)
    {
    if((OrderOpenPrice()-Ask)>(MyPoint*TrailingStop))
    {
    if((OrderStopLoss()>(Ask+MyPoint*TrailingStop)) || (OrderStopLoss()==0))
    {
    OrderModify(OrderTicket(),OrderOpenPrice(),Ask+MyP oint*TrailingStop,OrderTakeProfit(),0,Red);
    return(0);
    }
    }
    }
    }
    }
    }
    return(0);
    }

    int TotalOrdersCount()
    {
    int result=0;
    for(int i=0;i<OrdersTotal();i++)
    {
    OrderSelect(i,SELECT_BY_POS ,MODE_TRADES);
    if (OrderMagicNumber()==MagicNumber) result++;

    }
    return (result);
    }



    maklumi saya baru belajar membuat ea
    Itu stochnya sudah Exponential, maksud gimana sih om? Apa diganti sama MA atau digabung??
    Coba minum air putih dulu om biar jangan buru2 hehe, detailin.

  5. The Following User Says Thank You to Anti Gengsi For This Useful Post:

    raden123 (02-04-2018)

  6. #3
    Orang Asing
    ----
     
    sinzdnozzo is an unknown quantity at this point sinzdnozzo's Avatar
    Join Date
    Nov 2017
    Posts
    8
    Accumulated bonus
    5 USD (What is this?)
    Thanks
    37
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by Anti Gengsi     
    Itu stochnya sudah Exponential, maksud gimana sih om? Apa diganti sama MA atau digabung??
    Coba minum air putih dulu om biar jangan buru2 hehe, detailin.
    eh iya ya bang hehehehe

    maksud saya untuk ubah open posisi buy ketika garis stochastic dibawah level 10
    dan open posisi sell ketika garis stochastic diatas level 90
    dan tidak akan open posisi yang sama untuk kedua kalinya ( buy - sell ) (sell - buy) tidak berlaku (sell - sell) (buy - buy)

    dan itu untuk tp nya kan saya ngetik 50 pip tapi di pas aktif malah 500 kira kira itu dimana ya salahnya

    Last edited by sinzdnozzo; 12-04-2017 at 05:22.

  7. #4
    Orang Asing
    ----
     
    Erd is an unknown quantity at this point Erd's Avatar
    Join Date
    Feb 2015
    Posts
    18
    Accumulated bonus
    5 USD (What is this?)
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by sinzdnozzo     
    eh iya ya bang hehehehe

    maksud saya untuk ubah open posisi buy ketika garis stochastic dibawah level 10
    dan open posisi sell ketika garis stochastic diatas level 90
    dan tidak akan open posisi yang sama untuk kedua kalinya ( buy - sell ) (sell - buy) tidak berlaku (sell - sell) (buy - buy)

    dan itu untuk tp nya kan saya ngetik 50 pip tapi di pas aktif malah 500 kira kira itu dimana ya salahnya

    mungkin kupas satu persatu dulu biar gak poesing....
    untuk rubah open posisi buy ketika garis stochastic dibawah level 10 ,bisa dengan penggantian angka 10 dengan semisal penamaan Low_Level ,selanjutnya tambahkan
    extern int Low_Level = 10; // ini bisa diubah2 parameternya diluar saat kita mau test EA
    dan open posisi sell ketika garis stochastic diatas level 90 , bisa dengan penggantian angka 90 dengan semisal penamaan High_Level ,selanjutnya tambahkan
    extern int High_Level = 90; // ini bisa diubah2 parameternya diluar saat kita mau test EA
    mungkin ini dulu ,kira2 sdh bisa dipahami nanti lanjut ke step berikunya...

  8. #5
    Orang Lama
    Semilir
     
    amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo's Avatar
    Join Date
    Sep 2010
    Location
    Sekitaran Bumi
    Posts
    1,035
    Accumulated bonus
    136 USD (What is this?)
    Thanks
    96
    Thanked 587 Times in 305 Posts
    Quote Originally Posted by sinzdnozzo     
    dan itu untuk tp nya kan saya ngetik 50 pip tapi di pas aktif malah 500 kira kira itu dimana ya salahnya
    karena agan pake broker 5 digit. (jml digit = angka setelah koma pada price)
    asumsikan harga 5 digit tsb adalah 4 digit.
    jadi seharusnya kalo di 5 digit agan mau 50 pips, maka TP EA diisi 5 pips.
    Yahuuu

  9. The Following User Says Thank You to amtwoxtwo For This Useful Post:

    mdaud2 (01-10-2019)

  10. #6
    Newbie
    Bahagia
     
    cybersukabumi is on a distinguished road cybersukabumi's Avatar
    Join Date
    Mar 2015
    Location
    Sukabumi
    Posts
    23
    Accumulated bonus
    4 USD (What is this?)
    Thanks
    1
    Thanked 13 Times in 3 Posts
    Quote Originally Posted by sinzdnozzo     
    eh iya ya bang hehehehe

    maksud saya untuk ubah open posisi buy ketika garis stochastic dibawah level 10
    dan open posisi sell ketika garis stochastic diatas level 90
    dan tidak akan open posisi yang sama untuk kedua kalinya ( buy - sell ) (sell - buy) tidak berlaku (sell - sell) (buy - buy)

    dan itu untuk tp nya kan saya ngetik 50 pip tapi di pas aktif malah 500 kira kira itu dimana ya salahnya


    Supaya ga OP 2x dalam waktu bersamaan Agan bikin variabel aja dulu Gan, saya kasih contoh nama variabelnya "waktu" (jenis integer atau int) jadi nantinya kaya gini :
    if(waktu!=Bars){
    tiket=OrderSend(Symbol(),OP_SELL,LOT,Bid,slippage, sl,tp,Comment_,Magic,0,HotPink);
    if(tiket>0){waktu=Bars;}
    Jadi dalam waktu atau dicandle tersebut itu tidak akan OP 2x

Posting Permissions

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