As I closed MT5 the log reseted,
here are screenshots of everything I've found on the MT5 folder that looks like a log file.
3 first pics are the log file in MT5, last one is the log file in MQL5-Position sizer
I hope it's enough. Thanks for your time.
PS I'm on ver 3.07
Thank you! That's really helpful!

First, about not being able to cancel the order. This has nothing to do with the Position Sizer and should be resolved with your broker's support service. There is simply no way an attached EA can influence your ability to manually close orders.

Now to the Position Sizer opening a Sell Stop order. You say that you had a Pending order set up, but the PS unexpectedly opened a Sell Stop order. A Sell Stop order is a type of a Pending order. Were you trying to open a Sell Limit order or a Buy Stop order instead?
 
Ok, thanks for the first info, i'll contact the broker then.
Now for the sell stop order :
I always used the Position Sizer the same way :
Set on pending order, i set Entry Point and SL with the lines as the bar is forming. (Entry point goes above or below the bar), and hit T if the bar size suits me.
That way if Price goes my way the trade is entered, if not I cancel the order and move on.
This time it was a short entry, so as the bar was forming i set the EP/SL levels as usual.
It's when i hit T to issue the pending order that it went differently :
Instead of displaying the pending order as usual, it displayed this weird sell stop that i couldn't remove. (It is on my 1st screenshot, the one that's not very readable, sorry for that).
I don't know if what i'm describing makes sense, i hope it's understandable.
I usually don't bother with limit/stop order tyoes, that's why i love your EA : i just set the levels and hit T, waiting to see if i'm filled or not
 
Ok, thanks for the first info, i'll contact the broker then.
Now for the sell stop order :
I always used the Position Sizer the same way :
Set on pending order, i set Entry Point and SL with the lines as the bar is forming. (Entry point goes above or below the bar), and hit T if the bar size suits me.
That way if Price goes my way the trade is entered, if not I cancel the order and move on.
This time it was a short entry, so as the bar was forming i set the EP/SL levels as usual.
It's when i hit T to issue the pending order that it went differently :
Instead of displaying the pending order as usual, it displayed this weird sell stop that i couldn't remove. (It is on my 1st screenshot, the one that's not very readable, sorry for that).
I don't know if what i'm describing makes sense, i hope it's understandable.
I usually don't bother with limit/stop order tyoes, that's why i love your EA : i just set the levels and hit T, waiting to see if i'm filled or not
But if you wanted a pending short order with the entry point below the current price, that's exactly what a Sell Stop order is. The inability to cancel it aside, I'm still struggling to understand what you expected from it instead of what happened.
 
But if you wanted a pending short order with the entry point below the current price, that's exactly what a Sell Stop order is. The inability to cancel it aside, I'm still struggling to understand what you expected from it instead of what happened.
Ok, i understand. When I'm short with a pending order it is indeed a sell stop order.
I issued a pending order right now to see what would happen and it's displaying as usual.
I displayed the screenshot from today's session just above to highlight the differences, and the only one is the color of the price box (usually green, yellow when the weird stuff happened). Does it mean something ?
So I guess the EA worked as usual and the weird stuff was on the broker's side then ?

The order didn't even fill when price moved to stop price, it did way after... It was a very volatile market but it's usally not a problem with this broker
Indeed the price at the time of the screenshot was 1.07661, meaning the price did go through the stop price of 1.07694 without triggering the opening of the position, is that right ?
 

Attachments

  • HA.png
    HA.png
    242.1 KB · Views: 4
Last edited:
Ok, i understand. When I'm short with a pending order it is indeed a sell stop order.
I issued a pending order right now to see what would happen and it's displaying as usual.
I displayed the screenshot from today's session just above to highlight the differences, and the only one is the color of the price box (usually green, yellow when the weird stuff happened). Does it mean something ?
So I guess the EA worked as usual and the weird stuff was on the broker's side then ?

The order didn't even fill when price moved to stop price, it did way after... It was a very volatile market but it's usally not a problem with this broker
Indeed the price at the time of the screenshot was 1.07661, meaning the price did go through the stop price of 1.07694 without triggering the opening of the position, is that right ?
The yellow color of the Price cell for a pending order on a Trade tab means that the trade is blocked. It gets blocked because it's in the process of being executed when there is no liquidity for it. Sometimes, the same thing happens when there is some connection issue between you and the broker. In that case, it can usually fixed by restarting the terminal.
 
The yellow color of the Price cell for a pending order on a Trade tab means that the trade is blocked. It gets blocked because it's in the process of being executed when there is no liquidity for it. Sometimes, the same thing happens when there is some connection issue between you and the broker. In that case, it can usually fixed by restarting the t
Then I suppose it was due to the lack of liquidity, as it was moments after the major US news and there were some wild moves. I've contacted my broker to find more about it.
I panicked so much when it happened, i didn't understand at all... Thank you so much for explaining me !
I'm "all in" in my strategy/mindset and really don't like bothering with order types and position size, that's why your EA is so great.
Just trading, quick entries, risk managed, perfect for scalping. In the end i'm glad the problem was broker-related and has nothing to do with the Position sizer, as i intend to use it for a long time !
Thanks again for this tool and your help.
 
Then I suppose it was due to the lack of liquidity, as it was moments after the major US news and there were some wild moves. I've contacted my broker to find more about it.
I panicked so much when it happened, i didn't understand at all... Thank you so much for explaining me !
I'm "all in" in my strategy/mindset and really don't like bothering with order types and position size, that's why your EA is so great.
Just trading, quick entries, risk managed, perfect for scalping. In the end i'm glad the problem was broker-related and has nothing to do with the Position sizer, as i intend to use it for a long time !
Thanks again for this tool and your help.
This may also happen when there is a memory issue with the terminal. At least that's one of the factors I've found online when searching about this. So, if it's not a liquidity issue, you need to make sure that your MetaTrader has enough RAM to use.
 
This may also happen when there is a memory issue with the terminal. At least that's one of the factors I've found online when searching about this. So, if it's not a liquidity issue, you need to make sure that your MetaTrader has enough RAM to use.
I'm on a 32 gb ram pc so it should be alright, although i'm on linux and running MT5 via playonlinux, maybe the ram usage is limited ?
 
I'm on a 32 gb ram pc so it should be alright, although i'm on linux and running MT5 via playonlinux, maybe the ram usage is limited ?
I don't know, I don't run MT5 on Linux, but I read somewhere that there are all kinds of problems when running MT5 there. Not sure if this specific issue is because of that though.
 
I don't know, I don't run MT5 on Linux, but I read somewhere that there are all kinds of problems when running MT5 there. Not sure if this specific issue is because of that though.
I hope not !
I never had a problem with this setup, i guess i'm lucky...
I suppose the issue is more on the broker side then.
Thanks again for your time, and for helping me figure out what happened !
I'll keep you updated when I have an answer from the tech department of my broker.
 
Currently, it's not under development, but that's something I'm considering.
Hey,

Whilst I’m still using the position sizer EA on MT5 which I find truly incredible, I’ve recently began using a broker that only offers ctrader as a platform.

Are there still plans to develo an equivalent for ctrader?

Thanks
 
suggestion for future positionsizer updates to add execute, cancel button. instead of just having a key combination option to execute.
 

Attachments

  • ea.jpg
    ea.jpg
    52.7 KB · Views: 4
Hi all, im having trouble compiling and using position size. I am using Mesa Mt4 for this, any advice for me to get this working?1713192487513.png
 
suggestion for future positionsizer updates to add execute, cancel button. instead of just having a key combination option to execute.
There is an execute button on the Trading tab. I don't plan adding a cancel button to the EA as it's already very easy to cancel an order or close a position with a single click in MT5.

However, I'd really like to know where did you get that version?
 
Hi @Enivid

I'm a huge fan of your work, especially the Position Size Calculator! It's been incredibly helpful in streamlining my lot size calculations. Thank you so much for developing such an awesome tool!

I do have a couple of feature requests that I believe would make the tool even more user-friendly:

Trade Button on MAIN: As a scalper, I frequently open and close trades. Having a 'Trade' button directly on the MAIN screen would save me valuable time and clicks, making the process even smoother.

Open Short/Long Position in Main Window: Similarly, having the option to open a short or long position directly from the main window would further optimize the user experience for traders like me who value efficiency.

I hope you'll consider these suggestions! Keep up the fantastic work!
 
Last edited by a moderator:
Open Short/Long Position in Main Window: Similarly, having the option to open a short or long position directly from the main window would further optimize the user experience for traders like me who value efficiency.
How would that be different from the Trade button on the Main tab that you've just proposed?
 
Hello,

Really enjoying the ease of use of your EA.

Got a question tho. I’m trading with fixed risk in € with 1:1RR trades. I drag the SL line to where I want it to be and the TP gets calculated via EA. Usually there’s a difference in what I risked to what I made when it hit TP. Same when it hit SL.
There seems to be a difference of roughly 10-13% of what I put in the EA as my fixed risk to what I make/lose per trade.

Quick example:
Risking 10€ fixed on a trade and when I hit TP/SL it’s usually around the 8.9€-9.05€ range.
Is this issue caused by the EA or is it something else?

Kind regards