Automate any Trailing Stop in MT5 Using This Simple Program | mql5 Programming Tutorial

  Рет қаралды 27,208

René Balke

René Balke

Күн бұрын

Пікірлер: 111
@anm_yoga
@anm_yoga 10 ай бұрын
Man you explain so well, just because of it, I will buy your course, you are a good teacher!
10 ай бұрын
You will like it ;) Have fun learning and programming :)
@sultansarvaiya1664
@sultansarvaiya1664 2 жыл бұрын
i think you are just only one youtuber who actually make useful mq5 videos that can be understand by non coding back ground person like me there are other great mentors but they just copy pasting and not explaining program at all please keep uploading my humble request to you🙏🙏🙏🙏
2 жыл бұрын
Thank youuu! :) I am glad that you like the content ☺️
@_mrmaks
@_mrmaks 8 ай бұрын
This is the best video I’ve seen on trailing stop. You explain so well!! Thank you so much and keep up the good work. I do have a couple of questions I believe I’ll ask as I continue on my journey/ continue to follow your channel and content. 🎉
@waydeschneider1234
@waydeschneider1234 2 жыл бұрын
Great video. Learned a lot. I would like to see a video with multiple take partials on a trade, like 60%, then the remainder at 50% of what’s left and then another at 50% of what’s left etc, until the trade closes out. I think this video combined with take partials would give us beginners some great frame work. Thanks for sharing!
@sebnai7593
@sebnai7593 6 ай бұрын
Thank you Rene, I'm just starting out with MQL5 and you are an incredible teacher
@guyzirocks
@guyzirocks 7 ай бұрын
hey, i am been an hardcore follower of yours, some day i will soon get to meet you. i still found the loop a bit confusing but by god as my witness alll our videos are simple and everynow and then you pull in some high level task with easy to understand and can even make it look like its nothing. i wish to build an EA and the first person i want to share it to, i you. just will all my love for you. insha'Allah, gimme 2 weeks, with the help of all your videos i will build you one, and make you proud
7 ай бұрын
Thanks for hardcore following! Just keep up the good work and you will get there :)
@davidhardinge1343
@davidhardinge1343 Жыл бұрын
Great work Rene, thank you so much for taking the time and sharing your knowledge. 93 more videos to go!
@nicholasbett4354
@nicholasbett4354 6 ай бұрын
Thanks Rene, this video on coding trailing stops is quite comprehensive.
@KanemNeal
@KanemNeal 2 жыл бұрын
Thank you very much for all your hard 🙏 work. I look forward to attempting to learn mql5 more with you!
@sultansarvaiya1664
@sultansarvaiya1664 2 жыл бұрын
Best video in mq5 coding history👍
@wilmontclementson9351
@wilmontclementson9351 2 жыл бұрын
Awesome. This video comes at just the right time for me. Will be coding up my TSL tonight with maybe an ATR based option added. Thanks again
2 жыл бұрын
Great to hear that you are already planning modifications :)
@eugenepekeur2809
@eugenepekeur2809 Жыл бұрын
Great Lesson, busy incorporating it in my EA.....Thanks
@arthurleong
@arthurleong Жыл бұрын
As always, I really appreciate your tutorials because you take the trouble to explain every line (except those that you have explained before in other videos) and what each line does in the code. BTW, shouldn't you also Normalize the bid and ask prices in lines 37 and 38 to the chart symbol's number of digits? Example:- Line 37 double bid = NormalizeDouble(SymbolInfoDouble(_Symbol, SYMBOL_BID), _Digits); Line 38 double ask = NormalizeDouble(SymbolInfoDouble(_Symbol, SYMBOL_ASK), _Digits);
@kingsleyitemu
@kingsleyitemu Жыл бұрын
Hello, thanks for your tutorials on mql programming. They have been very helpful.
@tushardesai256
@tushardesai256 2 жыл бұрын
Man.. I was just hoping for you to do this video. It's a huge help!
@DylanMueller-u2l
@DylanMueller-u2l 7 ай бұрын
Thank you Rene! This is super useful and needed content 😁
@michaelpetereffinger
@michaelpetereffinger 2 жыл бұрын
I like the way you've explained this. It helped me to see what l have learned previously is making a lot of sense to me. Keep up the good work!
@MrDviratis
@MrDviratis 2 жыл бұрын
A very good tutorial! Just what I was looking for. Thank you very much!
@constantinochishimba5088
@constantinochishimba5088 Жыл бұрын
Thanks mate for some insights. Always on point and very educative materials.
@kenyapuzzle_lifeontop5049
@kenyapuzzle_lifeontop5049 2 жыл бұрын
best instructor of all time.
@guilhermeamiziara
@guilhermeamiziara 3 ай бұрын
Great video. Learned a lot. Thanks.😃
@frezers78
@frezers78 2 жыл бұрын
thanks for the sharing... learnt a new EA from you is a big thing for me... thanks again !!! Awesome info broo
@daniel-tm1qc
@daniel-tm1qc 9 ай бұрын
Thank you Rene - you are awesome
9 ай бұрын
:)
@alianza-sse
@alianza-sse Жыл бұрын
Thanks René, excelent explanation.
@bosonmez
@bosonmez 8 ай бұрын
Thank you Rene. Yuo teach so so good.
@nimakhalaji2732
@nimakhalaji2732 10 күн бұрын
perfect work ...
@b.r.1222
@b.r.1222 2 жыл бұрын
Hi Rene, thank you for the great videos! Fantastic job!
@pierre-yvespalin1073
@pierre-yvespalin1073 2 жыл бұрын
Excellent explanation, thanks a lot ;)
@bluFlex_Fx
@bluFlex_Fx Жыл бұрын
Good day Rene, this video is helpful and has expanded my curiosity into the following: is it possible to create an ea that sets an automatic SL based on a predefined risk amount (e.g $100) immediately upon opening the trade? and then closes a partial of the same trade of a predefined amount has been reached (eg: at $300 profit, take 33% partial)?
@peshrawabm5314
@peshrawabm5314 2 жыл бұрын
You are the best. Thank you for your hard work.
@Island_Algorithms
@Island_Algorithms 2 жыл бұрын
Thanks once again. Its very much appreciated
@AyodejiDavid-t2o
@AyodejiDavid-t2o Жыл бұрын
thank you, this was really helpful
@Mathijsvanwijk
@Mathijsvanwijk 6 ай бұрын
How do you know that those 2 different traillogics written won't interfere with one another? 1 is trailing the SL by a fixed amount of points when the openprice + X amount of points is larger then Y. The other is setting the trailing sl to the MA. Won't this become a problem? using them both at the same time?
@villangamingyt7731
@villangamingyt7731 2 жыл бұрын
Thank you bro for most helpful videos 😃😃😃
@Arsenal279199x
@Arsenal279199x 11 ай бұрын
Hi Rene, I am having trouble using this code. I modified your code by moving 'Ctrade trade' before the OnInit function, and the trailing didn't work. Do you think this is the main problem? Also, we need to add 'Ctrade' into the Tick function. Thank you
@sitraka6350
@sitraka6350 2 жыл бұрын
Thank you bro
@speedtnt7591
@speedtnt7591 2 жыл бұрын
Hello Man, thanks for your great tutorials...may you make a tutorials on how to make that beautiful menu at the beginning your video ? thanks a lot
2 жыл бұрын
Hey I am glad you like the videos. I have a full course on mql5 programming where I also show how to make these: en.bmtrading.de/mt5-masterclass/
@andrewforrest7633
@andrewforrest7633 2 жыл бұрын
As usual great coding teaching, great app
@momoduzuberu2892
@momoduzuberu2892 2 жыл бұрын
Thank you very sir Ur videos helps so so much🙂
@manesam7389
@manesam7389 2 жыл бұрын
Absolutely Great Content Thank You 🙏🙏🙏
@oloy7038
@oloy7038 Жыл бұрын
Hello im kinda new to mql5, can you give me suggestion . for example i have 3 open trades with same symbols, entry price and stop loss but different tp's, and i want to modify the stoploss if tp1 is closed. thanks
@SnowBoy012
@SnowBoy012 Ай бұрын
The Trailing stop is only working on the second buy order, if I'm only having one buy order then there's not going to be a stop loss, but it's working well on sell orders, why?
@gppizza8979
@gppizza8979 Жыл бұрын
well, that was clear as mud im getting error messages at the last few curly brackets. ive triple checked the code. can you help me out somehow?
@yasseralvarado8968
@yasseralvarado8968 2 жыл бұрын
Gracias por compartir, excelente explicación
@selulosolomonmndzebele6847
@selulosolomonmndzebele6847 11 ай бұрын
I would like to see how you code a trailing sl using parabolic SRA
11 ай бұрын
You will find a video on this channel in which I explain how to get the SAR data. You should watch it. Also if you want to learn more about mql5 programming you can also check out my complete course here: en.bmtrading.de/mt5-masterclass/
@Fernanda-uh7iz
@Fernanda-uh7iz Жыл бұрын
thanks a lot!!!!!
@TomPaskudnyak
@TomPaskudnyak 2 жыл бұрын
Why do you declare CTrade (and other variables) locally within OnTick()? Wouldn't it be more efficient to declare them once as global variables?
2 жыл бұрын
I usually use the smallest possible scale because it makes the code cleaner and easier to understand. It might be a little more efficient to declare it as a global variable but does it really matter with modern computers? I don't think you will ever notice the difference in speed here ;)
@thewind5905
@thewind5905 Жыл бұрын
i am creating a TDI EA with this automated trailing stop feature, but the one final problem i having is getting the EA to set a stop loss as the Trailing stop wont set a SL unless the trade goes into profit, how can i fix this?
@nwoksh
@nwoksh Жыл бұрын
Hi. Will it work if converted to an mql4 code?
@Zails222
@Zails222 2 жыл бұрын
Otimo tutorial, parabens pelo conteudo. Obrigado
@edwinkipchirchir2407
@edwinkipchirchir2407 2 жыл бұрын
Thank you
@semwondwosen455
@semwondwosen455 Жыл бұрын
Can you please add a link to get your code, it will be much easier for the viewer rather than writing all this down from the video.
@andrewforrest7633
@andrewforrest7633 2 жыл бұрын
Please add modification to enable and disable the trailing stop with a button, same idea as close all trades video.
2 жыл бұрын
Hey, I receive a lot of requestes lately and cannot handle all of them. That is why I always recommend to learn the basics. But maybe I can cover this in the future.
@sasisas786
@sasisas786 2 жыл бұрын
thanks for this video
@ishazaemmanuel2106
@ishazaemmanuel2106 Жыл бұрын
Amazing
@raphaeladedayo7401
@raphaeladedayo7401 2 жыл бұрын
Thanks for this. I was able to write the code for MA, ATR and N-Candles High-Low. However, I have a persistent request failed to modify [invalid stops] for my SELL trades and I'm finding it hard to decipher the problem. Is there a way that I can share my codes with you to help review? Many thanks as always.
2 жыл бұрын
Hey, I am sorry but I cannot offer 1 on 1 support. Just check your code again and rethink all the steps. Invalid stops usually means that there is a problem with some price level (entry, tp or sl). Maybe the planned sl price is below the current market price?
@raphaeladedayo7401
@raphaeladedayo7401 2 жыл бұрын
@ Okay I'll go through them again. One more question, what line of code can I add to my EA in order to see my EA Name/Description on my closed positions. At present I see the name while the positions are opened but I don't see it again when the positions are closed.
@villangamingyt7731
@villangamingyt7731 2 жыл бұрын
@rapheal please use print function and check our journal you will figure out by your self... Thank me later
@kampret06
@kampret06 2 жыл бұрын
hi Rene, thanks for all the videos, its awesome. i have tried to build my TSL, but i found a problem about the order which has stopped by SL. the order keep appear in the order list thus i can't place a new order while i only set 1 order active on the EA. how do you think to remove the previous active order stopped by SL. thanks
2 жыл бұрын
Hey, glad you like the videos :) I am not sure if I understand your comment correctly. What do you mean with 'order list'. Is it some kind of array that you use in the EA. Or do you mean the MT5 toolbox? If the position is closed it should move to the history.
@kampret06
@kampret06 2 жыл бұрын
hi @, i'm still not sure where did i do wrong. my ea just stop making order even if the buy/sell conditions was met after one order was stopped by SL
2 жыл бұрын
Hey, do you have some kind of variable that you have to reset first? I am sorry but I cannot say much here without knowing your code.
6 ай бұрын
Why don't use Position.StopLoss() Position.TakeProfit(), Position.Symbol(), etc?
@rafaelacairo7219
@rafaelacairo7219 2 жыл бұрын
Can you show how to multiply the lotsize after one trade is close?
2 жыл бұрын
Hey, thanks for the Idea. Maybe I can do a video about this in the future :)
@ryanflick521
@ryanflick521 2 жыл бұрын
can u show me how to add a trailing stop in the Macd EA
2 жыл бұрын
Hey, check out the other tutorials on this channel. I explained trailing stops in some of them ;)
@marceloolmedo6304
@marceloolmedo6304 Жыл бұрын
Thank you very much for the class. I have a real hard time to make work the TSL in my EA, always have the error: invalid stops. Can I show you my code please?? it's in a function; do you mind?? thanks again for the clasees
@marceloolmedo6304
@marceloolmedo6304 Жыл бұрын
I also added to my EA a Break Even functions, witch is almost the same to the TSL, but still, the TSL function keeps bringing error
Жыл бұрын
@@marceloolmedo6304 Have a look at some of my tutorials on the channel and you will learn how to code a trailing stop. Common mistakes are not rounding the new SL value or trying to put the SL too close to the current market price.
@marceloolmedo6304
@marceloolmedo6304 Жыл бұрын
@ that was the mistake, now its already working, thank you for your time man, have a great day
@xilentt21
@xilentt21 2 жыл бұрын
He Rene, Made this EA, but The crazy thing happends .. he doesn't set a trade and I can't see The difference with your code can you help me perhaps ? Gruße,
@hasa4628
@hasa4628 Жыл бұрын
there should be a built it function for this
@kadoman0
@kadoman0 2 жыл бұрын
I am at 31:26 and after pressing compile... There are 2 errors "unbalanced parentheses and unexpected program end"
2 жыл бұрын
Hey it means that you forgot to close a bracket. Or you closed one and forgot to open it. So you should take another look on your bracket placement ;)
@PROPHETEMCHAUKE
@PROPHETEMCHAUKE 2 жыл бұрын
👍
@ouadieelouardy1171
@ouadieelouardy1171 2 жыл бұрын
Awesome! But why repeating basics in every video ???!
2 жыл бұрын
Thank you :) It is hard to make tutorials on KZbin that are suitable for every viewer. That is why I created a complete course with a structured content list. Check it out: en.bmtrading.de/mt5-masterclass/
@منوعاتاليوسفي
@منوعاتاليوسفي 2 жыл бұрын
hello please if you have .. trailing stop ..mt5..code.. and you sure it work...please send me the cod
2 жыл бұрын
Bro the video it literally a tutorial for what you are asking for :D just watch it and cover the code ;)
@pauldavince3740
@pauldavince3740 Ай бұрын
Nice😂❤link for the code please
@ryanflick521
@ryanflick521 2 жыл бұрын
i need ur help
2 жыл бұрын
Sorry but I cannot provide 1 on 1 support.
@ryanflick521
@ryanflick521 2 жыл бұрын
helloooo
@ryanflick521
@ryanflick521 2 жыл бұрын
watsapp same
@algorithmictradingsystems
@algorithmictradingsystems 2 жыл бұрын
You have nice website, but everything is on German.
2 жыл бұрын
Hey, check out en.bmtrading.de ;)
@54Trades
@54Trades 2 жыл бұрын
I will forever be grateful to you reine ..i am profitable now but still learning your content👏🫡keep posting
@chukwuemekao9610
@chukwuemekao9610 2 жыл бұрын
Compliments to you Rene for valuable info that you share in your channel always Please I wish to know how to contact you in private because I would like you to program an EA for me base on my strategy. Can that be possible?
2 жыл бұрын
Hey, thanks for the kind words :) Unfortunately I do not offer this service.
@lenityforbes5577
@lenityforbes5577 2 жыл бұрын
Any whatsapp or telegram to crosscheck my EA?
2 жыл бұрын
I am sorry but I do not provide this service.
@lenityforbes5577
@lenityforbes5577 2 жыл бұрын
@ I managed script am sorted but I wanted EA however I failed to code it
2 жыл бұрын
@@lenityforbes5577 Please make sure that you copy everything correctly from the video. If you are interested in a full mql5 course you should check this out: en.bmtrading.de/mt5-masterclass/
@lenityforbes5577
@lenityforbes5577 2 жыл бұрын
@ I will roll up soon currently am broke trying to automate my strategy first after few rentals I'll have money then join the winning team
2 жыл бұрын
@@lenityforbes5577 sounds good keep up the good work :)
@edwinkipchirchir2407
@edwinkipchirchir2407 2 жыл бұрын
Instagram: instagram.com/rene_bmtrad... , the link is broken.
2 жыл бұрын
Hey yeah sorry :D It is instagram.com/rene_balke/ But I am not really active there.
@fadhilinsemwa6333
@fadhilinsemwa6333 2 жыл бұрын
Very helpful, cheers brother
The KEY To Thinking Like a Programmer (Fix This Or Keep Struggling)
10:39
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 134 МЛН
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 349 М.
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,7 МЛН
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 72 М.
The Only Unbreakable Law
53:25
Molly Rocket
Рет қаралды 333 М.
Solving a REAL investigation using OSINT
19:03
Gary Ruddell
Рет қаралды 178 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 316 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,7 МЛН