How do you usually exeute trades calculated by Position Size Calculator?

  • Manually

    Votes: 12 15.2%
  • PSC-Trader script with a mouse click

    Votes: 13 16.5%
  • PSC-Trader with a keyboard shortcut

    Votes: 51 64.6%
  • Using third-party trading panel

    Votes: 2 2.5%
  • Other (please provide details)

    Votes: 1 1.3%

  • Total voters
    79
  • Poll closed .
Status
Not open for further replies.

Enivid

Administrator
Staff member
Nov 30, 2008
19,251
1,508
144
Odesa
www.earnforex.com
Respect of your query, we would like to kindly inform you, that we made a full investigation of the case. Please be informed, that the difference in the value is due to the specifics of the MT5+ platform. This modification is needed, in order to properly and equally functioning of the symbol in the MT5+ platform, as MT4+. Despite the difference in the value, we would like to inform you, that the symbol “.BrentCrude” is working properly and correctly on both platforms (MT4+ and MT5+). All calculations in MT5+ are the same and equally as the calculations in MT4+.

Yes, it is functioning in the platform, but it is not functioning properly in the MQL5 code, so the indicator is receiving a wrong value.
 

EnrichWave

Master Trader
May 15, 2018
356
86
74
India
Hello, any one can guide me how to make this indicator with calculating with Equity or balance?.

PS: sorry I found that. with button. It changes to equity,balance while we click on that. But what is CPR?
Kind Regards
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,251
1,508
144
Odesa
www.earnforex.com
  • 👍
Reactions: EnrichWave

Masa

Trader
Jun 12, 2018
3
0
6
44
What does it output in the Experts tab of the terminal when you execute the script?

Hi, I have the same problem. When I tried to input the script to the chart, it doesn't do anything, it doesn't change lot size when I try to order....Please help...

Btw, this indicator is amazing, I really appreciate it :)
 

Attachments

  • 2018-06-11 18.39.37.png
    2018-06-11 18.39.37.png
    70 KB · Views: 5

EnrichWave

Master Trader
May 15, 2018
356
86
74
India
@Masa place the "Position size calculator" and supporting files into indicator folder. and while you insert the indicator, Enable "Allow DLL Imports" and "Allow external experts imports" in position size indicator. and make sure you have enabled the "Auto Trading"mode (Ctrl+E). place the script in Scripts folder. Works flawlessly.

Kind Regards
 
  • 👍
Reactions: Enivid

Masa

Trader
Jun 12, 2018
3
0
6
44
@Masa place the "Position size calculator" and supporting files into indicator folder. and while you insert the indicator, Enable "Allow DLL Imports" and "Allow external experts imports" in position size indicator. and make sure you have enabled the "Auto Trading"mode (Ctrl+E). place the script in Scripts folder. Works flawlessly.

Kind Regards

Thanks for quick reply. Yeah, it's working now. I'm glad I tried with demo account Lol It's triggered without asking me anything...
So, that how works? EA on and if I double click the scrip(PSC trader in the script) it automatically enters the trade?
 

EnrichWave

Master Trader
May 15, 2018
356
86
74
India
Yes. It'll take order according to the risk you mentioned in the risk field with stop lose you pointed.
Kind Regards

PS: for information it's not EA. it's Scripts :)
 

EnrichWave

Master Trader
May 15, 2018
356
86
74
India
If there is a text box which we can set SL in Points (Also can set a SL as a botton to Change as TP. like the button once we click on "Account balance" it changes "Account equity") that will will be great.
2HBLw.png
 
Last edited:

Enivid

Administrator
Staff member
Nov 30, 2008
19,251
1,508
144
Odesa
www.earnforex.com
Thank you @Enivid
But SL,TP Lines are automatically moving itself according to the point we mentioned in the SL,TP Text field(I think It's because of set as fixed SL,TP). . If it's not fixed will be nice one.

Kind Regards
But then the value in the box would be changing with the price, wouldn't it? What's the point of that? Setting SL as a price level seems more logical if you want it to stay at a given price level vs. fluctuate.
 

EnrichWave

Master Trader
May 15, 2018
356
86
74
India
I got that exactly @Enivid . and If you make SL,TP lines switching between Point value or level value with command button (instead of changing true or false "Used FixedSLDistance: SL Distance in Points instead of a level" and "Use FixedTPDistance: TP Distance in points intead of a level") will be easy to manage. Thank you so much for spending your precious time.
change.png
 
Last edited:

Alexter

Active Trader
Jul 3, 2018
28
16
39
Hi,
First of all I want to say thanks for the great and useful software.

Secondly I just wanted to dress some things i came by while using it.
I seems as if the Commission per lot has to be placed in a simple way (not round-turn), a clarification of this would be useful.
Also regarding this I would prefer to input my round-turn commission as most brokers charge that directly at trade open.

Another issue I have is a discrepancy between the calculations in the indicator and my own excel sheet. It seems your indicator calculates the Reward only taking into account 1 turn of the commissions but the position sizing calculator part calculates the position taking into account 2X the commission (being it round-turn).

I just wanted to highlight this discrepancy as it affected me while trading intraday and then reviewing my calculations.

2018-07-03 14_31_21.png
 
  • 👍
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,251
1,508
144
Odesa
www.earnforex.com
I seems as if the Commission per lot has to be placed in a simple way (not round-turn), a clarification of this would be useful.

It is one-way. I will try to mention this somewhere.

Another issue I have is a discrepancy between the calculations in the indicator and my own excel sheet. It seems your indicator calculates the Reward only taking into account 1 turn of the commissions but the position sizing calculator part calculates the position taking into account 2X the commission (being it round-turn).

Yes, there is an error in Reward calculation. It does not take the Commission into account at all. I will fix this in the next version of the PSC. Thanks for reporting!
 

Alexter

Active Trader
Jul 3, 2018
28
16
39
Hi, I eddied some parts of the .mqh file to solve for the issue I was having with the reward and the reward risk calculator.
I also modified the code so that it now takes round-turn commissions (making it a bit more exact).
I still get the occasional issue or slight difference between the manual/excel calculation and the one from the indicator but now its really small as to be potentially negligible for me. I will test it and report later if I have any issues with my changes.
For the mods I add my eddied .mqh file
The changes were on:
line 2426 eliminated *2 for the sets.CommissionPerLot
line 2436 eliminated *2 for sets.CommissionPerLot
line 2446 added - sets.ComissionPerLot to the formula
OutputReward = RoundDown((MathAbs(tTakeProfitLevel - tEntryLevel) * (UnitCost / TickSize) - sets.CommissionPerLot) * OutputPositionSize, 2);

Those should be the important changes I made (other things are changed were to personalize things for me, such as commission costs, % risk, line types)
For the mods, i am new here and im not sure if the post is adequate. If you find it inadequate please edit it or delete as you see fit.
 

Attachments

  • PositionSizeCalculator.mq4
    21.3 KB · Views: 8
  • PositionSizeCalculator.mqh
    258.7 KB · Views: 6
  • 👍
Reactions: Enivid

Alexter

Active Trader
Jul 3, 2018
28
16
39
HI @EnrichWave I will be happy to share it if @Enivid allows me. Also I am not sure if its ok to share it here or create its own thread. (please Enivid tell me what would be the best)

Also it is highly customized and built from the ground for my own trading. I cant guaranty that it will work well for others as your trading workflow may be different and the layout I use may not be optimal (as I said i built it myself overtime).

That said the Position Size calculator that @Enivid created is replacing most of the functionality of my spreadsheet.
I only need that the Position Size calculator can alert me if I have certain DD % for certain periods (eg. alert when my account has had a 1% DD in 1 day, 2% DD in 1 week or 7 days, 4% DD in a month or 30 days, and 10% all time DD)

With that my spreadsheet will only be used for tracking mostly as the position sizing calculator has almost all functions I need in that case.
 
Status
Not open for further replies.