in my opinion you are officially the best forex tutor on you tube because you practically make contents that if applied can earn you money right away.. thumbs up RENE.. wellok forward to seeing order blocks and breakers in code. once again Thank you
Hey Rene i'm glad to see you diving into ICT Concepts!! Makes me happy to see you learn how markets actually book price 😃 keep it up this is awesome content 👏🙌🏽
Hi Rene, tolles Video. Du kannst gerne auch mal zeigen wie du beispielsweise premium und discount coden würdest. Bedeutet ein Price leg zu nehmen und zu schauen ob der Markt unter das 50er retracement kommt und evtl. ein fvg als entry in diesem discount findet. Danke 🙏🏼
I have problem while doing lookback. lets say I need minimum of 3 candles before the execution of for loop then I did in EA. //Global variable int prev_calculated; int depth = 3; void onTick(){ int bars = iBars(Symbol(), Period()); int limit = bars - prev_calculated; limit = MathMin(limit, bars - depth); for(int i = limit; i>=0; i--){ //Then I've done something like this mentioned in below code. if(bar[i+1].highbar[i+2].low){ //Error in this line saying array out of range. How to fix this? //-----some code------- } } prev_calculated = bars; }
7 місяців тому
Make sure to check if the array is big enough. HAve a look at this: ua-cam.com/video/mZv8Kxyo7Qo/v-deo.html
By no means does this indicator calculate the significant highs and lows. It does show some highs and lows. However, the way the program finds the highs and lows using the "depth" variable is why it gives you random swing points that are mostly insignificant. You can see my point by giving a low number as an input for "Depth" and seeing the random indications show up. Not that I am saying this lesson has no value. But it can be misleading to those who might doubt the whole idea of being able to make money in the markets when their strategy fails using such indicators.
9 місяців тому
Thanks for the feedback. My programming tuturials are not about teaching trading or profitable strategies. I just want to show how mql5 programming can be used to automate tasks. Hope it does not give the impression that I "recommend" using this indicator for trading signals.
Hey man I just want to say I appreciate your content. Having a background of C++ helped, I was oscillating between quiting forex and coming back but seing how code can trade for you is inspiring.. I hope you keep pushing out content I'm about to subscribe 👍
I forgot to mention but I'm a SMC trader and I've studied all of ICT's lessons, I've completed all of the mentorships and educational series. I would say I've watched about 90% of all of his UA-cam videos which is quite a lot. If you want, you can ask me anything about his concepts and I'll explain to the best of my ability and understanding, and we would work together on Indicators and EAs that use those concepts if you're keen
Hi... ! Rene i am waiting For your MACD , kindly make a video on base of MACD Histogram that when MACD histogram value not signal line or EMA is greater then 0 but when histogram value is greater then 3.4 something take buy and when it is -3.4.... it take sell thanks Rene
Hie Rene, can you please do an EA based on Highs and Lows Trends, on a rule that a Low can only be a Low if the previous high gets broken and a High can only be a High if the previous Low is broken For entry: Fibonacci retracement levels I really want this code but i dont know how to code it Thanks in advance
Hello, Rene Balke, i appreciate the video tutorial, i also like that you post videos frequently and you are very honest about everything including what you are not sure about, thank you for your honesty. You are honest in a world that doesn't have honesty, it is very rare this day. i am one guy who value truth and honesty a lot, infact it is my number one value. i have followed the video tutorial as it is, I have somehow seen that it is creating dots in the bottom. I also notice that you have bars in the bottom of you finished indicator. Why? I can share my code here if you want a prove that indeed i followed the video tutorial. Also the logic here: for(int i = limit; i > 0; i--) { highs[i] = EMPTY_VALUE; lows[i] = EMPTY_VALUE;
if(i + Depth == ArrayMaximum(high, i, Depth * 2)){ highs[i + Depth] = high[i + Depth]; } if(i + Depth == ArrayMinimum(low, i, Depth * 2)){ lows[i + Depth] = low[i + Depth]; } }.............................has been poorly explain while it is the most important part, how come we only return the rate_total after the logic, what is the relationship between the logic above and rates_total??
9 місяців тому
You usually return rates_total in the OnCalculate because the return value of the OnCalculate will then be stored in the prev_calculated parameter for the next tick. Then you can use it to calculate the limit (that is what I called the variable here), which is the amount of candles that have to be processed in the for loop again. This is done to prevent the indicator from processing every single bar with every single tick.
Hey Rene, danke für die gute Anleitung! Ich habe den Code 1 zu 1 gecoded und bekomme dementsprechend auch keine Fehler beim compilen, ABER wieso werden mir die Higsh/Lows bzw. die Punkte nicht angezeigt? :D Gibts doch gar nicht :D
9 місяців тому
Gute Frage :D Immer schwer per Ferndiagnose zu beantworten. Prüfe am besten noch einmal deinen Code. Hast Du den Code für die Plots richtig hinterlegt?
Hello! Watching this tutorial I coded this not as a indicator but in EA. It's working perfectly in strategy tester but not showing any objects in live market. What could be the reason?
8 місяців тому
Hard to say without seeing the code. Make sure to add some Print statements to see what your EA is doing.
Thanks so much for your tutorial! I copied your code but when I put the indicator in the window, the dots show in every single bar. Do you know why? thanks
8 місяців тому
Hard to say without seeing the code. Make sure to double check everything. Has to be some issue in the code. Maybe just a typo :/
@ Thanks very much for quick response! I figured it out myself when I watched the part2, it works well now, you are a great teacher, I learned so much from your videos
Great. The arrows show late. The signal comes late. Can something be done so that from the current bar/candle to the last 20 previous bars it shows for the low and high of that and not show later when more candles are formed before it.
@ReneBalke rene perhaps you don't understand, it appears after a lot of candles have formed 🤔..most indicators dont do that...yes they repaint but they draw...try to check this properly it appears after 20 candles or so
@ I will be glad if you could do this indicator in the future. When a new high or low appears, it will stored in an array if another candle closes above the new high that becomes the new high and it will store that and forget about the previous high. Till two candles close below this new high and that becomes the actual new high. and the Arrow will be on top of this actual new high. This will keep happening so that when we have more "actual new highs", a strategy to trade those with arrows on them will be developed. I am saying this to help capture the highs as fast as possible.
9 місяців тому
@@andileginindza8108 Yeah I understood that ;) You can also modify it so it draws and then redraws later. I am just not a big fan of this and decided to design this indicator so that it only draws the final highs/lows.
This is what I meant when I ask about coding market structure on yesterday's live stream, Rene. (Remember CHoCH? Change of character 🤣) I've been trying to code the whole SMC, but kinda bored mid way through & just lost in optimizing the range breakout EA. I'm sure this series of yours will be great though.
Thank you rene for your videos . are you willing to make videos about webrequest() function / API and dealing with database like sql . maybe also ea for copy trading . Thank you
9 місяців тому+1
Currently i focus on mql only and do not plan to cover server side programming here soon. Maybe at some time in the future ;)
Hi🥰 If you can do this, it will be a big help. Can you teach us (up/down trend), (patternless ❌️single candlestick types ✅️), (how to draw a horizontal line above and below a candle?
Hi Rene, thanks for this video. I look forward to Part 2, 3... are you going to post daily ? will be good to see BoS, Market Structure Shift, identify areas of consolidations
9 місяців тому
yes will be published in the next days ;) i will show BoS but not the rest. you can add it if you want since you have the source code ;)
Rene te sigo desde España y eres el mejor trader Algoritmico que existe, gracias a tus ideas y consejos, construyo robots muy rentables, y lo mejor de todo que lo haces sin pedir nada a cambio, te mereces lo mejor 🙌🏻🙌🏻
Hey hope you're good. I've been watching your MQL5 course and I've been learning a lot. I tried coding my own EA however there's an error I can't seem to fix. I get these 2 errors when compiling the code: 'Hour' - undeclared identifier EMA Test Bot.mq5 21 22 'currentTimestamp' - some operator expected EMA Test Bot.mq5 21 27 This is the line of code the errors are referring to: int currentHour = Hour(currentTimestamp); Could you please help me with this?
9 місяців тому
Hey, ummm Hour is not really a function is it? So this is why you get an error I guess. Or did you create this function? To get the hour of a specific time you can use the MqlDateTime structure: www.mql5.com/en/forum/345403
Nice quick High Low indicator. ❤ (Just discovered the arrow shift property. Much easier than coding to add spacing) Keep it up! This EA could easily turn into dozens of videos. (Depending on how much you want to improve on it) One thing to note when putting this all together is that it’s best to evaluate a symbol on multiple timeframes. Higher timeframes give you an overall picture of where price wants to go (always seeks liquidity, and higher timeframes have a stronger pull - use lower timeframes to refine your entry)
Oh! Another tip for MetaTrader convenience. Create a new folder and make a blank Expert / Indicator / script that is initialized to how you like it set up.. then copy and paste into new folder when you want to write a new expert / Indicator / script.
You can have the indicator execute & monitor trades, you can convert an indicator into a regular EA, or you can create an EA that implements a custom and/or built in indicator. Programming is very flexible with how you are able to achieve the outcome you are looking to generate.
You usually use handles in EAs and not in indicators. In MetaTrader programming a indicator handle is used to point to a specific place in the memory of your computer that holds the information about a indicator. All of the indicators parameters will be stored at this place. So the handle is a efficient way to work with this indicator. If you are interested in mql5 programming you can have a look at this: en.bmtrading.de/mt5-masterclass/
Thank you for the pointer on handles. I do not have the cash to pat for programming. However, your channel has taught me more than any other channel has on programming which I greatlu appreciate.@
in my opinion you are officially the best forex tutor on you tube because you practically make contents that if applied can earn you money right away.. thumbs up RENE.. wellok forward to seeing order blocks and breakers in code. once again Thank you
Woaaa thanks for the kind words!!
Hey Rene i'm glad to see you diving into ICT Concepts!! Makes me happy to see you learn how markets actually book price 😃 keep it up this is awesome content 👏🙌🏽
Off all developers you are the best long live ...your lessons are supper
How can we build this into a EA and not have a separate indicator, Build it into the EA code
Hey... can I share a SMC system which might help you build a EA from
Of course. I cannot guarantee that I will use it but I will definitely have a look at it.
Hi Rene, tolles Video. Du kannst gerne auch mal zeigen wie du beispielsweise premium und discount coden würdest. Bedeutet ein Price leg zu nehmen und zu schauen ob der Markt unter das 50er retracement kommt und evtl. ein fvg als entry in diesem discount findet. Danke 🙏🏼
I have problem while doing lookback. lets say I need minimum of 3 candles before the execution of for loop then I did
in EA.
//Global variable
int prev_calculated;
int depth = 3;
void onTick(){
int bars = iBars(Symbol(), Period());
int limit = bars - prev_calculated;
limit = MathMin(limit, bars - depth);
for(int i = limit; i>=0; i--){
//Then I've done something like this mentioned in below code.
if(bar[i+1].highbar[i+2].low){ //Error in this line saying array out of range. How to fix this?
//-----some code-------
}
}
prev_calculated = bars;
}
Make sure to check if the array is big enough. HAve a look at this: ua-cam.com/video/mZv8Kxyo7Qo/v-deo.html
OPEN PRICE:- Current Day/Week/Month , and Previous Day/ Week/ Mohth HIGH LOW, One more video please...
It is really easy. Have a look at the iOpen(..) function. Same works for iHigh, iLow etc.etc.
By no means does this indicator calculate the significant highs and lows. It does show some highs and lows. However, the way the program finds the highs and lows using the "depth" variable is why it gives you random swing points that are mostly insignificant. You can see my point by giving a low number as an input for "Depth" and seeing the random indications show up. Not that I am saying this lesson has no value. But it can be misleading to those who might doubt the whole idea of being able to make money in the markets when their strategy fails using such indicators.
Thanks for the feedback. My programming tuturials are not about teaching trading or profitable strategies. I just want to show how mql5 programming can be used to automate tasks. Hope it does not give the impression that I "recommend" using this indicator for trading signals.
Oh.... ICT Concepts Indicator Programming.... GOOD !!! Thanks Rene !!!
Hey man I just want to say I appreciate your content. Having a background of C++ helped, I was oscillating between quiting forex and coming back but seing how code can trade for you is inspiring.. I hope you keep pushing out content I'm about to subscribe 👍
Rene, you are the best programmer at UA-cam that I know. I learned a lot from your videos. Top!
Thank you so much for your feedback!! :)
I forgot to mention but I'm a SMC trader and I've studied all of ICT's lessons, I've completed all of the mentorships and educational series. I would say I've watched about 90% of all of his UA-cam videos which is quite a lot. If you want, you can ask me anything about his concepts and I'll explain to the best of my ability and understanding, and we would work together on Indicators and EAs that use those concepts if you're keen
Hi... ! Rene i am waiting For your MACD , kindly make a video on base of MACD Histogram that when MACD histogram value not signal line or EMA is greater then 0 but when histogram value is greater then 3.4 something take buy and when it is -3.4.... it take sell thanks Rene
Hie Rene, can you please do an EA based on Highs and Lows Trends, on a rule that a Low can only be a Low if the previous high gets broken and a High can only be a High if the previous Low is broken
For entry: Fibonacci retracement levels
I really want this code but i dont know how to code it
Thanks in advance
Hello, Rene Balke, i appreciate the video tutorial, i also like that you post videos frequently and you are very honest about everything including what you are not sure about, thank you for your honesty. You are honest in a world that doesn't have honesty, it is very rare this day. i am one guy who value truth and honesty a lot, infact it is my number one value. i have followed the video tutorial as it is, I have somehow seen that it is creating dots in the bottom. I also notice that you have bars in the bottom of you finished indicator. Why? I can share my code here if you want a prove that indeed i followed the video tutorial. Also the logic here: for(int i = limit; i > 0; i--)
{
highs[i] = EMPTY_VALUE;
lows[i] = EMPTY_VALUE;
if(i + Depth == ArrayMaximum(high, i, Depth * 2)){
highs[i + Depth] = high[i + Depth];
}
if(i + Depth == ArrayMinimum(low, i, Depth * 2)){
lows[i + Depth] = low[i + Depth];
}
}.............................has been poorly explain while it is the most important part, how come we only return the rate_total after the logic, what is the relationship between the logic above and rates_total??
You usually return rates_total in the OnCalculate because the return value of the OnCalculate will then be stored in the prev_calculated parameter for the next tick. Then you can use it to calculate the limit (that is what I called the variable here), which is the amount of candles that have to be processed in the for loop again. This is done to prevent the indicator from processing every single bar with every single tick.
Hey Rene,
danke für die gute Anleitung!
Ich habe den Code 1 zu 1 gecoded und bekomme dementsprechend auch keine Fehler beim compilen, ABER wieso werden mir die Higsh/Lows bzw. die Punkte nicht angezeigt? :D
Gibts doch gar nicht :D
Gute Frage :D Immer schwer per Ferndiagnose zu beantworten. Prüfe am besten noch einmal deinen Code. Hast Du den Code für die Plots richtig hinterlegt?
Hello! Watching this tutorial I coded this not as a indicator but in EA. It's working perfectly in strategy tester but not showing any objects in live market. What could be the reason?
Hard to say without seeing the code. Make sure to add some Print statements to see what your EA is doing.
@ I wanted to share my github link but youtube is not posting it. Is there another medium where I can send you github link and you review my code.
René greetings please after creating the SMC indicator please please I beg of you to create an EA from the indicator...
Thanks so much for your tutorial! I copied your code but when I put the indicator in the window, the dots show in every single bar. Do you know why? thanks
Hard to say without seeing the code. Make sure to double check everything. Has to be some issue in the code. Maybe just a typo :/
@ Thanks very much for quick response! I figured it out myself when I watched the part2, it works well now, you are a great teacher, I learned so much from your videos
Great. The arrows show late. The signal comes late. Can something be done so that from the current bar/candle to the last 20 previous bars it shows for the low and high of that and not show later when more candles are formed before it.
Yea it shows late
That is the problem with every indicator ;) It is always late or it repaints (like the zig zag). There is no perfect solution for this unfortunately.
@ReneBalke rene perhaps you don't understand, it appears after a lot of candles have formed 🤔..most indicators dont do that...yes they repaint but they draw...try to check this properly it appears after 20 candles or so
@ I will be glad if you could do this indicator in the future. When a new high or low appears, it will stored in an array if another candle closes above the new high that becomes the new high and it will store that and forget about the previous high. Till two candles close below this new high and that becomes the actual new high. and the Arrow will be on top of this actual new high. This will keep happening so that when we have more "actual new highs", a strategy to trade those with arrows on them will be developed. I am saying this to help capture the highs as fast as possible.
@@andileginindza8108 Yeah I understood that ;) You can also modify it so it draws and then redraws later. I am just not a big fan of this and decided to design this indicator so that it only draws the final highs/lows.
Doesnt work
bro good job there is nothing that you have not handled in trading i only follow you to understand trading
Rene is the GOAT!
Like for real bruh
This is what I meant when I ask about coding market structure on yesterday's live stream, Rene. (Remember CHoCH? Change of character 🤣)
I've been trying to code the whole SMC, but kinda bored mid way through & just lost in optimizing the range breakout EA.
I'm sure this series of yours will be great though.
Make sure to watch all the parts of the series :)
Thank you so much for teaching us, Rene.
Thank you rene for your videos . are you willing to make videos about webrequest() function / API and dealing with database like sql . maybe also ea for copy trading . Thank you
Currently i focus on mql only and do not plan to cover server side programming here soon. Maybe at some time in the future ;)
Hi🥰 If you can do this, it will be a big help. Can you teach us (up/down trend), (patternless ❌️single candlestick types ✅️), (how to draw a horizontal line above and below a candle?
😂😂😂😂😂.... Reply..???? 🤷🏻♂️🤷🏻♂️🤷🏻♂️
Hallo René. Preislabel statt arrows wären auch hilfreich.
I'm currently unsure about the effectiveness of the SMC.
And I opt to avoid strategies with high complexities.
Same here!! But a lot of people like it do I made this tutorial ;)
Hi Rene, thanks for this video. I look forward to Part 2, 3... are you going to post daily ? will be good to see BoS, Market Structure Shift, identify areas of consolidations
yes will be published in the next days ;) i will show BoS but not the rest. you can add it if you want since you have the source code ;)
Rene te sigo desde España y eres el mejor trader Algoritmico que existe, gracias a tus ideas y consejos, construyo robots muy rentables, y lo mejor de todo que lo haces sin pedir nada a cambio, te mereces lo mejor 🙌🏻🙌🏻
Thanks for the words! I really appreciate it :)
Hey hope you're good. I've been watching your MQL5 course and I've been learning a lot. I tried coding my own EA however there's an error I can't seem to fix.
I get these 2 errors when compiling the code:
'Hour' - undeclared identifier EMA Test Bot.mq5 21 22
'currentTimestamp' - some operator expected EMA Test Bot.mq5 21 27
This is the line of code the errors are referring to:
int currentHour = Hour(currentTimestamp);
Could you please help me with this?
Hey, ummm Hour is not really a function is it? So this is why you get an error I guess. Or did you create this function? To get the hour of a specific time you can use the MqlDateTime structure: www.mql5.com/en/forum/345403
Thank you so much my friend! You're honestly the best. When I'm a millionaire I'll return the favour :D@
Basically a Williams Fractals indicator with n-fractals instead of fixed 2! Thanks!
Also basically a zig zag indicator :D the functionality is really similar I guess ;)
This is so cool always wanted the indicator
Nice quick High Low indicator. ❤ (Just discovered the arrow shift property. Much easier than coding to add spacing)
Keep it up!
This EA could easily turn into dozens of videos. (Depending on how much you want to improve on it)
One thing to note when putting this all together is that it’s best to evaluate a symbol on multiple timeframes.
Higher timeframes give you an overall picture of where price wants to go (always seeks liquidity, and higher timeframes have a stronger pull - use lower timeframes to refine your entry)
Oh! Another tip for MetaTrader convenience. Create a new folder and make a blank Expert / Indicator / script that is initialized to how you like it set up.. then copy and paste into new folder when you want to write a new expert / Indicator / script.
Tnx Rene .... How can change the indicator to an expert ... Is it possible?
Yes possible
You can have the indicator execute & monitor trades, you can convert an indicator into a regular EA, or you can create an EA that implements a custom and/or built in indicator.
Programming is very flexible with how you are able to achieve the outcome you are looking to generate.
Can you explain handle and use in indicator?
You usually use handles in EAs and not in indicators. In MetaTrader programming a indicator handle is used to point to a specific place in the memory of your computer that holds the information about a indicator. All of the indicators parameters will be stored at this place. So the handle is a efficient way to work with this indicator. If you are interested in mql5 programming you can have a look at this: en.bmtrading.de/mt5-masterclass/
Thank you for the pointer on handles. I do not have the cash to pat for programming. However, your channel has taught me more than any other channel has on programming which I greatlu appreciate.@
Hi i m from India 🇮🇳. Where to get this indicater Sir
Follow this tutorial and you will have the indicator :D
Broooo :D
@@tyfitrades ok
zigzag???
Yeah the functionality is really similar I guess
Awesome Rene, would be good to see how you achieve the further concepts of SMC added to this indicator, breaks of structures etc