Which broker and account type is that? I cannot reproduce this bug in my platforms.Hi @Enivid, I appreciate the reply. Here is a screenshot of it. All versions are up to date.
View attachment 16839
Which broker and account type is that? I cannot reproduce this bug in my platforms.Hi @Enivid, I appreciate the reply. Here is a screenshot of it. All versions are up to date.
View attachment 16839
I don't think an MQL script can do that kind of modal window confirmation. Did you see any examples of open-source scripts doing that? I would gladly look at how that's done.A suggestion.
Before the "PSC-Trader" script opens the order, open a window with the ordering data and requesting confirmation and only after confirming open the order.
Example:
View attachment 16841
Which broker and account type is that? I cannot reproduce this bug in my platforms.
StringReplace(ps, ",", "");
I don't think an MQL script can do that kind of modal window confirmation. Did you see any examples of open-source scripts doing that? I would gladly look at how that's done.
I don't think an MQL script can do that kind of modal window confirmation. Did you see any examples of open-source scripts doing that? I would gladly look at how that's done.
Wow! That's great! I didn't even know about MessageBox() function. I will definitely considering adding the confirmation option in the next release. Thank you!This other script also opens a confirmation window.
Source:
https://github.com/dirkmql/planned-pending-ordershttps://www.mql5.com/pt/code/21804
View attachment 16850
@redrose Thanks! I've found the bug. I will fix it in the next version. Meanwhile, you can just replace lines 84-91 in the PSC-Trader.mq5 file with this line:
Then recompile. It will do the trick.MQL5:StringReplace(ps, ",", "");
@Enivid Nice job on the find! I will give this a go come monday.
And I'd like to say you've done a really good job with this indicator and script.
What happens when you click the Long/Short button near the Entry field?hi all, the latest version of the position calculator seems to not work on my MT4. I can no longer select between long and short positions....and it also seems the expanded view that allows you to change the ATR values is missing too!
@Enivid you are really a nice guy and your project is splendid. Thanks for making it available.
May I please ask an added function to this already wonderful piece.
1. An option for Partial Take Profits that activate at price levels in relation to the stop loss level. For instance first TP at 30.68% of my original position size at a profit distance= 1.7*SL (that is 170% of stop loss distance from ENTRY). That means if SL is 10pip loss, partial TP will activate(not EXECUTE. request ''2'' below explains) at 17pip gain.
2. Let the partials have a TRAILING function, much like the popular Trailing Take Profit, TTP. This function is now very popular so I assume you are at home with it already.
3. Let there be an option for the Stop Loss to trail in STEP in percentage relation to the original position. Where 100% will be BREAK EVEN, 50% will be half of the original risk, 127% will be 27% locked gain. Of course this STOP LOSS STEP will be activated at my input percentage PRICE DISTANCE in relation to the original STOP LOSS distance from the TRADE ENTRY, as in request ''1'' above.
Thanks @Enivid