Set stop loss on kijun sen and tenkan sen


Hello everyone
I use MT5 for trading but I need some help

I want to have an expert for my stop lost that fix on kijun sen or tenkan sen value.

can you help me to make it?


Help you with what? You haven't stated a problem, you stated a want.
     How To Ask Questions The Smart Way. (2004)
          Prune pointless queries.

You have only four choices:

  1. Search for it (CodeBase or Market). Do you expect us to do your research for you?

  2. Beg at:

  3. MT4: Learn to code it.
    MT5: Begin learning to code it.

    If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

  4. or pay (Freelance) someone to code it. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2019)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help (2017)


1. Use Ichimoku Indicator supplied with MT4/MT5

2. Open the Code for the indicator and get the array values for each line of the ichimoku


3. Create arrays in your EA for the lines you want to get each tick

      ArrayFree (ich1);
      ArrayFree (ich3);
      ArrayFree (ich4);

4. create a custom handle to "Call" the indicator to spit back the values, populating them into arrays:



5. Create logic based around the values, etc.

It takes a bit of time but learning to write your own is a very good idea.
You can even take a look at basic EA code for simple EA's that come with MT5 to start understanding the basics