Calculate Lotsize (Percent of Account) In MT5 Programming | Easy Function Explained

preview_player
Показать описание

Learn about the benefits of automated trading. After programming trading strategies for a while I started teaching how to program expert advisors for the MT4 (MetaTrader 4) and MT5 (MetaTrader 5). Until now I only did videos in German but now I will start this channel with English videos to reach a larger audience of traders and help them improve their trading. There will be no fake trading on this channel and no lies. I show trading as it is - the good and the bad sides. Stay tuned and subscribe because you don't want to miss ;)

Рекомендации по теме
Комментарии
Автор

I'd say you're the best person to explain MT5 coding on Youtube right now.

magnusbestest
Автор

I was looking at calculating lots from the internet right now :) thank you very much :) :)

rzgakademi
Автор

Hi, Rene, Thank you very much! I love everyone of your videos because it is very clear and concise and I have learnt a lot from you. Thanks!😊

jesjan
Автор

Great video, thanks!.. One thing I'd like to see different about your video and perhaps you can make another video on it is risk percentage of maximum balance always whether trades are lost or won... so if one starts with $10k and 5 or 10 trades are lost consecutively, the EA will remember to risk 1% or $100 until a new maximum balance is reached.

oscarcalle
Автор

Hi, Rene, greatly appreciate your video. Very simple very clear and short. I wish you put those small code in the notes to video, but is is a good way to practice too.

MaximSTP
Автор

Das Video hat mir sehr geholfen. Vielen Dank. Mach weiter so!

josephkorte
Автор

Hi Rene, I am glad for every bit of the video you deliver here, thanks a lot for the kind sacrifice!
I have an issue at hand..., my EA trades for minimum 14 days(two weeks) in the tester But now I have realise that in the real environment, my EA is failing to track the recent status when I reboot my VPS over the weekend!

My humble request is, if u don't mind...

Please can you make one video on how to write and save the basic MQL4 EA parameters(like ticket number, magic numbers, trailing stop levels etc) to a file and then the EA will load and read these basic saved parameters from this file during EA initialization to track its previous status and continues trading seamlessly as if nothing has happened?

Thanks a lot in advance!

bazilokello
Автор

Hi, your lot calculation method is good for the EUR as the Base currency for the account but when you want to use USD or GBP or any other currency the EA will still use the same lot size which is where the risk amount will deviate from the input risk (1%) amount specified. How can you resolve this issue so you can have different base currency accounts which are adjusted for to ensure 1% risk is linear across those accounts? Backtest your own range breakout EA you sell and you will see what I mean. I've tested it myself.

supermonkey
Автор

incredible. Thank you for this clear explanation :)

farbeyondtrading
Автор

What if we want to trade a pair that do not have USD in it, like for example CHFJPY? Then we must add some conversion logic to make it work, right? How about making a follow up video about this?😊

anypuppet
Автор

Hi René, can you please make a video (if possible) for this kind of case ?
– RSI (1000), levels 10 and 85
– EMA (5) in the RSI window

How to retrieve the value of EMA(5) when it crosses the 10 or 85 level of the RSI ?

Exple : EMA value is 6869.85402, so how to prove that the EMA is above the level 85 of the RSI or below the level 10 of the RSI?

elvisdjabia
Автор

Hello sir great video, thank you . I have a question though , i have seen that the function only works on currency pairs when I try to use it on boom and crash instruments it generates an error invalid Volume both for the lotsize and the SL could you advice me how I can rectify this error

abelzhuwao
Автор

Seems to work correctly on EURUSD, but when I tried to use it for example EURJPY, then lot size was way off?

martinsengbusch
Автор

Hi René, thanks for this. I am having problems writing a robust trading module, i.e. checking for success within a loop and retrying until the trade is successful. Do you think you could cover this topic please as I think a lot of people will be trusting to luck that the code they write will work ? Many thanks

TheEcherriman
Автор

I am from India, Always see you video which is very educative. Thank🙏🙏. Sir please make a video of crossover moving average based on crossover of a special symbol moving crossover. e. g. if 14 ema cross 50 ema in USTECH and also if 14 ema > 50 ema of US500 than buy.

chittaranjansahu
Автор

brother I like this system of yours, but what if I don't want to have slDistance and only want the riskPercentage parameter in my function...plz help me to cross my boat across this river...

vikrant
Автор

hi thanks how can calculate both for buy and sell because here we cant add another value for function calclots 2 entry price or maybe i have to create a new function calclots for sell like calclotssell haha

ATD.
Автор

Hi sir. Thank you for your hard work and awesome contents. Unfortunately, this does not work for indices like S&P500 or NDQ100 or XAUUSD. I mean, it opens positions with way more than percentage of my account!
Can you please help me with this?

MohammadrezaAlikhani
Автор

THANK YOU FOR SUCH GREAT WORK, WOULD YOU PLEASE SHOW US HOW TO CODE AN EA WHICH HAS A MAGIC NUMBER IF POSSIBLE. THANKS

efxtrading
Автор

Hey Rene...I have an EA which works in spiking markets such as BOOM and CRASH...Problem is that my BUYSTOPS which are meant to be activated by the spike in BOOM indices but they only get activated after the spike occurs and not where the EA set them....Can you please do a video explaining how to solve the problem

indexfxcreed
welcome to shbcf.ru