EnrichWave

Master Trader
May 15, 2018
384
100
89
India
You've set the maximum risk to 10%, but the risk of your position (even without SL) is "just" 9.54% (because long positions still stop at 0.0000), so it should have passed through.
Very clear now. Could you please make Universal option in settings "Allow trades without SL=True,false"

PS: If we set Default SL points, it is not go to those default SL points while we change the symbol.

BR
 
Last edited:
  • ℹ️
Reactions: Enivid

Ugurr

Trader
Jul 28, 2023
1
1
6
20
Is there a way to have the spread calculated automatically onto the stop loss or the entry with the earnforex position size calculator?
 
  • 👍
Reactions: ForexProEarns

Enivid

Administrator
Staff member
Nov 30, 2008
19,403
1,566
144
Odesa
www.earnforex.com
Is there a way to have the spread calculated automatically onto the stop loss or the entry with the earnforex position size calculator?
Unless you are in the ATR-based mode, you can move your stop-loss to wherever you want, including to any position adjusted by spread however you want that adjustment to look like. In the ATR-based mode, there is a spread adjustment option both for SL and TP.
 

fritserasmus

Trader
May 25, 2022
6
0
17
67
I am using the PS on MT4 V4.0 build 1380
PS V 3.05
Account currency: ZAR

1. Position size value showing red.

The "Position size" value on the MAIN screen is red, regardless of the value I enter
What is the reason it is showing RED? Can I change the threshold?
Is there a setting I need to change to allow this or is it code that needs changing?

2. Account currency ZAR showing as USD
Where can I change the currency display in the Position Size window to ZAR

I will appreciate any help or explanation
 

Attachments

  • Position Size 1.jpg
    Position Size 1.jpg
    50.7 KB · Views: 6

Enivid

Administrator
Staff member
Nov 30, 2008
19,403
1,566
144
Odesa
www.earnforex.com
I am using the PS on MT4 V4.0 build 1380
PS V 3.05
Account currency: ZAR

1. Position size value showing red.

The "Position size" value on the MAIN screen is red, regardless of the value I enter
What is the reason it is showing RED? Can I change the threshold?
Is there a setting I need to change to allow this or is it code that needs changing?

2. Account currency ZAR showing as USD
Where can I change the currency display in the Position Size window to ZAR

I will appreciate any help or explanation
1. The value is showing red because the Position Sizer believes that there isn't enough margin in your account to open this trade. You can try to open the trade regardless, but considering what you are saying its calculations are likely incorrect.

2. Could you please run the attached script and let me know what does it say in the Experts tab of your Terminal subwindow? The script should go to MQl4\Scripts\. All it does is just print out the account's currency.
 

Attachments

  • Print_Account_Currency.ex4
    5.4 KB · Views: 9
  • Print_Account_Currency.mq4
    211 bytes · Views: 12

bootsauce

Trader
Jul 30, 2023
1
0
6
35
Hi is there a way to program the breakeven to be the TP distance using ATR? I have my trade settings at:

ATR based SL/TP
SL multiplier: 1.5
TP1 multiplier: 1.5
TP2: 0

I would like the SL on TP2 to go to breakeven when the first order hits TP1. Thanks
 

fritserasmus

Trader
May 25, 2022
6
0
17
67
1. The value is showing red because the Position Sizer believes that there isn't enough margin in your account to open this trade. You can try to open the trade regardless, but considering what you are saying its calculations are likely incorrect.

2. Could you please run the attached script and let me know what does it say in the Experts tab of your Terminal subwindow? The script should go to MQl4\Scripts\. All it does is just print out the account's currency.
GBPUSD.r,M5
Date 2023.07.28
Time 08:15
Open 1.27940
High 1.27985
Low 1.27869
Close 1.27935
Volume 1306
MA(25) 1.27895
MA(6) 1.27892
MA(21) 1.27900
Candle_Time_End_And_Spread
Estimator 1.2787
Estimator down 1.2787
Estimator down
Candle_Time_End_And_Spread
Indicator window 2
VB High 63.3127
Market Base Line 50.4227
VB Low 37.5328
RSI Price Line 53.9700
Trade Signal Line 51.0852


Yes the EA executes the trade
 

Attachments

  • Screenshot 2023-07-30 225236.jpg
    Screenshot 2023-07-30 225236.jpg
    100.4 KB · Views: 3

fge

Newbie
Jul 31, 2023
1
0
1
39
position sizer error sending order : off quotes
could you please help with resolving this error?
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,403
1,566
144
Odesa
www.earnforex.com
Hi is there a way to program the breakeven to be the TP distance using ATR? I have my trade settings at:

ATR based SL/TP
SL multiplier: 1.5
TP1 multiplier: 1.5
TP2: 0

I would like the SL on TP2 to go to breakeven when the first order hits TP1. Thanks
No, the only way is to set the BE field accordingly after you execute the trade.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,403
1,566
144
Odesa
www.earnforex.com
GBPUSD.r,M5
Date 2023.07.28
Time 08:15
Open 1.27940
High 1.27985
Low 1.27869
Close 1.27935
Volume 1306
MA(25) 1.27895
MA(6) 1.27892
MA(21) 1.27900
Candle_Time_End_And_Spread
Estimator 1.2787
Estimator down 1.2787
Estimator down
Candle_Time_End_And_Spread
Indicator window 2
VB High 63.3127
Market Base Line 50.4227
VB Low 37.5328
RSI Price Line 53.9700
Trade Signal Line 51.0852


Yes the EA executes the trade
Your account currency is USD. At least that's what's being reported to MetaTrader programs.
If your account currency should be ZAR, you need to contact your broker about this issue.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,403
1,566
144
Odesa
www.earnforex.com
position sizer error sending order : off quotes
could you please help with resolving this error?
Most likely, it's literally what it says - the entry price is off quotes. Try disabling the trade confirmation window and see if it helps. Additional mitigating steps could be entering during a less volatile period or entering using a limit order instead of an instant order.
 

Mio

Trader
Nov 10, 2021
23
13
19
25
Attached is updated v3.05 inputs to brazilian portuguese if anyone interested.

Firstly, I want to extend my heartfelt appreciation for the remarkable work and dedication you have put into enhancing the PSC EA. As a user, I have been thoroughly delighted with the recent improvements, and I know many other members from the Brazilian community that I introduced to PSC share the same sentiment.

I have a couple of quality of life suggestions that I believe could take the user experience to even greater heights in the next update of PSC EA.
  • Minimalistic Display of ATR, Spread, and CandleTime: It would be wonderful to have the input options to easily toggle on or off the exhibit of ATR, Spread, and CandleTime in a minimalistic way at the PSC tab when it is minimized.

    Currently, the spread option is available, but it only shows when the panel is maximized.

    It would be great to have each option individually accessible, allowing users to display only the information they need. For instance, having the flexibility to choose to display ATR and Spread only, or just Spread, or solely CandleTime would be highly valuable. I've included a image example of how this could look.
  • Shortcut for Entry Line: the existing shortcut options for stop loss ("S") and take profit ("P") in the PSC EA provide great convenience for placing instant and pending orders. However, I'd like to suggest the addition of a shortcut for entry line as well, using the letter "E."
    The "E" shortcut would not only allow users to set the entry order quickly but also automatically switch it to the pending order type. "S" and "P" made instant order more efficient, but pending order still have to drag the entry line. The inclusion of the "E" shortcut for pending orders would further optimize the user experience.

  • Breakeven Offset/Buffer/Space: The recent addition of the breakeven line display and the option to account for commissions is undoubtedly valuable. However, I have a suggestion that could further enhance this feature and provide traders with additional control and flexibility.

    An option to set a customizable offset/buffer/Space in points below the breakeven edit label, let's say "Breakeven Buffer: 50" With this enhancement, the calculation for the breakeven price would be adjusted to Breakeven Price + Commission + Buffer

    Now, you might wonder why such an option would be beneficial. In real market conditions, especially in prop firms, slippage is a common occurrence, and fast movements can sometimes go through the breakeven price along with the commission, resulting in a trade ending in the negative due to slippage. By allowing traders to define a personalized offset in points, they can ensure a bit more security beyond just breakeven. This offset acts as a buffer, protecting the trade from potential slippage-induced losses and offering peace of mind during volatile market scenarios.

    In most cases, the typical breakeven might result in a slight negative due to slippage, which can be disheartening when expecting a positive outcome. However, this option also introduces a new possibility for traders to protect at a fixed price after hitting a specific target set in the breakeven edit label, which is also useful and a win-win for everyone.

I believe these enhancements would greatly improve the usability and accessibility of the PSC EA and make it even more popular. Thank you for considering my suggestions. I look forward to witnessing the continued evolution of PSC EA and can't wait to try out the new features in future updates.
Further details and enhancements to my previous suggestion regarding the Breakeven and Trailing feature, with a focus on consistency and improved functionality.
Here's a more specific breakdown of the proposed changes:
  1. Trailing Stop Functionality:
    • The "Trailing Stop" number in points would determine the price at which the trailing stop feature activates.
    • Once activated, the "Trailing Step" would control the increment in points for the current trailing stop, exactly like the existing position sizer trailing stop works.
To offer a clearer visual representation of these enhancements, I have prepared an image example:


In overall the trailing stop functionality significantly improves trader control. It allows activation at specific prices and offers precise step-by-step profit protection.

To sum up and make it easier, I've compiled the list of suggestions. I'd appreciate your thoughts on any potential missing elements. Thank you again for considering my suggestions. I look forward to witnessing the continued evolution of PS and can't wait to try out the new features in future updates.
  • Minimalistic Display of ATR, Spread, and CandleTime
  • Breakeven Offset
  • HotKey for Entry Line
  • Trailing Step
 
  • 👍
Reactions: NemoDam

CARPARK

Trader
Mar 29, 2021
69
23
24
47
Tallinn
Regarding the issue when a second TP value/line moves unexpectedly - it still happens and usually does so when changing timeframe. Will see if I can replicate and post a video
 

CARPARK

Trader
Mar 29, 2021
69
23
24
47
Tallinn
@Enivid Issue happens here as I switch to M5 and back, at 0:32 and 0:42. Original TP 2 is 100, and it changes to 99 then 103


Could it be my internet connection? It's a 4G hotspot and can be a little laggy. But I've had similar issues with hardwired connections as well.
 
  • ℹ️
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,403
1,566
144
Odesa
www.earnforex.com
Could it be my internet connection? It's a 4G hotspot and can be a little laggy. But I've had similar issues with hardwired connections as well.
No, it likely a bug that manifests itself because there is a change in quotes during the timeframe switch. I will see what can be done about it.
 
  • 👍
Reactions: CARPARK

nssladoje

Trader
Aug 3, 2023
1
0
6
37
Main changes in the version 3.00 compared to the version 2.42 of the Position Size Calculator:
  1. The indicator converted to the EA.
  2. Added a color warning for incorrect volume shares when multiple take-profits are used.
  3. Changed the default Magic number input parameter to a non-zero value.
  4. Changed the default Ask for confirmation checkbox state to ticked.
  5. Fixed a bug that prevented PSC from removing the TP when ATR TP multiplier was set to 0.
  6. Fixed a bug when if only stop-loss is set to points display (SLDistanceInPoints = true while TPDistanceInPoints = false), dragging the SL line stopped working.
  7. Added checkboxes to apply spread adjustment to SL and TP in ATR multiplier mode. (@Crash101)
  8. Fixed an issue with additional TP/SL line labels when account size is zero. (@saleh222)
  9. Fixed multiple potential zero divide errors. (@gut)
  10. Added an input field to the Trading tab to limit the maximum number of trades to prevent opening too many trades. (@Armin)
  11. Fixed a bug with Entry/SL/TP lines deselecting on the platform's restart.
  12. Added the SymbolChangeReset input parameter to make the panel reset its fields to the defaults from the input parameters if the current chart's symbol is switched to another symbol and then back. (@EnrichWave)
  13. Fixed (almost) a potential narrow price scale when adding the Position Sizer to a wide-quote symbol. (Via two Github issues: 1, 2.)
  14. Fixed a potential problem with calculations when switching the chart's symbol.
When you are at fixing Bugs this is not an actual Bug but it's better to set it some other way so that other things at Panel stay visible. So the problem is when user try to add TP1, TP2, TP3,etc it's unlimited, so mu suggestion is to limit user to 4-5 TP, or to find solution to add more TP-s and see them inside Dropdown list instead so that all info on panel stays visible.
 

michiel1010

Newbie
Aug 5, 2023
1
0
1
57
Good afternoon,

I have just started to use the position sizer EA and it is great! My compliments.

I now have a problem that it freezes up (I can hardly do anything on the windows server) my windows instance that I have running at AWS. It is the free one with limited resources (ie 1 Gb of RAM). It wasn't doing this before. It works fine for some time but than it completely freezes up. I have to reboot the windows server to get control again. Even if I use the copier and close it after use than later it still freezes up. This doesn't happen when I am not using the copier.

I am using v3.05 on MT5. I am also running FX blue copier to send trade to a second MT5 instance.

Is this related to a lack of resources?
 
Last edited:

Amadeus.V

Active Trader
Jul 7, 2023
116
15
34
32
Discuss the Position Sizer expert advisor here. This EA lets you calculate optimal position size and execute trades based on these calculations. Based on Position Size Calculator, it allows some additional control over the trades it opens. You can ask any questions about this free MetaTrader tool here.

Please refer to this tutorial for the installation process:
so the EA does not open or close any trades? just helps you with the calculations?