LittleBB

Newbie
Sep 17, 2021
13
1
4
49
Enivid, I'm very grateful for all of your work on this program. Thank you!

Edit: I noticed an alert message popping up that said Position Size Calculator Not Found after successfully compiling everything.

The fix for me was to delete the old indicator and old script. Restart MT5 and no more error message!

Does anyone know if there is a way to have Position Sizer load settings from a settings file automatically? The settings screen lets you save settings to a file but when I do, the next time I start Position Sizer, I have to click the Load button. Ideally, I'd like it to grab my default settings.
 
Last edited:

pepperb

Trader
Aug 8, 2022
12
1
14
49
@pepperb It appears that you are attempting to open a Stop Limit order with Stop price being set at some odd level (1.229 is very low of USD/JPY).
That actually helps a lot. I don't know why it was trying to include the Stop Limit in there, as I was always and only doing Market (Instant) orders. But it looks like sometimes it would keep the entry price from a different pair and apply it, even if I didn't use that option. Like it's sending a market and stop limit at the same time. Once you pointed that out, I just made sure that the "Stop Limit" price box was empty as I cycled through "Pending...Stop Limit...Instant" and it works now. Never would have found that as the problem, so THANKS!!!
 

cxskate

Trader
Aug 12, 2022
14
0
7
41
This is a wonderful tool. I have still been using the 2.xx version though because I can enter trades while still seeing my main (risk) panel. If there was an enter trade button in the main panel that would be awesome for me.

What would REALLY ROCK though is if there were a way to set a target for break even (also accounting for commission).. Say you drug your first TP line to your target.. The software would calculate what size to make that trade (number 1 of 2 or more) so that when that TP was hit your profit would put you at break even if your stop loss was then hit for the remaining positions you entered with. It's hard to do this with the current tool, the math gets screwy when your stop loss varies.
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,530
1,355
144
Odesa
www.earnforex.com
That actually helps a lot. I don't know why it was trying to include the Stop Limit in there, as I was always and only doing Market (Instant) orders. But it looks like sometimes it would keep the entry price from a different pair and apply it, even if I didn't use that option. Like it's sending a market and stop limit at the same time. Once you pointed that out, I just made sure that the "Stop Limit" price box was empty as I cycled through "Pending...Stop Limit...Instant" and it works now. Never would have found that as the problem, so THANKS!!!
Looks like a bug. I will look into it.
This is a wonderful tool. I have still been using the 2.xx version though because I can enter trades while still seeing my main (risk) panel. If there was an enter trade button in the main panel that would be awesome for me.
You can still use a hotkey to trade even when the Main tab is selected.
 

cxskate

Trader
Aug 12, 2022
14
0
7
41
Looks like a bug. I will look into it.

You can still use a hotkey to trade even when the Main tab is selected.

I did realize and see that! Still I did prefer the psc trader and the mouse my friend. What did you think of the take profit to bring stop loss balance to break even? Seems like very hard math but an incredible product
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,530
1,355
144
Odesa
www.earnforex.com
I did realize and see that! Still I did prefer the psc trader and the mouse my friend. What did you think of the take profit to bring stop loss balance to break even? Seems like very hard math but an incredible product
I'm not sure that's a good practice to enable in traders with the PS, but I will think if it is possible to implement without making it stand out.
 

Crash101

Trader
Jul 25, 2021
26
2
19
51
Enivid,

Thanks. Are you able to describe the functionality that is improved with MT5? Been using MT4 so far. Before I change, it would be helpful to understand the benefits from using the MT5 version?

Thanks for your help.

Alex
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,530
1,355
144
Odesa
www.earnforex.com
Thanks. Are you able to describe the functionality that is improved with MT5? Been using MT4 so far. Before I change, it would be helpful to understand the benefits from using the MT5 version?
There isn't a big difference between the two if we are talking purely about the Position Sizer. The biggest advantages I can think of are:
  • In the MT5 Position Sizer, hotkeys work without issues.
  • An arrow for trade direction instead of the "Long/Short" label.
  • Support for position sizes lower than 0.01 (if your broker supports that).
EDIT: Forgot to mention the support for Stop Limit orders in MT5.
 

cxskate

Trader
Aug 12, 2022
14
0
7
41
I'm not sure that's a good practice to enable in traders with the PS, but I will think if it is possible to implement without making it stand out.
In every trade group I'm in they sell 20% at 1:4 but with commissions it isn't accurate at all. Plus the opposing demand/supply to get through would be the most accurate place to get to break even.
 

cxskate

Trader
Aug 12, 2022
14
0
7
41
In every trade group I'm in they sell 20% at 1:4 but with commissions it isn't accurate at all. Plus the opposing demand/supply to get through would be the most accurate place to get to break even.


How about a checkbox in the scripts tab that says "Take Profit 1 removes risk". It would automatically change the percentage of the position split and update as your drug the lines. You could use a little extra math to account for the remaining risk being less after Take Profit 1 was achieved, and account for commissions.
 

CARPARK

Trader
Mar 29, 2021
67
23
24
46
Tallinn
Hi Envid, thanks for fixing comments on multi trades.

I am using PS to scalp M1 timeframe. If a SL is particularly small, then the position size in panel will be red and broker will not allow me to take the trade. I know of the 'use max PS' button, however, if you use the button and then change your SL to be bigger (and lowering your lot size to within broker limits), the lot size does not change automatically (so you will be grossly over-risking if you are not aware). Clicking the Max PS button does not 'undo' the max PS, it leaves PS at broker max regardless of your SL. Changing your risk fixes this. But given the speed of some of the trading I am doing I have missed one trade this morning (not blaming, just outlining that it is an issue).

But maybe I am using PS incorrectly?

What would be great is a 'use max position size broker will allow' true/false setting maybe? So it will use the max allowable PS if it's a small SL, but also adjust as normal if the SL is widened, without needing any manual intervention.
 

EnrichWave

Master Trader
May 15, 2018
325
82
74
India
the position size in panel will be red
because the broker has higher stops level. we can blame broker for this. (right click on that instrument and click specifications, you can see stops level. It'll vary broker to broker). for example. If your broker stop level is 50 and you are trying to open order EURUSD 1.32132 with SL 1.32128 you cant place orders.
'use max PS' button, however, if you use the button and then change your SL to be bigger (and lowering your lot size to within broker limits), the lot size does not change automatically
If you use Max PS button. It sets the maximum allowed size (equity or max volume position allowed for that instrument). So when you move your SL's it won't change because It set to Max PS. If you want change your position size according your SL, you have to go for Risk % or Risk USD,

The " Max PS" is for always set maximum allowed position size.
 
Last edited:

CARPARK

Trader
Mar 29, 2021
67
23
24
46
Tallinn
If you use Max PS button. It sets the maximum allowed size (equity or max volume position allowed for that instrument). So when you move your SL's it won't change because It set to Max PS. If you want change your position size according your SL, you have to go for Risk % or Risk USD,

The " Max PS" is for always set maximum allowed position size.
Perhaps I have found a bug/feature then: clicking button again does not revert behaviour back to standard lot sizing, that would be my expectation. But perhaps I am wrong?
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,530
1,355
144
Odesa
www.earnforex.com
Hi Envid, thanks for fixing comments on multi trades.

I am using PS to scalp M1 timeframe. If a SL is particularly small, then the position size in panel will be red and broker will not allow me to take the trade. I know of the 'use max PS' button, however, if you use the button and then change your SL to be bigger (and lowering your lot size to within broker limits), the lot size does not change automatically (so you will be grossly over-risking if you are not aware). Clicking the Max PS button does not 'undo' the max PS, it leaves PS at broker max regardless of your SL. Changing your risk fixes this. But given the speed of some of the trading I am doing I have missed one trade this morning (not blaming, just outlining that it is an issue).

But maybe I am using PS incorrectly?

What would be great is a 'use max position size broker will allow' true/false setting maybe? So it will use the max allowable PS if it's a small SL, but also adjust as normal if the SL is widened, without needing any manual intervention.
The Max PS button does one thing only - it sets the position size to the maximum possible considering your current available margin. It completely disregards SL and Risk settings.

The only way to switch back to Risk-based calculation. You can do that by setting either a percentage risk or a currency risk. If you want to be able to do it quicker, you can always add the Quick Risk buttons (via the QuickRisk1/QuickRisk2 input parameters).
 
  • 👍
Reactions: CARPARK

Deante gumbs

Trader
Aug 15, 2022
3
0
6
28
I am currently dealing with a issue of price not calculating the current % of my account balance. the closer i move my SL line to my entry the lower my % of trade changes when the only thing that should change is the lot size. can anyone hep?
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,530
1,355
144
Odesa
www.earnforex.com
I am currently dealing with a issue of price not calculating the current % of my account balance. the closer i move my SL line to my entry the lower my % of trade changes when the only thing that should change is the lot size. can anyone hep?
After you set your position size manually, the Position Sizer switches to "risk calculation based on PS". To get back, set your risk % to the value you'd like again.
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,530
1,355
144
Odesa
www.earnforex.com
is there any way i could send you a short recording of what's happening?https://somup.com/c3joIHuNG0
I see. The risk % you see in the left column (captioned Input) is the risk % that you enter - the one you want. The risk % in the right column (captioned Result) and in the SL line's additional label is the resulting risk - the percentage you'll lose if you open the calculated trade.

There is a difference between the Input risk and Result risk because the EA would calculate a higher position size given your risk and SL, but it would be above the maximum position size, which is 100 in your case. Since, it cannot increase the position size, when you move the SL closer to your entry, the Result risk goes down.

Most likely, the position size isn't calculating correctly here (not sure how much is 100 lots of NAS100 is at your broker). This is probably caused by incorrect info returned to the EA by the trading server due to its misconfiguration.