To me, this is the most valuable video in the Orchard treasure chest. Given that I am still a novice, this was indeed a handful. Nevertheless, I am going to go over this multiple times till I figure out the essence and make one for myself. Thank you so much. The fact that you continue to churn out content so regularly is amazing. God bless you my good sir. You are amazing. I am so grateful for your videos.
@rayoh20112 жыл бұрын
This is a very advanced concept, both from the view point of good trading and coding. Thank you for presenting it in an easy-to-understand way and sharing your code!
@OrchardForex2 жыл бұрын
Glad it was helpful!
@gakkatrader9 ай бұрын
Thank you for sharing this very valuable
@hadifromlebanon3812 Жыл бұрын
Thanks a lot for sharing your knowledge and time!
@OrchardForex Жыл бұрын
My pleasure!
@anilvarma98932 жыл бұрын
Hi Arthur, another very interesting topic explained in the simplest way. Each of your tutorials takes my programming at least one level up. Thanks a lot for sharing your knowledge. Just a pointer, while calculating mid bar in LowerTrend() you used "int midBar = mStart + (mLength/2);" while in UpperTrend it is "int midBar = mStart + ((mLength+1)/2);". Is it a typo or do you intend so? To me, it seems the addition of zero Bar, and should be the same in both methods.
@OrchardForex2 жыл бұрын
It's a typing error. Both should be the same, there is very little difference between them, just where the midpoint lies.
@joshuagittens2 жыл бұрын
Is possible to make an bot that looks for lowers lows and highs higher in which it look for last up close candle(green candle) in high higher and for lower low last down close candle. Look for a break above in bullish case and break below in bearish case. When it retraces to that down last close candle or up close candle automatically buys and also set a stop loss at the very top of the candle. If so how would you go about doing this in mt4.
@danishyousuf76652 жыл бұрын
Excellent stuff..Learned a lot from your videos....Thank you very much
@OrchardForex2 жыл бұрын
Great to hear!
@edvaldo48972 жыл бұрын
Very good! You explain very well! Thanks a lot.
@OrchardForex2 жыл бұрын
You are welcome!
@patrickdemeuter78132 жыл бұрын
Great video. now need to add the breakout to my EA strategy....
@OrchardForex2 жыл бұрын
Hope it goes well for you.
@tomchambers97872 жыл бұрын
Great information... I just joined your Premium Membership and so far I am loving it.. Question: Have you tried programming stock robots..especially like using Python... Did you find that way more difficult or not as rewarding... would love to hear your positive and negative things about doing the same for Stock as you do for Forex.. Thanks
@OrchardForex2 жыл бұрын
Long ago I wrote some trading software for stocks but I find individual stocks too unpredictable. I do trade indices now because the noise is filtered out there. I don't like python. Hard to explain but the idea of just using indentation for blocks seems wrong, and I've had some spectacular problems caused by that following cut and paste. I prefer node, been around for a while but I don't need to jump from one new thing to the next. For compiled languages C# or Java.
@donbangert2 жыл бұрын
Thinking outside the box here... Could one modify this to instead look for the price midpoint over a given number of bars and then determine whether we're in a sideways Range based on Slope? I'm thinking along the lines of a custom indicator that boxes in Range bars based on Slope.
@OrchardForex2 жыл бұрын
Finding a midpoint is easy but slope alone should be enough to know if you are in a sideways range. There are other videos coming with different approaches to finding trend lines that may be more suited to this.
@davidegolini25842 жыл бұрын
hello I'm new and learning a lot from your videos, so THANK YOU. I have a question. I would like to transfer this info to a graph with a lower TF, precisely to identify trend reversals. I should therefore extract, in addition to the maximum and minimum value a, that the moment (day, hour) to transfer it precisely to another graph through the global variables. could you help me ?
@andreyshishkin49582 жыл бұрын
Nice job Arthur! How to identify range from some candles, for example, from 5 or 6 ones? Find out Max and Min from that range?
@OrchardForex2 жыл бұрын
Use iHighest to get the number of the candle with the highest value and then iHigh to get the high price. Then the same for iLowest and iLow.
@andreyshishkin49582 жыл бұрын
@@OrchardForex Thanks a lot, Arthur!
@eetthheerrnnaall3 күн бұрын
Can I use your voice in an AI? Can I insert it into Kylo Ren's helmet? very cool lol
@saminmohamadi54912 жыл бұрын
I found your videos very helpful especially with your excellent way to describe all the details. I tried this code, but it is stuck when testing without drawing any trend lines, and finally, I have to stop it. I copied exactly the same code as your video. Do you have any idea about this problem?
@OrchardForex2 жыл бұрын
The code in the examples was a script which would run once and terminate. If you had to stop it then you have an infinite lop somewhere. Check your while statements.
@davidekerold90712 жыл бұрын
I would find this extremely useful in my day to day trading. Thank you for your insight. Just one thing, when calculating the slope would it be useful to use the daily pivot as guide to ascertain whether the slope is too severe or not?
@OrchardForex2 жыл бұрын
You can always use different timeframes to get confirmation of a trend. When I referred to pivot I was talking about it in the sense of a rotation point, not pivots as defined in financial terms based on daily price movements.
@rezanasimi2 жыл бұрын
Thanks for the great video. your videos are all very helpful. May I ask, why was CTrendiLo inherited from CObject? you didn't use it. More importantly, can you please make a video in which you demonstrate CObject? It would be perfect if you could explain why exactly pointers are used (generally, not only in CObject) Thanks again
@OrchardForex2 жыл бұрын
I didn't use it here but if I want to use the class later, say storing in an array of type CArrayObj then it must be inherited from CObject.
@rezanasimi2 жыл бұрын
@@OrchardForex thank you
@bookssums2 жыл бұрын
This so awesome, thnk you again I'm learning so so much
@OrchardForex2 жыл бұрын
You are so welcome!
@bookssums2 жыл бұрын
@@OrchardForex Hey I coded along with you exactly yet my script only prints the upper trend line 😞I've just finished going through the video for the 8th time now looking for my mistake but I can't find it, where should I look to fix this?
@OrchardForex2 жыл бұрын
@@bookssums First right click the chart and show objects to see if the line is there and not visible. If it is there then you may have drawn it in the wrong place, possibly on top of the upper line. After that add print statements into the code where the lower line would be drawn to print out important values and make sure they are correct. it is likely just one or 2 incorrect values used.
@bookssums2 жыл бұрын
after following your first suggestion by changing the line colour in the show objects settings I realised that my lower line was being drawn at the upper position and that my upper line was not showing at all. will now add print statements to see if I can figure this out, thanks a mill
@bookssums2 жыл бұрын
@@OrchardForex Found the issue!! thank you very much 😀
@moneymonstertrading2 жыл бұрын
Excellent video Arthur, thank you very much! I've followed along to build both mqh and mq4 files as you've outlined. But when I add the indicator to my chart, it is being auto removed with error: Expert 'TrendHiLo' is not custom indicator and will be removed. Is there a step I might be missing before the mqh file build?
@OrchardForex2 жыл бұрын
The functions can be used anywhere but the example code I used is a script, it won't run as an indicator.
@moneymonstertrading2 жыл бұрын
@@OrchardForex thank you, that's the piece I overlooked. I saved it in the Indicator folder instead of Script folder. Now it works. You're so great, thanks again!
@alexandravoicu6870 Жыл бұрын
Thank you so much for another amazing tutorial! I receive the error "Abnormal termination" on experts window. Can you help me fix it, please?
@OrchardForex Жыл бұрын
It will be the messages before that that are important
@alexandravoicu6870 Жыл бұрын
@@OrchardForex, it was my mistake, I am sorry. I had a space in mUpperTrend calling. Thank you for you tutorial and reply!
@aymantawil61002 жыл бұрын
Hello can you teach us how to draw trendlines using zigzag indicator to find highs and lows
@OrchardForex2 жыл бұрын
kzbin.info/www/bejne/oKDEqKOcoq6pbLs
@shshankrana12752 жыл бұрын
Hi can you pls tell where can i start learn MQL ? And is it possible to programme an EA for price action,market structures/ break and retest, basically where indicators are not required.
@OrchardForex2 жыл бұрын
I have no specific place for a structured MQL course but there are a lot of short pieces on youtube that may help. All of these types of EA are possible if you first fully define the rules and decisions.
@tradingkernel2 жыл бұрын
I have copied the same code exactly as you, no errors but it the trends are not showing on the chart, neither is the printFormat, when I try to run on backtest it just gets stuck, could this be an infinite loop? Please help
@OrchardForex2 жыл бұрын
There are loops but I cannot see where they would become infinite loops. My copy of the code is working without problems. This code is a script and will not run in backtest.
@louisbrayton51172 жыл бұрын
There is a small discrepancy between lines 93 and 145 of " (mLength/2) vs ((mLength+1)/2) ", is this intentional? I haven't sufficiently dissected the code yet to see if causes a significant issue since it appears that it may only be a small difference. I would think it would affect smaller ranges with fewer bars more.?
@OrchardForex2 жыл бұрын
I hadn't noticed that. It is a typing error, both should be the same. It doesn't really matter which, the statements are just to get a mid point.
@Dutradee2 жыл бұрын
Hi, i liked so much this video, i will try in my robot, i could't download the code in the discord
@AtklmForex2 жыл бұрын
with mql4\ how to get previous buffer Value ?? to make a comparison between last arrow and previous arrow for the same buffer - please help
@OrchardForex2 жыл бұрын
Previous value in any buffer is just index+1;
@AtklmForex2 жыл бұрын
@@OrchardForex if i have arrow with buffer[i] and want the last previous arrow with buffer so i try call buffer[i+1] but it return the value from the previous candle not buffer???
@brown5470 Жыл бұрын
where i can find the code?
@OriginalTradersForexAcademy2 жыл бұрын
Please can u turn my Indicators into ea plz
@anilvarma98932 жыл бұрын
Hi Arthur, can you suggest how to get the angle value from OBJ_TRENDBYANGLE? I am able to draw the line, but could not figure out how to get angle value. Thanks in advance.
@OrchardForex2 жыл бұрын
Have you tried OBJPROP_ANGLE
@anilvarma98932 жыл бұрын
@@OrchardForex I will give it a try. Thanks for your suggestion. :)