Writing a Metatrader 5 Indicator Step by Step

Поділитися
Вставка
  • Опубліковано 23 сер 2024

КОМЕНТАРІ • 123

  • @innocentauskakewa8670
    @innocentauskakewa8670 3 роки тому +9

    I have been looking for this kind of content for a long time and finally I came across one of your videos,saying "thank you" would be an understatement,I truly appreciate your work and effort sir in making this kind of videos.Already subscribed!!!

  • @eritierbomponga2574
    @eritierbomponga2574 Рік тому

    I'm from Dr Congo and very glad watching your videos for interesting programming. You're smarter.

  • @ltsmash9544
    @ltsmash9544 4 роки тому +2

    Half way through this now and very grateful/appreciative! Presented well mate - cheers!

  • @erencanaslan7989
    @erencanaslan7989 4 роки тому +5

    Really nice video! I'm also trying to write a Market Profile indicator. I saw the comment about that and I feel the same way. Please make an example of it, I would appreciate it very much. Keep up the good work!

  • @Smelch
    @Smelch 3 роки тому +3

    Really Really Good, Step by step explanations, really clear. Thank you!

  • @gitgosc7075
    @gitgosc7075 3 роки тому +2

    You have no idea how it helped me! Thank you.

  • @behrouzm9045
    @behrouzm9045 Рік тому

    Man you are a great teacher! I really liked it even though I have more than 23 years of C++ programming experience.

  • @ssj4vrn
    @ssj4vrn 3 роки тому +1

    Your explaination is very clear and complete. Thank you for this video.

  • @oliverfujimori4625
    @oliverfujimori4625 4 роки тому +3

    Thanks for your time and effort. Very valuable!

    • @lilbrace1581
      @lilbrace1581 3 роки тому

      Very helpful video indeed, you can also contact him for guidance on WhatsApp

  • @aseedb
    @aseedb 3 роки тому +1

    Great video, super useful. I followed it step by step and learned a lot.

    • @bombershot9056
      @bombershot9056 3 роки тому

      Nice content indeed, you can as well contact him for guidance on WhatsApp

  • @muratkrasniy1759
    @muratkrasniy1759 4 роки тому +7

    Thanks for your perfect video, can you add more mql5 indicator programing tutorial videos please, there's no more video for educational mql5 video in UA-cam thankyou

    • @OrchardForex
      @OrchardForex  4 роки тому +5

      I'll see what I can do. Is there a specific indicator you are interested in?

    • @muratkrasniy1759
      @muratkrasniy1759 4 роки тому +5

      @@OrchardForex yes sir actually i want to learn how can write market profile indicator in mql5 really i want to learn and will happy if i can learn step by step can you show me how this indicator programing in mql5
      Thanks a lot for your interest.

    • @shau78
      @shau78 4 роки тому +1

      @@OrchardForex hello Sir, I need an indicator for previous candle high low. any ideas how I can create that indicator quickly please? will appreciate your help

  • @PROTEE
    @PROTEE 4 роки тому +3

    Great video ,
    please do one where you turn a set of rules to a buy/sell arrow (arrow indicator)

    • @OrchardForex
      @OrchardForex  4 роки тому +1

      OK, keep watching

    • @OrchardForex
      @OrchardForex  4 роки тому +2

      I've just finished a video where I do exactly that, it shows how to put arrow indicators on screen. I will upload it this weekend

  • @divan4x762
    @divan4x762 9 місяців тому

    thank you so much man. that was a good quick migration from mql4 to mql5. thanks

  • @fxsurgeon1
    @fxsurgeon1 2 роки тому +2

    Exactly what I needed. well paced, clear and informative. thank you!

  • @danemedussa
    @danemedussa 2 роки тому +2

    This was very useful, like all your videos I have had to see. I want to make a request if I may. I watched a video of yours from way back on Combining a Stochastic and two Moving Averages in an EA, which you wrote in MT4. I have attempted recreating the same in MT5 but cannot seem to get the Stoch and MAs to display any data. I would be delighted if you recreated that tutorial in MT5.
    Or better still, a tutorial video on how to create a Combined Stoch and 2 MAs Custom Indicator for MT5.
    Thank you for all these knowledge you been impacting.

  • @ForexTradingStrategiesTutorial
    @ForexTradingStrategiesTutorial 2 роки тому +1

    Great video, the best and educative. do more videos, you are a good teacher.

  • @eliasknaus7578
    @eliasknaus7578 11 місяців тому

    Thanks teacher, saludos desde Argentina

  • @learningtrading4930
    @learningtrading4930 4 роки тому +2

    Thanks for sharing these videos. They are of great help! Can you please please share a video to 1.) Create a custom indicator (not using pre-built indicators) 2.) Create an expert advisor that invokes this custom indicator to place trades. It'd be great if you can code in MQL5, thanks

    • @OrchardForex
      @OrchardForex  4 роки тому +4

      I'll add them to the schedule. Keep watching

    • @learningtrading4930
      @learningtrading4930 4 роки тому +1

      @@OrchardForex eagerly waiting for them

    • @dailymotivationstories5740
      @dailymotivationstories5740 4 роки тому +1

      @@OrchardForex Hi ! thanks for the info. Can you please tell how the indexing works for copybuffer and startbuffer? It'd be great if you can show it towards the end of the video. Thanks and god bless

  • @TheJoshuamcgowan
    @TheJoshuamcgowan 2 роки тому +1

    These details are appreciated

  • @guilhermelionco4025
    @guilhermelionco4025 4 роки тому +1

    Thanks for the tutorial my friend.

    • @mcfranklin9501
      @mcfranklin9501 3 роки тому

      Here, you can as well contact him for assistance on WhatsApp

  • @duong-jz6hn
    @duong-jz6hn 3 роки тому +1

    Thank you

    • @mcfranklin9501
      @mcfranklin9501 3 роки тому +1

      And also for guidance contact him on WhatsApp I contacted him and got quick response

  • @MrDviratis
    @MrDviratis 2 роки тому +1

    Great tutorial! I coded as you showed and it worked!

  • @rebeccacarmelacruz6528
    @rebeccacarmelacruz6528 3 роки тому +1

    Hello Thank you for this tutorial, going forward, how do you place a buy or sell signal?

  • @Murondo
    @Murondo Рік тому

    Thank you so much for the video. it is so helpful,can you please do show me how to take trades based on this custom indicator?
    Thank you so much

  • @boazmoses411
    @boazmoses411 Рік тому

    Thanks man. Great tutorial.

  • @danielfoy9674
    @danielfoy9674 3 роки тому +1

    Hey love your videos, just wondering how to plot something that isn't being copied from an indicator buffer. I have made some calculations and I want to plot that I to the screen, could anyone point me in the right direction?

  • @unknown_traveller
    @unknown_traveller 4 роки тому +1

    Thank you very much for this great video!
    The only thing I don't really know how to do is including the indicator to an EA. For example, how would I know, that the gap appeared and use it for an entry?

    • @OrchardForex
      @OrchardForex  4 роки тому +1

      See the latest video on adding buy and sell arrows. Use the same logic to find when gaps appear and disappear. ua-cam.com/video/1uebosxIBnM/v-deo.html

    • @jafxtradinginstitute6395
      @jafxtradinginstitute6395 3 роки тому +1

      Learn market structure. When all emas are aligned the structure is confirmed

    • @belpuprajwal
      @belpuprajwal 2 роки тому +1

      @@jafxtradinginstitute6395 Very well said, I also observed it. I had 2 MACDs and when both made lows OR highs ( not exactly on the same day but very close by like 2-5 days difference is acceptable, best case is it tops or bottoms on the same day [ 0 day(s) difference ] ) So you are kind of in agreement with my observation. This I use only as a confirmation on a accumulation/distribution patterns/structures( Wyckoff methods).

  • @DG10-youtube-channel
    @DG10-youtube-channel 2 місяці тому

    Hi there, do you have any videos showing how to make a indicator that gets prices from another symbol? There is a complication in the case of the diferent symbol not having prices in the same exact market hours of the main symbol in the window

    • @OrchardForex
      @OrchardForex  Місяць тому

      I have a video somewhere showing getting data from a different timeframe, that could be easily modified to get data from a different symbol. If the other market is closed there is nothing you can do about that, the times will be the same for all symbols.

  • @theninjatrader9693
    @theninjatrader9693 4 роки тому +1

    hey dude, just thought id drop a quick thank you!

  • @nanohedron
    @nanohedron Рік тому

    At 16:30: Why are there only 3 PlotIndexSetInteger()'s when there are now 4 index buffers? If you are going to skip one, I'd expect you to skip the 2nd DRAW_FILL buffer. I'm coding along, and everything works at this point. I just don't know why - especially why the last buffer is plotting.
    Also, my indicator plots from the first bar and I don't get why. Shouldn't it only start plotting at the 35th bar with these user inputs?
    Also, what changes the fill color? (nvm - I got it - at 15:20: the 1st or 2nd color is display based on the crossover of the two fill buffer values)
    For the fills, I can see that the buffers don't always clear. The lines do, but the fills don't - not always.

    • @OrchardForex
      @OrchardForex  Рік тому

      This is so long ago. There are some buffers used for calculation only and I grouped them, the plots do not have to align. This will plot everything from the leftmost bar but the values will not be correct until there are enough bars to get a correct moving average.

  • @helgagustanaargata7674
    @helgagustanaargata7674 10 місяців тому

    Hello , make video how to writing FVG indicator for mt5.please

  • @ssj4vrn
    @ssj4vrn 3 роки тому +1

    Hi, I was trying to make a custom indicator but Its tricky to understand how to set the colors of the lines incase its a multi colored line (eg how its done int he zigzagcolor indicator). Can you please make a video if possible explaining it?

    • @OrchardForex
      @OrchardForex  3 роки тому

      Not specifically for the zigzag but you might get a hint from the video being released on Sunday about Supertrend style indicators.

  • @nicksonndurere8155
    @nicksonndurere8155 Рік тому

    i have a question on the time array. How do i select the data withing a defined time range and get the highest high and lowest low of data within that time range.

    • @OrchardForex
      @OrchardForex  Рік тому

      iHigh(..., iHighest(...)) and iLow(...,iLowest(...))

  • @eritierbomponga2574
    @eritierbomponga2574 Рік тому

    Hi sir,i come back to you for this well programmed indicator. I dont know how to program it. Please how can iget what you already programmed to help me tradiding?

    • @OrchardForex
      @OrchardForex  Рік тому

      If you take the time to read the description you will know

  • @avrillavigne73
    @avrillavigne73 Рік тому

    Good Tutorial, i don't know why it's not working now,
    I got an undeclared identifier error for MaxPeriod
    I tried to identify it at the beginning along with indicator properties, it worked but when attached it to the chart it does not draw anything

    • @OrchardForex
      @OrchardForex  Рік тому

      You are missing the global declaration or have a typing error.
      int MaxPeriod;

  • @Schamoo
    @Schamoo 4 роки тому +1

    Simply fantastic, the amount of junk one has to search through to find something where beginners can learn. Could you perhaps do an example of OnArray? Such as, a Moving average of another indicator?

    • @Schamoo
      @Schamoo 4 роки тому

      oof. Not getting the MA plotting on chart :( Back we go

    • @Schamoo
      @Schamoo 4 роки тому

      Got it, had my return rates in the middle of the code and not at the end :P

    • @OrchardForex
      @OrchardForex  4 роки тому +1

      We have this video ua-cam.com/video/KAVTop-AQFA/v-deo.html or are you looking for something more specific

    • @Schamoo
      @Schamoo 4 роки тому

      Yea thanks, I am realising that using mt5 myself I will need to adapt using mt4 tutorials. Will give it a view. The step by step method (along with your more recent buy / sell arrow tutorial) has really clarified for me the structure and behaviour of coding in mql.

  • @davidfelipe4064
    @davidfelipe4064 Рік тому

    I have created an indicator using these steps but it's not plotting anything in the chart, any hint? Thanks for the video.

    • @OrchardForex
      @OrchardForex  Рік тому

      Check number of plots is set correctly. Make sure you aren't getting an error.

  • @MBermaui
    @MBermaui 2 роки тому

    PERFECT 👍🙏

  • @jafxtradinginstitute6395
    @jafxtradinginstitute6395 3 роки тому +1

    Very useful video ..

  • @smartmoneyprotocol7280
    @smartmoneyprotocol7280 2 роки тому

    information is unique, how do you create a pending order indicator? Many thanks, sir.

    • @OrchardForex
      @OrchardForex  2 роки тому

      Are you just trying to see if you have pending orders. Just look at the trade tab of the terminal window.

  • @ralphgehteha9924
    @ralphgehteha9924 Місяць тому

    Thanks a lot!
    MQL5 is like programming with hammer and chisel, though. Goodness me, what a stone age language...

  • @DG10-youtube-channel
    @DG10-youtube-channel 4 роки тому +1

    I dont get how the code knows which Moving Average is above and below. What line of code has the condition statetement BufferFast[i]>BufferSlow[i] then color=yellow. I dont see it

    • @OrchardForex
      @OrchardForex  4 роки тому

      That needs more explanation. I'll add this to my topic list.

  • @fibovision7703
    @fibovision7703 2 роки тому

    Its too hard. I couldn't attaching two indicator to make one indicator. I was trying put StdDev Oscillator with a MA on same window and i didn't get it

  • @jafxtradinginstitute6395
    @jafxtradinginstitute6395 3 роки тому +1

    How I can I send you information for you to build a RSI- CCI indicator with functions to identify the start of a trend . Divergences and entries etc. Wheee to set SL

    • @OrchardForex
      @OrchardForex  3 роки тому

      We have a contact form on our website. www.orchardforex.com/contact

  • @jesperchristensen5888
    @jesperchristensen5888 2 роки тому

    Thanks for a great tutorial. Do you have a complete mql5 programming course available?

  • @georgebryandiaz7061
    @georgebryandiaz7061 Рік тому

    How would a person add a 'shift' parameter to this indicator? What code would be used?

    • @OrchardForex
      @OrchardForex  Рік тому

      Just calculate all values using i+shift and the results go into buffer[i]

  • @dhermanus
    @dhermanus Рік тому

    Hi, Can I know why you have bracket on return (0)?

    • @OrchardForex
      @OrchardForex  Рік тому

      Because that is the way return arguments are set using the wizard and most examples and I believe was required in earlier versions. Brackets are not necessary

  • @motivationwithgod3966
    @motivationwithgod3966 4 роки тому +1

    Hi, do u have a video on how to convert the ex4 mt4 indicator to mt5 please?

    • @OrchardForex
      @OrchardForex  4 роки тому

      Sorry, I don't have anything like that.

  • @nguyenvandodt
    @nguyenvandodt 4 роки тому +2

    pls write MT5 indicator: when you saw 1st candle (O=H), alert at 2nd candle when (O=H).
    when you saw 1st candle (O=L), alert at 2nd candle when (O=L)
    thanks

    • @sanjaydewali6612
      @sanjaydewali6612 4 роки тому

      can i use this indicator,i dont know how to write code, i tried but there were many error, can you send me detail how to use.. dewalisanjay10@gmail.com

    • @fxmql5922
      @fxmql5922 3 роки тому

      Cây nến đầu tiên O=H có nghĩa là nến giảm ko râu. Mà định nghĩa "1st" là tính từ đâu vậy? Trong mql4 và mql5 thì [0] có nghĩa là nến hiện tại. Lùi là lùi về bên trái là nến số [1]...[n]. Tôi hiểu bạn đang muốn biết cây nến trước đó là cây nến tăng hay nến giảm, đứng ở nến hiện tại nhìn về nến liền trước xem nó là nến gì. Nếu nó là nến Giảm ko râu (O=H) thì báo O=H, nếu nến liền trước là nến tăng ko râu (O=L) thì báo O=L. Cái này siêu dễ.

  • @maxim25o2
    @maxim25o2 3 роки тому +1

    There was 2 errors, I was forced to correct them. But after all Its working. Nice... Ps, As C++ programmer, this type of programming, that mql5 structure is projected, that structure is a mess... To put simple indicator, peoples are forced to do so many over-complicated things... Thats crasy.. Its like Using Qt5, or webGL library.. :P Indicator Types should be used as struct or class type with simple constructor. Just to create object of that type, and using name of that object just change interested variables from default to what i want...
    Mql5 is designed mess... Scattered in whole file between functions... Thats stupid. :\

    • @nanohedron
      @nanohedron Рік тому

      Have you tried cTrader? I am thinking about switching to their C# system. I haven't learned much of it yet, but it sounded like you were describing how code is done there.

  • @JojoJojo-gc3sd
    @JojoJojo-gc3sd 4 роки тому +1

    Hello sir. Is it possible to convert an mt4 indicator to work on mt5.

    • @OrchardForex
      @OrchardForex  4 роки тому

      It depends what you mean by convert. You can't just run the ex4 indicator on MT5 but if you have the code then yes, you can always chage it to run on MT5. The indicator I used in this video was originally written for MT4 and the modified and I have several other videos in the OOP series that show code running on both MT4 and MT5.

    • @shau78
      @shau78 4 роки тому

      @@OrchardForex thanks for this tip. I will try to change previous candle high low from mt4 to mt5.

  • @DG10-youtube-channel
    @DG10-youtube-channel 4 роки тому +1

    Great great great

  • @user-pq5fm3iz1w
    @user-pq5fm3iz1w 11 місяців тому

    it looks very strange in the indicator strategy tester ?

  • @kihiu100
    @kihiu100 4 роки тому

    I have coded a similar indicator with different periods but it cannot show on the chart even when I drag it on the chart. What could be the issue here?

    • @OrchardForex
      @OrchardForex  4 роки тому

      Could be many issues. Check the log for errors. Check the data window to see the values in use by the indicator. Make sure the color isn't set to none, many more things.

    • @kihiu100
      @kihiu100 4 роки тому

      I debugged and it showed on Chart. I built another on Ichimoku and added an alert but the loop is not stopping. What could I have missed? This is the code:
      if(IsStopped())
      return(0);
      for(int i=startBar; iExtKijunBuffer[i] && Bid>ExtTenkanBuffer[i]);
      sellcondition = (ExtTenkanBuffer[i]

  • @scamshate
    @scamshate Рік тому

    Gd=od bless you sir

  • @kbtradingltd1359
    @kbtradingltd1359 3 роки тому +1

    how can i convert a thinkorswin custom indicator into mt5

    • @OrchardForex
      @OrchardForex  3 роки тому

      I don't know of any automated tool. You would need to find someone to program it.

  • @korekobayleir9473
    @korekobayleir9473 4 місяці тому

    This not work on Timeframe Weekly nad MN1

  • @donaldokorie3174
    @donaldokorie3174 2 роки тому

    Try recreating this but is not working

    • @OrchardForex
      @OrchardForex  2 роки тому

      I will need more description on what you mean by not working to give any help.

    • @donaldokorie3174
      @donaldokorie3174 2 роки тому

      I follow your guidelines inputting of every words and code, at the end when I compiled it is giving error massages

    • @OrchardForex
      @OrchardForex  2 роки тому

      @@donaldokorie3174 I still can't help without the error messages.

  • @anotherit9249
    @anotherit9249 Рік тому

    You don't explain very well