help plz with lot size calculation

 

I am using MT5 and MoneyFixedRisk.mqh or MoneyFixedMargin.mqh

Its pretty much fully implemented for me, the only problem I have is this:

Lets say I am risking 100% of the account, I set a SL that is 0.25% away from the entry.

The problem is I get stopped out (or margin call) before it reached the SL.

What I want to happen is, it reaches my SL and then 100% of account is gone if the parameter is set to 100% of course.

Thanks all

 
Dungaipara:

I am using MT5 and MoneyFixedRisk.mqh or MoneyFixedMargin.mqh

Its pretty much fully implemented for me, the only problem I have is this:

Lets say I am risking 100% of the account, I set a SL that is 0.25% away from the entry.

The problem is I get stopped out (or margin call) before it reached the SL.

What I want to happen is, it reaches my SL and then 100% of account is gone if the parameter is set to 100% ofcourse.

Thanks all

That is due to the stop out level.

 
Dungaipara: What I want to happen is, it reaches my SL and then 100% of account is gone if the parameter is set to 100% of course.

You can't risk 100% of your account, because you also have to consider your margin requirements as well as the broker's stop-out levels.

Please learn to trade responsibly or else you are going to wipe your account and just end up like 90% of traders that lose all their capital and savings.

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893