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.

Michael618

Trader
Jul 20, 2017
20
6
24
44
One more thing about commission.

1. It was 0.0
2. I found out how much is the commission on my new broker (pepperstone) => 3.76
3. i changed the value in indicator's settings or properties
4. but it didn't updated into the window

5. i saved though a set with indicator's properties
6. i closed the indicator
7. i reopened it, and loaded the set of properties
8. new value appeared correctly in the window

so maybe there's a bug at point 4?
or is this the desired behavior?
 
  • 👍
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
18,535
1,355
144
Odesa
www.earnforex.com
With minimizing/maximizing,
I've looked a little into the code,
At first glance, apparently it boils down to CRect class, I believe

I don't know now exactly if each window has its own Crect (I guess so)
In this case, i guess it would be needed to change coordinates of active CRect with the inactive one.
Or adding a CPoint parameter, with the new corner, to Maximize() and Minimize() methods?
Maybe I'm talking gibberish, so i'll stop now :D

That's not gibberish. It's the right way to solve the issue - to move the window (minimized or maximized) to the position where the user has dragged it previously to. I am working on it.

so maybe there's a bug at point 4?
or is this the desired behavior?

Yes, it looks like an error. I will look if it can be fixed without breaking anything else related to saving the indicator's settings.
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,535
1,355
144
Odesa
www.earnforex.com
so maybe there's a bug at point 4?
or is this the desired behavior?

Actually, after considering this a bit more thoroughly I come to a conclusion that such behavior is optimal. It is not a bug because input parameters should not be used to change the values inside the currently loaded panel. They should only be used to set the default values when indicator is first attached to a chart. Otherwise, changing, for example, the commission via inputs on an already attached PSC would reset its SL/TP levels, entry type, and all other settings that are controlled via input parameters.
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,535
1,355
144
Odesa
www.earnforex.com
On the second (or is it third?) thought, I have decided to implement the modifications necessary for the indicator to react properly to changes in the Risk, EntryType, Commission, and Commentary input parameters. It will work this way: if the input parameter is changed from its previous value, the respective panel's field gets updated (because the user explicitly wanted to update it obviously); if the input parameter is not changed from its previous value, the respective panel's field will remain the same as it had been and will not take the value from the input parameters even if it is different.

Any other ideas before I roll out the next version update of PSC?
 

muscae

Trader
Oct 29, 2017
5
2
9
46
Very good indicator, very helpful. I would like to reveal a small bug that I have found. when we change the order type from instant to Pending in the settings and save a settings file, looks like it have changed to Pending but button still appears as Instant.
 
  • 👍
Reactions: Enivid

muscae

Trader
Oct 29, 2017
5
2
9
46
Another small bug that I have found is like a missing initialization cleanup. When I attach the indicator to a graph and save it as template, when reuse that template appears two boxes one real and another ghost sitting there. I think that would be easy to fix, but not me, I haven't those skills. If someone could tell me the code to fix, I will appreciate.
Check what happens after applied template to another instrument.
https://i.imgur.com/7YNHKs0.png
 
  • 👍
Reactions: Enivid

Michael618

Trader
Jul 20, 2017
20
6
24
44
I was thinking about possible improvement of the indicator, specifically for speed, while contemplating my strategy.

Given that my SL is almost always between 20 and 30 pips, i wondered about one way to display needed lots for each pip.

A way would be in the right of the chart, in the form of:

Pips: lots

20: 0.05
21: 0.05
.
.
25: 0.06
26: 0.06
..
30: 0.08

Even better, only unique lots values would be needed, to minimize the output.
Of course, the range would be defined with parameters, i mean from 20 to 30.

Its just anidea,
At least I'm curious what do you think about it.
 
  • 👍
Reactions: Enivid

Michael618

Trader
Jul 20, 2017
20
6
24
44
Well,
In my mind i visualized textboxes drawn into the future.
Not labels.
But I'm not sure if this is also possible in MT4, I've meddled only with MT5.

In a range of 10 to 20 pips,
Like in my case, from 20 to 30,
Its very possible that only few textboxes would be required.
I will test, and see for sure.
I presume 3 textboxes would do, with unique lots value changes.

If the range is not given, then no textboxes.
I would add a single string input parameter for this, "minSL, maxSL"

Usually i tend to make these parameters as strings, like "20, 30"
Then split the string and read values at the start of indicator.
I do this to minimize number of input parameters.
 
  • 👍
Reactions: Enivid

Michael618

Trader
Jul 20, 2017
20
6
24
44
actually, there are many changes from SL to SL, so I didn't imagine well this part.

so the next best thing, for this potential feature, would be,
instead of displaying for each SL,
I see 2 possibilities:
1. display only for 3 values: minSL, midSL, maxSL
2. or add a 3rd input parameter, minSL, maxSL, increment, and let user decide how many textboxes

either case, i cannot compute if this would be helpful or not for others
it would be good if people would be able to vote for potential features, here on forum
polls?


ps.
btw, if you want, i can give you MT5 functions for splitting a string with any separator given.
I have separate functions for splitting into strings, into ints, into doubles
 

Michael618

Trader
Jul 20, 2017
20
6
24
44
Meanwhile,
I put together a script for this, in MT4
(i took portions of code from 2 indicators)

i think it works well, if someone is curious to see what i was after
 

Attachments

  • my_mm.mq4
    2.1 KB · Views: 10
  • 👍
Reactions: Enivid

Danielmoaz

Newbie
Dec 20, 2017
4
1
3
40
Hi,

I was hoping that somebody can help me with the script as when I want to trade with UK shares the positions are very big for my account.

I've tried it before with another stock and the position the script gave me was 4 lots however my broker didn't allowed me to open the position due to my account and I did opened with 1.50 lots.

As per below the script suggest a position of 10 lots for the trade however there is no way my account can handle 10 lots or as it's a UK share I should read it 1 lot? Am I doing anything wrong or the script is not accurate for shares? I doubt it but not 100% sure.

2q3526b.jpg


Thank you!!
 
  • 👍
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
18,535
1,355
144
Odesa
www.earnforex.com
It might be a problem in the indicator or it might be a problem with incorrectly filled specification for a trading instrument on your broker's server. Please let me know the broker and server you are using, so I could test it. Thanks!
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,535
1,355
144
Odesa
www.earnforex.com
@Danielmoaz, Thanks for reporting this! It was indeed a bug in the calculator, which appeared because of the tick value in CFDs' specifications in MetaTrader 5 work differently from the tick value in Forex instruments and in CFDs in MetaTrader 4. It is now fixed. Please download version 2.12. Let me know if it works for you.

PS: Anyone using MT4 version of PSC does not need to update.
 

Danielmoaz

Newbie
Dec 20, 2017
4
1
3
40
@Enivid I get the same result.

Also, seems not to get when a position is long or short. This case would be a short one.

ADHVJY3.jpg
ADHVJY3.jpg

t12VvfK.jpg


Other tab settings:
Risk: Nothing to do here I believe for my case.
Margin: Does not really matter if I leave it as "0" or "25". Result does not change.
Swaps and Script: Nothing to do here.

Thank you!!
Daniel
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,535
1,355
144
Odesa
www.earnforex.com
Unfortunately, I cannot check it with the UK shares at the moment because the market is closed, but it gives the correct results for the US shares. I will check it again on Tuesday when the UK market reopens.

EDIT: I will check it on Monday as it looks like the UK stock market is open on December 25.
 
Status
Not open for further replies.