EA for quotHeiken Ashi Smoothedquot
Page 1 of 734 123 ... LastLast
Results 1 to 10 of 337

Thread: EA for quotHeiken Ashi Smoothedquot

  1. #1
    Hello,
    can anyone create an EA for the Heiken I Smoothed Indior?

    The EA should do the following:
    once the candle of the indior is reddish, open a market trade and as soon a green candle shows up, near the market and open a buy trade in the same moment.

    When the candle of the indior is green, then open a buy trade and as soon a red candle shows up, close the buy trade and open a market trade in the exact same moment.


    So it's always just a single trade open.

    No stop reduction, no take profit.

    The EA should allow to input the lots you would like to trade.
    And it should also automatically raise the lot size, once the balance has improved.

    Lets say, you have 10,000$ and need to risk 1 percent of the balance, the EA should automatically trade the corresponding lotsize.
    Therefor it should also be possible to enter the most percentage of your balance you would like to risk for the transaction.

    The interval does not matter.

    Thank's already for any help;--RRB-



    https://www.forexsoutheast.asia/atta...1539775867.mq4

  2. #2
    Is there a alert to the sdx ie when support or resistance hit
    thank you

  3. #3
    I would be really happy if you could help me with this

    I want to use the Heiken I indior (code below) to

    1) provide a signal when there is a shaven top or bottom ie the open and high are the same - signal sell (-1) or the open and low are the same - buy signal (1)

    2) to Supply this value on the last clossed bar not the current forming bar

    Here is the code - thank you very much

    #property indior_chart_window
    #property indior_buffers 4
    #property indior_color1 Red
    #property indior_color2 Green
    #property indior_color3 Green
    #property indior_color4 White
    #property indior_width1 1
    #property indior_width2 1
    #property indior_width3 3
    #property indior_width4 3

    //--
    extern color color1 = Red;
    extern color color2 = Green;
    extern color color3 = Red;
    extern color color4 = Green;
    //-- buffers
    double ExtMapBuffer1[];
    double ExtMapBuffer2[];
    double ExtMapBuffer3[];
    double ExtMapBuffer4[];
    //--


    int ExtCountedBars=0;
    // ------------------------------------------------------------------
    //| Custom indior initialization function |
    //|------------------------------------------------------------------|
    int init()

    //-- indiors
    SetIndexStyle(0,DRAW_HISTOGRAM, 0, 1, color1);
    SetIndexBuffer(0, ExtMapBuffer1);
    SetIndexStyle(1,DRAW_HISTOGRAM, 0, 1, color2);
    SetIndexBuffer(1, ExtMapBuffer2);
    SetIndexStyle(2,DRAW_HISTOGRAM, 0, 3, color3);
    SetIndexBuffer(2, ExtMapBuffer3);
    SetIndexStyle(3,DRAW_HISTOGRAM, 0, 3, color4);
    SetIndexBuffer(3, ExtMapBuffer4);
    //--
    SetIndexDrawBegin(0,10);
    SetIndexDrawBegin(1,10);
    SetIndexDrawBegin(2,10);
    SetIndexDrawBegin(3,10);
    //-- indior buffers mapping
    SetIndexBuffer(0,ExtMapBuffer1);
    SetIndexBuffer(1,ExtMapBuffer2);
    SetIndexBuffer(2,ExtMapBuffer3);
    SetIndexBuffer(3,ExtMapBuffer4);
    //-- initialization done
    return(0);

    // ------------------------------------------------------------------
    //| Custom indior deinitialization function |
    // ------------------------------------------------------------------
    int deinit()

    return(0);

    // ------------------------------------------------------------------
    //| Custom indior iteration function |
    // ------------------------------------------------------------------
    int start()

    double haOpen, haHigh, haLow, haClose;
    if(Barslt;=10) return(0);
    ExtCountedBars=IndiorCounted();
    //-- check for possible errors
    if (ExtCountedBarslt;0) return(-1);
    //-- last counted bar will be recounted
    if (ExtCountedBarsgt;0) ExtCountedBars--;
    int pos=Bars-ExtCountedBars-1;
    while(posgt;=0)

    haOpen=(ExtMapBuffer3[pos 1] ExtMapBuffer4[pos 1])/2;
    haClose=(Open[pos] High[pos] Low[pos] Close[pos])/4;
    haHigh=MathMax(High[pos], MathMax(haOpen, haClose));
    haLow=MathMin(Low[pos], MathMin(haOpen, haClose));
    if (haOpenlt;haClose)

    ExtMapBuffer1[pos]=haLow;
    ExtMapBuffer2[pos]=haHigh;
    if (haOpen==haLow)GlobalVariableSet(Sy mbol() HA,1);

    else

    ExtMapBuffer1[pos]=haHigh;
    ExtMapBuffer2[pos]=haLow;
    if (haOpen==haHigh)GlobalVariableSet(S ymbol() HA,-1);

    ExtMapBuffer3[pos]=haOpen;
    ExtMapBuffer4[pos]=haClose;
    pos--;

    //--
    return(0);

    // ------------------------------------------------------------------

  4. #4
    Hi OTis

    Thanks for sharing this EA. I suppose a candle breakout attribute will issue far better signal/trades. Can u insert such an alternative. U can locate an indior 3line break of google ( I was not able to upload ). I use HA eloquent with this particular indior for guide trades

    Regards
    Sachin

  5. #5
    Quote Originally Posted by ;
    Here you go Hang Cool. I also suggest the SDX Pivots indior may. It is helpful and I use it everyday. It automatically plots support/resistance, pivots, daily open, yesterdays high and low, Fibonacci levels, etc.. It requires a lot of hassle from trading and can be deadly accurate with Heiken ashi smoothed, RSI, and 50, 100, and 200 MA's. Good Luck.
    sir
    I utilize the lonewolf EA of heinka ashi smoothened but it doesn't open the trade I dont know why???
    Help I used the same HAS indior still no trade opened why???
    thank you

  6. #6
    Quote Originally Posted by ;
    I'd be really happy if you could assist me with this particular

    I wish to use the Heiken I indior (code below) to

    1) provide a signal whenever there's a shaven top or bottom ie the high and open will be the same - signal sell (-1) or the open and non will be exactly the same - buy signal (1)

    2) to provide this value on the last clossed bar not the current forming pub

    This is your code - thank you very far

    #property indior_chart_window
    #property indior_buffers 4
    #property indior_color1 Red
    #property indior_color2 Green
    #property indior_color3...
    Do you mean this?

    Inserted Code #property indior_chart_window #property indior_buffers 4 #property indior_color1 Red #property indior_color2 Green #property indior_color3 Green #property indior_color4 White #property indior_width1 1 #property indior_width2 1 #property indior_width3 3 #property indior_width4 3 //-- extern color color1 = Red; extern color color2 = Green; extern color color3 = Red; extern color color4 = Green; //-- buffers double ExtMapBuffer1#91;#93;; double ExtMapBuffer2#91;#93;; double ExtMapBuffer3#91;#93;; double ExtMapBuffer4#91;#93;; //-- int ExtCountedBars=0; // ------------------------------------------------------------------ //| Custom indior initialization function | //|------------------------------------------------------------------| #91;indent#93;int init() //-- indiors SetIndexStyle(0,DRAW_HISTOGRAM, 0, 1, color1); SetIndexBuffer(0, ExtMapBuffer1); SetIndexStyle(1,DRAW_HISTOGRAM, 0, 1, color2); SetIndexBuffer(1, ExtMapBuffer2); SetIndexStyle(2,DRAW_HISTOGRAM, 0, 3, color3); SetIndexBuffer(2, ExtMapBuffer3); SetIndexStyle(3,DRAW_HISTOGRAM, 0, 3, color4); SetIndexBuffer(3, ExtMapBuffer4); //-- SetIndexDrawBegin(0,10); SetIndexDrawBegin(1,10); SetIndexDrawBegin(2,10); SetIndexDrawBegin(3,10); //-- indior buffers mapping SetIndexBuffer(0,ExtMapBuffer1); SetIndexBuffer(1,ExtMapBuffer2); SetIndexBuffer(2,ExtMapBuffer3); SetIndexBuffer(3,ExtMapBuffer4); //-- initialization done return(0); #91;left#93;#91;/left#93; #91;/indent#93;// ------------------------------------------------------------------ #91;left#93;//| Custom indior deinitialization function | // ------------------------------------------------------------------ int deinit() return(0); // ------------------------------------------------------------------ //| Custom indior iteration function | // ------------------------------------------------------------------ #91;/left#93; #91;indent#93;int start() #91;left#93; double haOpen, haHigh, haLow, haClose; if(Barslt;=10) return(0); ExtCountedBars=IndiorCounted(); //-- check for possible errors if (ExtCountedBarslt;0) return(-1); //-- last counted bar will be recounted if (ExtCountedBarsgt;0) ExtCountedBars--; int pos=Bars-ExtCountedBars-1; while(posgt;=0) haOpen=(ExtMapBuffer3#91;pos 1#93; ExtMapBuffer4#91;pos 1#93;-RRB-/2; haClose=(Open#91;pos#93; High#91;pos#93; Low#91;pos#93; Close#91;pos#93;-RRB-/4; haHigh=MathMax(High#91;pos#93;, MathMax(haOpen, haClose)); haLow=MathMin(Low#91;pos#93;, MathMin(haOpen, haClose)); if (haOpenlt;haClose) ExtMapBuffer1#91;pos#93;=haLow; ExtMapBuffer2#91;pos#93;=haHigh; if (haOpen==haLow)GlobalVariableSet(Sy mbol() HA,1); else ExtMapBuffer1#91;pos#93;=haHigh; ExtMapBuffer2#91;pos#93;=haLow; if (haOpen==haHigh)GlobalVariableSet(S ymbol() HA,-1); ExtMapBuffer3#91;pos#93;=haOpen; ExtMapBuffer4#91;pos#93;=haClose; pos--; #91;b#93;if(ExtMapBuffer1#91;1#93;==ExtMapBuffer3# 91;1#93;-RRB-//Last high = last open#91;/b#93; #91;b#93; Alert(Time to sell);#91;/b#93; #91;b#93;if(ExtMapBuffer2#91;1#93;==ExtMapBuffer4# 91;1#93;-RRB-//Last low = last close#91;/b#93; #91;b#93; Alert(Time to buy);#91;/b#93; //-- return(0); #91;/left#93;#91;/indent#93;

  7. #7
    I try Lonewolf (with trailing stop).mq4 to put in the Indikators folder

    they dont work why?

    Smooth heiken I works. .

    please help thx

  8. #8
    Quote Originally Posted by ;
    I attempt Lonewolf (with tracking stop).mq4 to spend the Indikators folder

    they dont work why?

    Smooth heiken I works. .

    Please help thx
    Perhaps because its EA not an indior.
    Place it in your specialists folder.

  9. #9
    Thx Cyber thats it a EA

    I have 1 question...

    I will exchange in a lower interval without EMA where I must alter the code?

    thx

  10. #10
    I have never used an EA earlier but trade manually with heiken ashi candles and stochs, filtered by 100 SMA on H4

    this one seems promising, loading it up to a demo account as we talk, most likely examine H1 or H4


    if I were to change this bit of code:

    Quote Originally Posted by ;
    dual MA1 =iMA(NULL,PERIOD_H4,55,0,MODE_EMA,PRICE_OPEN,1);
    and substitute 55 using 100 and MODE_EMA using MODE_SMA, would that change the filter for a 100 SMA on H4?

    Sorry I am new to mql4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.