Heiken i Smoothed variables
Page 1 of 502 12 LastLast
Results 1 to 10 of 14

Thread: Heiken i Smoothed variables

  1. #1
    Hello everybody, first post for me here.

    As the name says, this thread concerns that the Heiken i Smoothed habit indior. I am curious on how the rules or requirements have been set to change the color of this indior(Red/Green to get bull-trend and vice-versa)?
    Are papertrading and backtested this manually for a while and it seems intriguing to get an EA system. Thought's on this, anyone?


    Thank you in advance,
    - The Shark.

  2. #2
    Hi CodeMeister,

    First off, thank you for your fast reply and most helpful links!

    My situation is this: Only recently started exploring the MetaEditor accessibility with MetaTrader and found it rather interesting. But, I have bad knowledge with computer programming so I typically get lost quite quickly while attempting to understand the coding supporting indiors. Firstly, could you help me out about the Heiken i, what principles are fulfilled to modify the colour of the pub?

    Secondly, I am serious in studying programming, so I guess my follow up is in case you(or others) have any recommendations for relevant literature about MQL. C /PHP? . .


    Again, thanks for putting in the effort.
    - The Shark.

  3. #3
    I needed to take a bit of a refresher to better comprehend Heiken i. I will attempt to keep this explanation simple, but if you have any programming background I recommend that you also have a look at the code. The easiest way to describe the colour change is that Blue means the Close is greater than the Open and Red means that the Close is lower than the Open. Of course with Heiken i, the Close and Open prices are computed from the current and preceding bars and that's not too straightforward. That is what you ought to check in the code.
    Http://codebase.mql4.com/2754
    This site is also the best source for learning MQL4. For other languages I would recommend that the Microsoft Develops site - they have some pretty tutorials.

    After taking a look at the chart in the connection, I would like to reiterate my concerns about an EA in place #2. If you use the principle of entering a trade onto the opening of the next candle after the colour changes, I would say that the chart reveals 2 good trades (the first and the last) and 4 losing trades. Granted that the losses are small but a 33% win ratio is a tough way to make money and this is really on a daily chart.
    Good luck.

  4. #4
    Quote Originally Posted by ;
    Heiken i is among my favorites as well and at one time I knew (or thought I did) it quite well. I use it but I do not think much about it anymore. I think I understand where you are going with all the EA thought and it will not work very well in a ranging market. You'll get whipsawed in and out of transactions especially on the reduced time frames. On the higher time frames you have trade and risk management problems to contend with and if you can't, you neglect.

    I think what's needed is something else to be used in conjunction including Moving Averages or Bollinger...
    Hey CodeMeister,

    simply to mention that your input is really appreciated whatsoever times and is been awaiting by me.

    Cheers man, pips all your way

  5. #5
    Quote Originally Posted by ;
    Hello everybody, first post for me.

    As the title says, this thread concerns that the Heiken i Smoothed habit indior. I'm curious about how the principles or conditions are set to change the colour of the indior(Red/Green to get bull-trend and vice-versa)?
    Have been papertrading and backtested this manually for a while and it looks interesting to get an EA system. Thought's about this, anyone?


    Thank you Beforehand,
    - The Shark.
    Welcome at FF.

    Thank you for bringing Heiken i to our focus!

  6. #6
    Quote Originally Posted by ;
    I'll attempt to keep this explanation simple, but if you have some programming background I suggest that you also check out the code.
    Oh, I wish. .

    Given the poor programming skills, would you please, even if possible, attempt to spell out the color-change region of the code easy? I have attached a copy of the current HAS Indior I am using. Your help is much appreciated. (Guess I am little leecher in this thread, I can even up on other subjects. )

    That having been said, I have resolved to devote quite some time now learning programming. Then starting with regular basics, and discovered the next book as a fantastic launch,
    http://tinyurl.com/yzugj4p Opinions?

    Seeing forum-based learning, I have done some reading about the MQL forum, but I think too little programming experience and sadly sometimes poor translation, the fundamentals didn't click for me. Nevertheless, I find it useful for asking questions and inputs from way more experienced coworkers.


    Thanks for the quick replies and friendly welcome ,
    - The Shark.
    https://forexintuitive.com/attachmen...2102441879.mq4

  7. #7
    1 Attachment(s) That will be really hard to do. If you don't understand the fundamentals of program flow, I am not sure what I can do. Here is the high level explanation of this indior.

    1. Variables are declared and initialized.
    2. For each incoming sign, the MAs for the Open, Close, High and Low prices are calculated.
    3. The Heiken i calculations are done and the results are smoothed.
    4. All these values are mapped into the indior's buffers for display on the chart.

    2 to 4 are repeated over and over for each tick.

    Here is where the color is changed.

    If (haOpenlt;haClose)

    ExtMapBuffer7[pos]=haLow;
    ExtMapBuffer8[pos]=haHigh;

    else

    ExtMapBuffer7[pos]=haHigh;
    ExtMapBuffer8[pos]=haLow;



    I understand that might not be comprehensive enough, but you truly need to understand basics first and then you can figure out the restof the


    I recalled where I saw that the HA EA. It was on a different forum. I am attaching it. I have no idea how well it works but its a fantastic place to begin to learn about EAs. Unlike many other EAs on these forums, this one is simple to setup. I am uncertain about including a link (forum rules) but you can find it by looking for TSD and Forex. They've a fairly good conversation thread, but you will have to sign up.

    I must agree with you about the MQL4 site, its tough sometimes even for an experienced coder. Regrettably, there is not anything better. But you can learn the fundamentals of any terminology and use them to MQL4.

    I am not a fan of C , therefore that I will not comment on the publiion.

    This really is new thread I spotted late today (Tues) on FF. It's quite complex and goes past a simple Heiken i. I don't understand it myself. It sounds as if it works nicely, but there have been many instances where something starts off nicely and then not so good. Maybe this something that will give you a couple of insights.

    https://forexintuitive.com/discussio...pivot-egy.html
    https://forexintuitive.com/forex-tra...e-journal.html

  8. #8
    Evening FF!

    I love the reply CodeMeister, and FYI this was what I was originally searching for, thanks alot!
    I will have a more detailed look at the EA attached this weekend since I am quite busy researching on weekdays.

    If it is of any interested I would very much like to hear your reason for not being fond of C . My motive for spending some time with C is to know MQL better and also have a base to start writing my own EAs. But I must admit that after finishing the first 3 phases the capacity to compose own progr alludes me. . In case you have book suggestion about the best way to find out MQL, this can be MUCH appreciated.


    For the record, I started trading live this week using a HAS egy. When there's any interested I could post a note here on how it goes.

    Have a Great weekend all!
    - The Shark.

  9. #9
    Quote Originally Posted by ;
    If it's of any interested I would very much like to hear that your rationale for not being fond of C . My motive for spending time with C is merely to know MQL better and also have a foundation to start writing my very own EAs. But I have to admit that after finishing the first 3 phases that the ability to compose own apps alludes me. . If you have book suggestion about the best way to find out MQL, this can be MUCH appreciated.


    [I]For the record, I started trading live this week using a HAS egy. If there's any interested I could post a notice...
    I consider C to be overly complex and a bit dated to be used as a mainstream programming language. I much favor C# or Visual Basic and to some lesser level Java. A fantastic method would be to find another language.

    I want to learn more about your HAS trading - that the pairs, time period and some general comments about market conditions and results.

  10. #10
    Quote Originally Posted by ;
    For the album, I started trading live this week with a HAS egy. If there's some interested I could post a note here on how it goes.

    Have a nice weekend!
    - The Shark.
    Sure, we are considering how you proceed with your live trading.

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 more information