1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

Suggestion I will make a Free EA with your Indicator

Discussion in 'Expert Advisor atau Robot Forex' started by winidecorw, 12 Jan 2018.

  1. sho774774

    sho774774 New Member

    Equity
    Credit
    Ref Point
    Dear Tanaka ,I am now making EA by using the custom indicator code below,can you tell me the value of buffer 1 and buffer 2 to decide buy and sell, thanks a lot!

    property copyright ""
    #property link ""

    #property indicator_chart_window
    #property indicator_buffers 2
    #property indicator_color1 Lime
    #property indicator_width1 2
    #property indicator_label1 "Buy"
    #property indicator_color2 Red
    #property indicator_width2 2
    #property indicator_label2 "Sell"

    double G_ibuf_76[];
    double G_ibuf_80[];
    extern int FasterMovingAverage = 5;
    extern int SlowerMovingAverage = 12;
    extern int RSIPeriod = 12;
    extern int MagicFilterPeriod = 1;
    extern int BollingerbandsPeriod = 10;
    extern int BollingerbandsShift = 0;
    extern double BollingerbandsDeviation = 0.5;
    extern int BullsPowerPeriod = 50;
    extern int BearsPowerPeriod = 50;
    extern bool Alerts = TRUE;
    extern int Utstup = 10;
    int Gi_unused_128 = 0;
    bool Gi_132 = FALSE;
    bool Gi_136 = FALSE;
    bool Gi_140 = FALSE;
    bool Gi_144 = FALSE;
    bool Gi_148 = FALSE;
    bool Gi_152 = FALSE;
    bool Gi_156 = FALSE;
    bool Gi_160 = FALSE;
    bool Gi_164 = FALSE;
    bool Gi_168 = FALSE;
    int Gi_172 = 0;
    bool Gi_176 = FALSE;
    bool Gi_180 = FALSE;

    // E37F0136AA3FFAF149B351F6A4C948E9
    int init() {
    SetIndexStyle(0, DRAW_ARROW, EMPTY);
    SetIndexArrow(0, 233);
    SetIndexBuffer(0, G_ibuf_76);
    SetIndexStyle(1, DRAW_ARROW, EMPTY);
    SetIndexArrow(1, 234);
    SetIndexBuffer(1, G_ibuf_80);
    return (0);
    }

    // 52D46093050F38C27267BCE42543EF60
    int deinit() {
    return (0);
    }

    // EA2B2676C28C0DB26D39331A336C6B92
    int start() {
    int Li_8;
    double ima_12;
    double ima_20;
    double ima_28;
    double ima_36;
    double irsi_44;
    double irsi_52;
    double ibullspower_60;
    double ibullspower_68;
    double ibearspower_76;
    double ibearspower_84;
    double Ld_92;
    double Ld_100;
    double Ld_108;
    double Ld_116;
    double Ld_124;
    double Ld_132;
    double Ld_140;
    double ibands_152;
    double ibands_160;
    double ibands_168;
    double ibands_176;
    int Li_148 = IndicatorCounted();
    if (Li_148 < 0) return (-1);
    if (Li_148 > 0) Li_148--;
    int Li_0 = Bars - Li_148;
    for (int Li_4 = 0; Li_4 <= Li_0; Li_4++) {
    Li_8 = Li_4;
    Ld_132 = 0;
    Ld_140 = 0;
    for (Li_8 = Li_4; Li_8 <= Li_4 + 10; Li_8++) Ld_140 += MathAbs(High[Li_8] - Low[Li_8]);
    Ld_132 = Ld_140 / 10.0;
    ima_12 = iMA(NULL, 0, FasterMovingAverage, 0, MODE_EMA, PRICE_CLOSE, Li_4);
    ima_28 = iMA(NULL, 0, FasterMovingAverage, 0, MODE_EMA, PRICE_CLOSE, Li_4 + 1);
    ima_20 = iMA(NULL, 0, SlowerMovingAverage, 0, MODE_EMA, PRICE_CLOSE, Li_4);
    ima_36 = iMA(NULL, 0, SlowerMovingAverage, 0, MODE_EMA, PRICE_CLOSE, Li_4 + 1);
    irsi_44 = iRSI(NULL, 0, RSIPeriod, PRICE_CLOSE, Li_4);
    irsi_52 = iRSI(NULL, 0, RSIPeriod, PRICE_CLOSE, Li_4 + 1);
    ibullspower_60 = iBullsPower(NULL, 0, BullsPowerPeriod, PRICE_CLOSE, Li_4);
    ibullspower_68 = iBullsPower(NULL, 0, BullsPowerPeriod, PRICE_CLOSE, Li_4 + 1);
    ibearspower_76 = iBearsPower(NULL, 0, BearsPowerPeriod, PRICE_CLOSE, Li_4);
    ibearspower_84 = iBearsPower(NULL, 0, BearsPowerPeriod, PRICE_CLOSE, Li_4 + 1);
    ibands_152 = iBands(NULL, 0, BollingerbandsPeriod, BollingerbandsDeviation, BollingerbandsShift, PRICE_CLOSE, MODE_UPPER, Li_4);
    ibands_160 = iBands(NULL, 0, BollingerbandsPeriod, BollingerbandsDeviation, BollingerbandsShift, PRICE_CLOSE, MODE_LOWER, Li_4);
    ibands_168 = iBands(NULL, 0, BollingerbandsPeriod, BollingerbandsDeviation, BollingerbandsShift, PRICE_CLOSE, MODE_UPPER, Li_4 + 1);
    ibands_176 = iBands(NULL, 0, BollingerbandsPeriod, BollingerbandsDeviation, BollingerbandsShift, PRICE_CLOSE, MODE_LOWER, Li_4 + 1);
    Ld_92 = iHighest(NULL, 0, MODE_HIGH, MagicFilterPeriod, Li_4);
    Ld_100 = iHighest(NULL, 0, MODE_LOW, MagicFilterPeriod, Li_4);
    Ld_108 = 100 - 100.0 * ((Ld_92 - 0.0) / 10.0);
    Ld_116 = 100 - 100.0 * ((Ld_100 - 0.0) / 10.0);
    if (Ld_108 == 0.0) Ld_108 = 0.0000001;
    if (Ld_116 == 0.0) Ld_116 = 0.0000001;
    Ld_124 = Ld_108 - Ld_116;
    if (Ld_124 >= 0.0) {
    Gi_148 = TRUE;
    Gi_168 = FALSE;
    } else {
    if (Ld_124 < 0.0) {
    Gi_148 = FALSE;
    Gi_168 = TRUE;
    }
    }
    if (Close[Li_4] > ibands_152 && Close[Li_4 + 1] >= ibands_168) {
    Gi_144 = FALSE;
    Gi_164 = TRUE;
    }
    if (Close[Li_4] < ibands_160 && Close[Li_4 + 1] <= ibands_176) {
    Gi_144 = TRUE;
    Gi_164 = FALSE;
    }
    if (ibullspower_60 > 0.0 && ibullspower_68 > ibullspower_60) {
    Gi_140 = FALSE;
    Gi_160 = TRUE;
    }
    if (ibearspower_76 < 0.0 && ibearspower_84 < ibearspower_76) {
    Gi_140 = TRUE;
    Gi_160 = FALSE;
    }
    if (irsi_44 > 50.0 && irsi_52 < 50.0) {
    Gi_136 = TRUE;
    Gi_156 = FALSE;
    }
    if (irsi_44 < 50.0 && irsi_52 > 50.0) {
    Gi_136 = FALSE;
    Gi_156 = TRUE;
    }
    if (ima_12 > ima_20 && ima_28 < ima_36) {
    Gi_132 = TRUE;
    Gi_152 = FALSE;
    }
    if (ima_12 < ima_20 && ima_28 > ima_36) {
    Gi_132 = FALSE;
    Gi_152 = TRUE;
    }
    if (Gi_132 == TRUE && Gi_136 == TRUE && Gi_144 == TRUE && Gi_140 == TRUE && Gi_148 == TRUE && Gi_172 != 1) {
    G_ibuf_76[Li_4] = Low[Li_4] - (Point * Utstup); //1.3 * Ld_132;
    if (Li_4 <= 2 && Alerts && (!Gi_176)) {
    Alert(Symbol(), " ", Period(), " BUY");
    Gi_176 = TRUE;
    Gi_180 = FALSE;
    }
    Gi_172 = 1;
    } else {
    if (Gi_152 == TRUE && Gi_156 == TRUE && Gi_164 == TRUE && Gi_160 == TRUE && Gi_168 == FALSE && Gi_172 != 2) {
    G_ibuf_80[Li_4] = High[Li_4] + (Point * Utstup); // 1.3 * Ld_132;
    if (Li_4 <= 2 && Alerts && (!Gi_180)) {
    Alert(Symbol(), " ", Period(), " SELL");
    Gi_180 = TRUE;
    Gi_176 = FALSE;
    }
    Gi_172 = 2;
    }
    }
    }
    return (0);
    }
     
    • Useful Useful x 1
  2. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    Oh, you are talking about buy sell limit order?
    How can I code it? Just blank to put value?
     
  3. Francisco jose

    Francisco jose Member Credit Hunter

    Equity
    Credit
    Ref Point

    Mr. Tanaka, thank you for your patience. add the buy limit and sell limit as a function of the expert equal to stop sell and stop buy. interconnect the functions for buy limit, sell limit in "x percent, take profit and stop loss, trailing stop, martingale".
     

    Attached Files:

    • Friendly Friendly x 1
  4. steve80

    steve80 Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hi Bro , you mean just can make no 3 when reach TP or SL Close All ?
    if just No 3 i think no need to make cus at market so many like this one, if can make no 1 and 2 is ok .
     
    • Useful Useful x 1
  5. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    リンク先見てみましたが、ピンクの太いラインは、MA200ですね? ぜんぜん10レベル以下にならないのですが。。。。全部10にタッチしたらBUYですよね?


    upload_2018-11-1_16-58-45.png
     
    • Like Like x 1
    • Optimistic Optimistic x 1
  6. asasas

    asasas Member Credit Hunter

    Equity
    Credit
    Ref Point
    use range 10 - 30 for buy and 70 - 90 for sell.
     
    • Like Like x 1
    • Useful Useful x 1
  7. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    Is this strategy worth to coding EA?
     
    • Optimistic Optimistic x 1
  8. asasas

    asasas Member Credit Hunter

    Equity
    Credit
    Ref Point
    sell
    MA200 < MA5,8,13,21 shift 1 and MA200 > MA5,8,13,21 shift 0
    buy
    MA200 > MA5,8,13,21 shift 1 and MA200 < MA5,8,13,21 shift 0

    I think like this? :think::think:
     
    • Like Like x 2
    • Informative Informative x 1
  9. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    What is shift?
     
    • Optimistic Optimistic x 1
  10. mag00

    mag00 Member Credit Hunter

    Equity
    Credit
    Ref Point

    Attached Files:

    • Like Like x 1
    • Useful Useful x 1
  11. asdftty

    asdftty Member Credit Hunter

    Equity
    Credit
    Ref Point
    Tanaka,
    Can you make ea with this :
     

    Attached Files:

  12. asdftty

    asdftty Member Credit Hunter

    Equity
    Credit
    Ref Point
    Tanaka
    these indicators 0ay not be profitable by default but by making EA we can find profitable settings and proper pairs.
    please do any and then we can start testing.
    capture_20181101131633.png
     
    • Informative Informative x 1
  13. asa man

    asa man New Member

    Equity
    Credit
    Ref Point
    Before after candle.
     
  14. Khalid Awan

    Khalid Awan Member Credit Hunter

    Equity
    Credit
    Ref Point
    Please Make EA From my Personal 100% Profitable Strategy?

    Strategy is Below Explained

    1. MA 5 Exponential your own Colour
    2. MA 8 Exponential your own Colour
    3. MA 13 Exponential your own Colour
    4. MA 21 Exponential your own Colour
    5. MA 200 Exponential your own Colour

    Stochastic Oscillator Settings

    K period 9
    D period 3
    Slowing 5
    Levels 10 - 50 - 90

    Strategy is so simple can worked on any time frame

    Buy Conditions
    when Stochastic Oscillator and all Moving Averages Meet on Level 10 Then Buy.

    Sell Conditions
    when Stochastic Oscillator and all Moving Averages Meet on Level 90 Then Sell.

    i am using this strategy almost 1 year Going on with 99% success Ration because every Time frame and every Pair Need different TP and SL.

    you can Download Template i have attached

    So I am Waiting for your Good Reply.
     

    Attached Files:

    • Like Like x 1
    • Agree Agree x 1
    • Winner Winner x 1
    • Friendly Friendly x 1
  15. asdftty

    asdftty Member Credit Hunter

    Equity
    Credit
    Ref Point
    Different settings :
    capture_20181101141130.png
     
    • Winner Winner x 1
  16. asdftty

    asdftty Member Credit Hunter

    Equity
    Credit
    Ref Point
    • Winner Winner x 1
  17. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    • Winner Winner x 1
  18. mag00

    mag00 Member Credit Hunter

    Equity
    Credit
    Ref Point
    Nice to read ... you

    P.S.
    in trading I always use shift ma = 0
     
    • Friendly Friendly x 1
  19. tomas78

    tomas78 Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hi Tanaka, please when you have time make and EA from Khalid Awan. post 3423 Very good strategy. thanks !!!!!!!!!!!!!!!!!!!!!
     
    • Funny Funny x 1
  20. asdftty

    asdftty Member Credit Hunter

    Equity
    Credit
    Ref Point
    capture_20181101162850.png another set
    catching almost all sub-trends
     
    • Friendly Friendly x 1

Share This Page