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 - Розваги
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.
Hi
sir ,
I am trying to convert tradeing view indicator to mt5 but its hard i can you help me with that
I want to contact to you but i dint find in about
@@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.
Huge help! Debugging now on a custom indicator, so very timely post. 👍
Thank you so much for sharing.
thank You for vdeo
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.
thanks sir
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.
This does help a lot for debugging.
I have a question about your editor theme, could you please share the config?
👍
thanks for your indicators and videos. can you pls do syncscroll indicator for mt5 or source code for mt4
Hi, how can I sync cursor cross hair in multiple opened windows to show the cursor at same time in all windows? Thanks.
I don't think you can.
@@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
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
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.
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).
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
I don't recall what in this video is about horizontal lines but they always cross the entire chart.
FC from thailand