Basic Metatrader Debugging

Поділитися
Вставка
  • Опубліковано 11 тра 2023
  • Are you struggling with code errors in MetaTrader? Debugging your code can be a frustrating and time-consuming process, but it doesn't have to be! In this video, I'll show you a basic start for debugging code in MetaTrader.
    First I'll introduce a small application with a noticeable bug.
    Then I'll go through the steps to find the root cause of the problem and fix it.
    This is not an all encompassing video about debugging but does show my usual first step to diagnosing problems and that uauslly leads to a quick fix.
    Links:
    Orchard Web: orchardforex.com/basic-metatr...
    Looking for a broker? Support the channel by using one of these links:
    Discount on commission and good customer support - OX Securities: oxsecurities.com/orchard-forex/
    Good product range - IC Markets: icmarkets.com/?camp=51463
    High leverage for Australian customers - BlackBull Markets: blackbullmarkets.com/en/live-...
    #debugging #metatrader
  • Розваги

КОМЕНТАРІ • 22

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

    I have had a good question. What if the eventual error had not been so obvious? Then the next step would be to change the print statement to include all of the values used in the calculation. I already know the result value is incorrect and if the print shows that all of the input values are correct then that narrows down the problem, and if the problem is not there identify which input value is incorrect and step backwards from there. repeat.

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

      Hi
      sir ,
      I am trying to convert tradeing view indicator to mt5 but its hard i can you help me with that

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

      I want to contact to you but i dint find in about

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

      @@alexmartin9989 You can use the email on this page
      orchardforex.com/contact-us/
      but I generally don't take on TV to MT conversions. It will depend on the indicator.

  • @donbangert
    @donbangert Рік тому +1

    Huge help! Debugging now on a custom indicator, so very timely post. 👍

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

    Thank you so much for sharing.

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

    thank You for vdeo

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

    God bless you for the rich content you give us. Im also requesting a video on how to use the debugger. I haven't come across any Video explaining it in detail. Will really be grateful to have it. Thanks.

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

    thanks sir

  • @michaelk.7553
    @michaelk.7553 Рік тому

    Thank you. Great content as always👍Can you please do a video explaining the MT5 degugger (Process & debugging functions). I also use the Print function and most of the time it is enough, however, sometimes I am concerned to be more effiecient by using the debugger. But I do not know when and how to use it. Or maybe you can share a link with better information than MT5 help.

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

    This does help a lot for debugging.
    I have a question about your editor theme, could you please share the config?

  • @mr.adamprince4853
    @mr.adamprince4853 Рік тому

    👍

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

    thanks for your indicators and videos. can you pls do syncscroll indicator for mt5 or source code for mt4

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

    Hi, how can I sync cursor cross hair in multiple opened windows to show the cursor at same time in all windows? Thanks.

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

      I don't think you can.

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

      @@OrchardForex Hi, it's already in the paid account of Trading view. I saw in mql someone was showing but it was not free. It could be done with mouseMove & mouseClick event. I don't know how to connect with Win API. I saw you have Chart Sync indicator. So if you make a video for the Cursor Sync, it would be a great help for us.
      Thanks

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

    I am trying to convert my custom indicator from mql5 to mql4. But I encounter a problem, in the Oncalculate of mql4, there is no const double &price[]. Are there any alternative for this? I tried const double &close[] but got different result

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

      You are using one of 2 variations of the OnCalculate function, the lesser used of the 2. MT4 only uses one of the variants and it isn't the one you want. In your case price[] is just an array of values from somewhere, maybe you can keep it in a global variable instead of passing to the function.

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

      I already fixed it. It is the iteration, it counts from recent to past bars, I did the reverse and it works! Also the const double price[] is equivalent to const doble close[] (in my indicator).

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

    Pls help
    My mt5 omce i chose the horizontal line and try to draw it automatical. Inserts a lomg horizontal lone from left to right which i cannot resize. I even unstalled it and later installed but its still the same pls help

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

      I don't recall what in this video is about horizontal lines but they always cross the entire chart.

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

    FC from thailand