If you have thought that trading based on the accurately calculated position size cannot get any better, think again. Now you can use a MetaTrader script to place orders based on the calculations of the Position Size Calculator indicator. The script will detect the position size calculated by the indicator and will place a trade accordingly, whether it is an instant order or a pending one. For pending orders, it will also detect whether a stop or limit one should be used.
You can download the .mq4 file (or .mq5 if you are using MetaTrader 5) of the script or the same source code in .zip (MT5 in zip). You will have to place it in your MetaTrader’s /MQL4/scripts/ folder (or /MQL5/scripts/ in case of MT5).
Adding a hotkey (keyboard shortcut) to the script will make placing trades even faster. Here is the short tutorial on how to add a hotkey to the script in MetaTrader:
1. Right click on a script in the Navigator subwindow of your MetaTrader:
2. Then set the control key for your shortcut. It is either Ctrl or Alt:
3. Now, you can set the main trigger key:
4. Done. You can now press the key combination to invoke the script at any time to open your trade immediately.
PS: Of course, you should enable autotrading in your platform for the script to work whether you start it with a mouse click or a key press:
If you have any comments or questions about this trade placing script based on Position Size Calculator output, please post them using the form below.
This is a very nice script. Thanks for sharing it.
I like to put a comment in my trades. So I am wondering if it is possible to have Order window opened and filled by this script but let me put a comment and then place it myself.
▼Reply
Andriy Moraru Reply:
November 4th, 2015 at 7:03 am
Unfortunately, that is not possible. You can only change the comment by editing the script’s source code prior to executing it.
▼Reply
Hello Andriy – I cannot get the position size indicator to display the correct levels for entry, stop loss and take profit – even though they are correctly entered into the indicator settings. I have a screen shot which I can email you to show what has gone wrong. Just need to know where to send it to.
▼Reply
Andriy Moraru Reply:
November 5th, 2015 at 10:32 am
Just set DeleteLines input parameter to true. It will fix the problem.
▼Reply
OK – That has fixed the display but now the lot size has disappeared – so what next ?
Thanks
▼Reply
Andriy Moraru Reply:
November 6th, 2015 at 8:17 am
Could you please show a screenshot?
▼Reply
Sorry Andriy – its my fault – it obviously updates the screen when the asset price changes. I was using this when the market was very quiet and very few price changes !!
Brilliant Job – this will be SO useful . THANKYOU
▼Reply
Hi Andriy, good day! I downloaded this script but the diamond in the lower right portion of the program icon is in gray.
I have already downloaded the mq4 file and transferred it to MQL4/Scripts.
So how do I fix this? Thank you!
▼Reply
Andriy Moraru Reply:
November 30th, 2015 at 5:51 am
Can you open it in MQL Editor? If yes, can you compile it there? Are there any errors?
▼Reply
I right clicked on PSC-trader and clicked modify. It opened MetaEditor. I clicked on the green play button and I was redirected to MT4. However, a prompt showed stating Position Size Calculator not found.
However, i do have the PositionSizeCalculator_separate under indicator.
What should I do next? Thank you in advance!
▼Reply
Andriy Moraru Reply:
November 30th, 2015 at 8:13 am
To use PSC-trader, you have to attach PositionSizeCalculator_Separate or PositionSizeCalculator_Main to the chart, then launch PSC-trader script (just double-click it, do not go to ‘Modify’).
▼Reply
Thanks for your reply, Andriy.
I attached positionsizecalculator_separate to the chart; then added my price parameters.
Afterwards, I double clicked on psc-trader script but my pending orders are not showing up under the trade tab. Is this normal? Thanks!
▼Reply
Andriy Moraru Reply:
November 30th, 2015 at 11:55 am
Does it say anything in the Experts tab of the Terminal window?
▼Reply
After I attached positionsizecalculator_separate to the chart, the following messages appeared on the experts tab:
positionsizecalculator_separate gbpusd,h1: initialized
custom indicator positionsizecalculator_separate gbpusd,h1: loaded successfully
I then double clicked on psc-trader, and the additional messages appeared on experts tab:
script psc-trader gbpusd,h1: loaded successfully
psc-trader gbpusd,h1: initialized
psc-trader gbpusd,h1: detected position size: 0.11
psc-trader gbpusd,h1: detected entry level: 1.64400
psc-trader gbpusd,h1: detected entry type: pending
psc-trader gbpusd,h1: detected stop-loss level: 1.60000
psc-trader gbpusd,h1: detected take-profit level: 1.70000
psc-trader gbpusd,h1: execution failed. error: unknown error
psc-trader gbpusd,h1: uninit reason 0
script psc-trader gbpusd,h1: removed
Is this a result of my using a demo account? I’m using fxcm mt4.
Thank you for the time answering my questions!
▼Reply
Andriy Moraru Reply:
November 30th, 2015 at 3:27 pm
Some possible reasons:
1) Did you enable AutoTrading?
2) Does your FXCM MT4 account allow opening pending orders with SL and TP? Some brokers only allow setting SL and TP to existing pending orders, not to open pending orders with SL and TP.
3) Does your FXCM MT4 allows opening orders with size 0.11 (can you open it manually)?
▼Reply
Hey Andriy,
1) I have enabled AutoTrading.
2) I was able to manually place a pending order with SL and TP
3) I was able to place an order for 0.11
I think i’ll just switch to another broker. I was wondering if you could tell which broker have you used your script? Thank you!
▼Reply
Andriy Moraru Reply:
December 1st, 2015 at 10:26 am
I can use it with EXNESS and Alpari demo accounts without a problem, but the broker should not be causing any such errors. Could you please replace the line #148 in the code:
with this:
Then compile (F7) and try to run it again in MT4. Then, please tell me what did it output in the Experts tab.
Hopefully, knowing the exact error code I will be able to fix this.
▼Reply
In my PSC-Trader.mq4, Line 148 contains this line:
else Print(“Order executed. Ticket: “, ticket, “.”);
Which is different from the line you just posted above (in my PSC-Trader.mq4, it is showing in Line 147).
I did your instruction but is still not working.
▼Reply
Andriy Moraru Reply:
December 1st, 2015 at 11:52 am
What did it say in the Experts tab this time?
▼Reply
I just reinstalled it and it started working! Your script is great!! Thank you for your fast response!!
▼Reply
Andriy Moraru Reply:
December 2nd, 2015 at 4:17 pm
I am glad that it works for you now!
▼Reply
Hi,
How can I save PSC on my MT4 from the start please, I’m using FXCM demo account.
Thanks a lot.
▼Reply
Andriy Moraru Reply:
January 4th, 2016 at 4:31 pm
What do you mean by “saving PSC”?
▼Reply
Position Size Calculator
▼Reply
Andriy Moraru Reply:
January 5th, 2016 at 9:39 pm
You can save Position Size Calculator by right-clicking on the download link (on this page) with your mouse and choosing ‘Save Link As’. Then you can unzip the downloaded archive and copy the files to /MQL4/Indicators/ of your platform (you can quickly access that folder by clicking File->Open Data Folder from within the platform).
▼Reply
Hi Andriy,
Thanks for sharing your position sizing script & indicator.
I have something very confidential to discuss with you hence, can I please have your email for that purpose?
Regards,
Paras.
▼Reply
Andriy Moraru Reply:
February 25th, 2016 at 9:12 pm
You can contact me via this form:
https://www.earnforex.com/contact/
▼Reply
Hello andrily i have recently installed your psc on my Mt4 but when i try to double click it to run it it just doesn’t seem to work on mt4. it says position size calculator not found then i installed position size as well on script folder. still now working what have i done wrong.
thanks alot
▼Reply
Andriy Moraru Reply:
June 9th, 2016 at 2:28 pm
Position Size Calculator is an indicator and should be installed in Indicators folder. The latest version can be downloaded from this page: https://www.earnforex.com/metatrader-indicators/Position-Size-Calculator
PSC-Trader is a script that is used to open trades based on the output of Position Size Calculator. The script should be installed into Scripts folder. The latest version can be downloaded from here: https://www.earnforex.com/blog/files/PSC-Trader.mq4
PSC-Trader script will not work if Position Size Calculator indicator is not attached to the chart when you run the script on it. It will output “Position Size Calculator not found!” It means that you have to attach Position Size Calculator indicator to the same chart before running the script.
▼Reply
thanks alot for your unconditional support Andriy. i did as you said now its saying stoploss line not found.
Thanks Again
▼Reply
Andriy Moraru Reply:
June 10th, 2016 at 10:16 am
Did you delete it or rename it?
▼Reply
Thanks for such a good indicator.
I want the stop loss based on yesterday’s high or yesterday’s low of the daily candle.
How do I change this on the indicator?
Gary
▼Reply
Andriy Moraru Reply:
May 4th, 2017 at 10:00 am
If we are talking about Position Size Calculator, you just move the stop-loss line to the yesterday’s high or low. Or you can type it into stop-loss field in the panel.
▼Reply
Hi Andriy, does the script work with a zero account balance? Thanks!
▼Reply
Andriy Moraru Reply:
May 17th, 2017 at 8:50 am
That depends on how you set up your Position Size Calculator indicator. If you set some fixed money risk instead of account percentage, then it will calculate a correct position size value. Then, you can use the PSC-Trader script to try opening that position. Now, it all depends on how your broker functions – does it allow opening trades with zero account balance?
▼Reply
i have downloaded the script but i dont know why i cant use it.
▼Reply
Andriy Moraru Reply:
July 4th, 2017 at 7:12 pm
What happens when you try using it? Are you using it together with the Position Size Calculator indicator?
▼Reply
Hi. This is a great tool! Thanks for sharing.
My question is, regarding short positions. Are you going to include in future updates?
▼Reply
Andriy Moraru Reply:
April 20th, 2018 at 7:20 pm
It already works fine with short positions. Did you encounter any specific problems with short trades?
▼Reply
Hi, amazing indicator and script.
Would there be any chance of adding a new option/feature. I always place my stop loss ‘X’ pips above or below a high or low. So say I place the indicator Stop Loss at a high or low, then it adds or subtracts ‘X’ pips before doing the calculation. Hope this makes sense.
▼Reply
Andriy Moraru Reply:
May 20th, 2018 at 2:58 pm
I am not sure if I understand you correctly, but you can move the SL/TP lines wherever you want when using Position Size Calculator.
▼Reply
Neil Reply:
May 20th, 2018 at 4:18 pm
I wanted the indicator too do calculations and enter the SL ‘X’ amount of pips above or below what the SL placement on the chart is. It’s easier when scalping too see and place the SL at a high or low, then the indicator adds or subtracts ‘X’ pips too the SL depending if it’s a buy or sell order. I have managed too modify the source code I think as you made it open source and it looks like it’s doing the correct calculation. Will test when markets are open .
▼Reply
Neil Reply:
May 20th, 2018 at 5:12 pm
My plan rules dictate the SL to be 3.5 pips above a high for a sell order and 3.5 pips below a low for a buy order. It’s easier and quicker when scalping too place the indicator SL at the high or low, instead off finding and placing the SL 3.5 pips higher or lower than a high or low, then make the indicator and script think the SL is actually 3.5 pips higher or lower. Hope this makes sense.
▼Reply
Andriy Moraru Reply:
May 20th, 2018 at 6:02 pm
OK, now I understand. It is easier just to code a script, which when triggered would move the lines to X pips above/below the high/low.
▼Reply
Neil Reply:
May 20th, 2018 at 7:47 pm
If you only change the script, then it pulls the wrong position size calculation from the indicator though. I have managed too change both since my original post.
▼Reply
Andriy Moraru Reply:
May 21st, 2018 at 5:14 am
I did not mean changing the PSC-Trader script. I meant coding a completely separate script, which would adjust the SL and TP lines.
▼Reply
Hi, this is really great thank you!
I installed the script on mt5, and also have the position size calculator, however, when i click on PSC Trader, it says position size calculator not found
▼Reply
Andriy Moraru Reply:
May 20th, 2018 at 3:34 pm
Did you attach the Position Size Calculator indicator to the chart where you try to launch the PSC-Trader script?
▼Reply
Hi!
I want to run the script to place order, but it doesn’t work!
In the experts window, I got this:
PSC-Trader NZDUSD,M15: Execution failed. Error: trade is disabled.
I compiled the script and enabled the AutoTrading. I can also manually place the order, but not with the script.
Another issue is that Position Sizing Calculator settings reset to the default whenever I open it!
I change the settings from the inputs tab (line colour, line style and so on) for position sizing calculator, (even save it) but when I close the calculator and open it again, it reset and I need to either set again or load what I saved before!
Why it does not keep the settings I made?!
▼Reply
Andriy Moraru Reply:
June 22nd, 2018 at 2:24 pm
Regarding PSC-Trader: Could you please make a screenshot of the entire platform with Experts tab open when you try to launch PSC-Trader?
Regarding PSC: The indicator forgets all settings when you close it. There are three ways to overcome this problem:
▼Reply
Sia Reply:
June 22nd, 2018 at 4:56 pm
Here you are:
http://i63.tinypic.com/20aduux.jpg
▼Reply
Andriy Moraru Reply:
June 23rd, 2018 at 10:23 am
Does your broker allow trading with expert advisors? Are you able to open trade with other scripts or EAs? Otherwise, the symbol is closed for trading, but you say that you are able to open the trades manually, so that should not be the case. Most probably, your account type does not allow EA execution.
▼Reply
Hello and thanks for your reply.
A friend of mine with the same broker use this script without any problem!
▼Reply
Andriy Moraru Reply:
June 27th, 2018 at 5:12 am
That could be a difference in the account type or account permissions. Are you able to use other trading scripts or expert advisors in that account? If not, you should contact the broker about the issue.
▼Reply
Hello and many thanks for this great, valuable and useful script.
I want to know how the default value of Entry, SL and TP will be calculated here?
Is it possible to link the SL and TP to the entry price? For instance, whatever Entry price assigned, then SL assigned to be 10 pips (for example) below the entry and TP 15 pips above the entry.
Is this possible?
In addition, Is it possible to assign the Entry 10 pips (for example) above/below the current price by default?
Thanks again.
▼Reply
Andriy Moraru Reply:
July 2nd, 2018 at 5:28 am
The PSC-Trader is meant to be used only with the Position Size Calculator indicator. SL and TP are set using that indicator.
▼Reply
Thanks for your reply.
I know the true reason for the position sizing. I just want to know if this is possible or not?
In this case,
Please kindly let me know how the position sizing assign the default values to the Entry, SL and TP?
In addition, is it possible to assign SL and TP based on Pips distance and not Price?
For instance SL =-10 and TP=15
Thanks again.
▼Reply
Andriy Moraru Reply:
July 2nd, 2018 at 9:37 am
The PSC indicator uses the current candle’s Low for SL when you attach it to the chart. If you set UseFixedSLDistance and UseFixedTPDistance to true, you will be able to set both SL and TP in pips vs. price levels.
▼Reply
Mani Reply:
July 2nd, 2018 at 12:47 pm
Hi again!
I did change the “UseFixedSLDistance” to true and it works perfect.
Just one more question.
Now I should enter the SL as fraction pip and not pip.
For instance, SL=80 results in SL of 8 pips! Am I right?!
In addition, Can I set a default SL to be always, for example, to be 8 Pips rather than set it each time?
Thanks.
▼Reply
Andriy Moraru Reply:
July 2nd, 2018 at 1:25 pm
The pips are set in your broker’s pips. If your broker uses fractional pips, it will be in fractional pips.
There is no way to set the default SL.
▼Reply
Hi all, thanks Andriy for this valuable tools.
I have one question problem and one request.
1. When I run the PSC-trader to place an order, I got this error:
Script PSC-Trader GBPJPY,M15: removed
Script PSC-Trader GBPJPY,M15: removed
PSC-Trader GBPJPY,M15: Execution failed. Error: trade is disabled.
PSC-Trader GBPJPY,M15: Execution mode: SYMBOL_TRADE_EXECUTION_MARKET
or
Script PSC-Trader AUDUSD,M15: removed
PSC-Trader AUDUSD,M15: uninit reason 0
PSC-Trader AUDUSD,M15: Execution failed. Error: trade is disabled.
PSC-Trader AUDUSD,M15: Execution mode: SYMBOL_TRADE_EXECUTION_MARKET
This is the case most of the time, but sometimes it works!!!
I don’t understand why sometimes it places the order and sometimes not! I reinstall the MT4 and positionsizing and its script, but still the same! I am wondering if you know why sometimes my trade is disabled or sometimes enable.
————————————————————————————————————
the position sizing script works perfect when we go long. for the entry, it assigns the high of the current candle.
When we go short, it should assign the low of the current candle (current price) to the current price, however, still high of the candle will be assigned again which is not correct!
Would you kindly either fix this issue or let me know where in the code you assign the entry price, so I can fix it myself and not be taking your time.
Thanks.
▼Reply
Andriy Moraru Reply:
July 3rd, 2018 at 2:12 pm
“Error: trade is disabled.” is caused by your broker turning off either trading for the current symbol completely or just for scripts/EAs. You need to discuss it with your broker.
PSC-Trader script does not work by itself. It works only with the Position Size Calculator indicator. You set Entry, SL, and TP via that indicator.
▼Reply
Ulf Reply:
July 3rd, 2018 at 4:35 pm
Hello!
Would you reply to my second question:
The position sizing script works perfect when we go long. For the entry, it assigns the high of the current candle.
When we go short, it should assign the low of the current candle (current price) to the current price, however, still high of the candle will be assigned again which is not correct!
Would you kindly either fix this issue or let me know where in the code you assign the entry price, so I can fix it myself and not be taking your time.
Thanks.
▼Reply
Andriy Moraru Reply:
July 3rd, 2018 at 4:47 pm
I have answered that question in my previous reply.
▼Reply
Ulf Reply:
July 3rd, 2018 at 11:48 pm
Then I don’t understand your reply. My second question is about PositionSizingCalculater, not Script. On “UseFixedSLDistance” mode and Buy, it works fine. Entry price (Buy @) will be placed at the high of the current candle.
However, when we switch to Sell, SL and TP will be changed as it should. But the Entry price (Sell @) should be shifted to the low of the current candle, but it still remains on the current candle high.
Any solution to this? I think it would be very easy for you to fix it.
However, if you answered this as well, then I am sorry that I don’t understand you. please elaborate.
Thanks.
▼Reply
Andriy Moraru Reply:
July 4th, 2018 at 5:25 am
Why do you believe that Position Size Calculator should switch the Entry price either to candle’s High or Low? The entry price is given by the user. The only time it is set by the indicator is the indicator’s initial attachment because it has to set it somewhere. Switching the Instant order’s type from Buy to Sell should only switch the Entry price from Ask to Bid.
EDIT: If you want to discuss the issues related to the Position Size Calculator indicator, it is better to do so in the dedicated forum thread.
▼Reply
Ciao,
This tool is good but I have two issues that need support on.
First, It places “Buy/Sell Limit” order which is not correct in most of the cases. I want to only place a “Buy/Sell Stop” order. How can I do so?!!
Second, as I saw that pointed out by another user, it should definitely shift the entry to low of the current candle in short positions.
This is very very important.
Grazie.
▼Reply
Hi,
This script and indicator have made my life so much easier, thanks a million.
Have a quick question, it’s not really an enhancement request, I just thought i’d ask here first in case I go down a wrong path.
Do you know if it would be possible for me to edit this script so that when I place a pending order through the script, this pending order will be cancelled if the Stop Loss level is hit before the Entry Level?
Thanks,
Cian
▼Reply
Andriy Moraru Reply:
August 3rd, 2018 at 5:00 am
No. For that, you would need some kind of expert advisor that would be kept attached to the chart and monitor/cancel the orders.
▼Reply
Hello, on the videos it looks like there is an option for ordering directly from the interface with the “buy@” button above the “Entry:” area. is that only for mt5, or is that available for the mt4 version too?
▼Reply
Andriy Moraru Reply:
April 12th, 2019 at 2:23 am
The “Buy @” button switches from Buy order to Sell order when SL and TP are given in pips values and there is no way to move the lines around. It does not open a trade. You can set UseFixedSLDistance to true and the button will appear in both MT4 and MT5.
▼Reply
Toney Reply:
December 16th, 2019 at 12:23 am
mine just shows entry….and if you place a trade it just places only “buy orders”
▼Reply
Andriy Moraru Reply:
December 16th, 2019 at 8:37 am
Move Stop-Loss above the Entry if you want to place a buy order. If the Stop-Loss is placed below the Entry level it assumes the trade is a Buy.
▼Reply
Hello, I greatly appreciate this tool as I am forced to use MT4 (can’t use e.g. Tradingview because of stupid regulation side-effects). I have a few questions:
1:
When an order is placed with the entry/SL/TP lines, the actual entry lines will of course appear on the chart, but they then overlap the calculator/PSC generated lines. I have not been able to drag & drop these PSC lines again because the actually placed entry order lines will take priority. Is there a way to select them with drag & drop without first having to move the real position/order entry lines? (I can’t see a badge or something like that on the vertical scale) I know you can move the lines without effecting the really placed order by changing the values in the calculator, but that requires changing values in 3 fields and is very clumsy compared to drag & drop.
2:
Is there a way to have the SL & TP lines stay at a fixed distance from the entry line when using drag & drop to move the entry, so I don’t have to move all 3 lines every time I want to adjust (and still allow SL & TP to be moved while entry line stays still?).
3:
Is there a way to have the TP automatically move to the opposite side when moving SL across the entry to change order type?
4:
Is there a way to make the PSC lines selectable by default when hiding/showing them, so I don’t have to double click each one before I can move them?
Best Regards.
▼Reply
Andriy Moraru Reply:
March 17th, 2020 at 1:00 pm
1. Tools->Options->Charts, check Use ‘Alt’ key to drag trade levels checkbox.
2. Set UseFixedSLDistance and UseFixedSLDistance to true.
3. If you execute step 2, then it will work that way.
4. I will try to address this in the next version of the indicator.
▼Reply
hello
I try to use PSC script but I have problem
Error: 4112
this error code in all my try
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: initialized
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Detected position size: 0.01.
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Detected entry level: 1490.79.
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Detected entry type: Instant.
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Detected stop-loss level: 1478.00.
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: No take-profit detected.
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Magic number = 0
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Order commentary =
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Disable trading when lines are hidden = false
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Entry line hidden = false
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Max slippage = 30
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Max spread = 50
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Max Entry/SL distance = 0
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Min Entry/SL distance = 0
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Max position size = 0.05
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Subtract open positions volume = false
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Subtract pending orders volume = false
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Execution mode: SYMBOL_TRADE_EXECUTION_MARKET
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: Execution failed. Error: 4112 – unknown error.
2020.03.23 02:46:46.288 PSC-Trader XAUUSD,H1: uninit reason 0
2020.03.23 02:46:46.290 Script PSC-Trader XAUUSD,H1: removed
▼Reply
Andriy Moraru Reply:
March 23rd, 2020 at 10:02 am
Error 4112 means that your broker’s trading server doesn’t allow EAs and scripts to execute trades.
▼Reply
HI, Love the indicator and script and they work flawless. Thank you so much for taking the time to create and share.
I just have one problem, For JPY pairs, the numbers get messed up and I assume this is because JPY pairs generally show 3 digits after the . and this messes up the risk figures etc. I guess you could just add in a higher risk percentage i.e 100 percent risk is generally a 1% risk on a diffrent pair.
But I was just wondering is there a way to fix this , or a setting that I’m missing?
▼Reply
Andriy Moraru Reply:
April 9th, 2020 at 10:41 am
Try setting UseCFDMultiplier and/or DisableTickValueAdjustment to true and see if it helps.
▼Reply
I recently installed your psc on my Mt5, but when I try to double-click it to start it, it just doesn’t work on MT5. he says that the position size calculator was not found, which I did wrong.
many thanks
I attached positionizecalculator_separate to the chart; then added my price parameters. After that, I double-clicked the psc-trader script, but my pending orders are not displayed on the Trade tab. Warning: Position size calculator not found!
What I did not thank you so much.
v_ayun@tut.by
▼Reply
Andriy Moraru Reply:
April 16th, 2020 at 8:26 am
PSC-Trader script works with the latest version of Position Size Calculator indicator (2.27 as of today). Please download and install the indicator. Then attach the indicator to the chart – set up everything via the panel according to your preferences. And only then run the PSC-Trader script. Please let me know if you still encounter any difficulties with it. Thanks!
▼Reply
script Reply:
April 16th, 2020 at 9:38 pm
Accidentally sent an invalid screenshot link
https://drive.google.com/file/d/1EdZZAyIRGDRuj6u52vfIMjNIjHMlregN/view?usp=sharing
▼Reply
Andriy Moraru Reply:
April 17th, 2020 at 5:51 am
It is a typo in the code’s commentary but it doesn’t matter for the script functioning properly. Just make sure that you are using PSC-Trader.mq5 with the latest version of Position Size Calculator for MT5.
▼Reply
hi i want to use psc-trader script but every time i activate that there is an alarm with ‘entry line not found’; i don’t understand, i re-install everything, autotrading is enabled et cetera.
Please help me, what can be the problem?
▼Reply
Andriy Moraru Reply:
January 18th, 2021 at 7:56 pm
Are you using the latest version of PSC-Trader with the latest version of Position Size Calculator? If so, please check if the old chart objects are still on the chart. Press Ctrl+B and remove objects called EntryLine, StopLossLine, TakeProfitLine (without prefixes).
▼Reply
Hello Andriy Moraru,
I thank you for this tool which is promising to make trading life simple, however i have two enquires, if i may sir.
1. I tried to place pending orders using the corresponding PSC trader script but the response is that ENTRY NOT FOUND
2. How can i set up the script such that all TP levels are shown in the chart. I take profits at three levels and with the PSC , only one TP level line is shown.
Once again thank you for this PSC its a blessing for a MT4er Trader
▼Reply
Andriy Moraru Reply:
February 15th, 2021 at 9:22 am
1. Please make sure you are using the latest version of PSC-Trader (1.10) with the latest version of PSC indicator (2.33). Also, make sure that your chart doesn’t contain leftover lines from old versions of PSC (unprefixed “StopLossLine”, “TakeProfitLine”, “EntryLine”).
2. When you set up PSC to work with multiple TPs, you will only see the additional levels on the Script tab, only one TP (first) will be shown on chart as a line. However, executing the PSC-Trader script will yield multiple positions with separate TPs.
▼Reply
Yes its latest version, 2.33
▼Reply
Bald Eagle Reply:
February 15th, 2021 at 11:06 am
Well i think it does not work, i still receive the same error massage
Entry Line not found!
▼Reply
Andriy Moraru Reply:
February 15th, 2021 at 11:24 am
Did you check for the leftover line objects on the chart?
▼Reply
Andriy Moraru Reply:
February 15th, 2021 at 11:24 am
And what about PSC-Trader script. Have you check its version?
▼Reply
Bald Eagle Reply:
February 15th, 2021 at 11:37 am
Yes thank you i have checked and re-installed the latest version from you website. Now it only shows the confirmation window but never places the trades.
The hot keys sometimes and doesnot work other times
▼Reply
Bald Eagle Reply:
February 15th, 2021 at 11:30 am
Yes, thanks, redownloaded the latest Script, now only a confirmation window i see but when placing the trades still no TP lines visible and in my MT4 terminal under the trade tab there are no pending orders set
▼Reply
Andriy Moraru Reply:
February 15th, 2021 at 11:55 am
What error does it return now when you try opening a trade with it?
▼Reply
Bald Eagle Reply:
February 15th, 2021 at 11:58 am
stood blank times
▼Reply
Bald Eagle Reply:
February 15th, 2021 at 11:58 am
remained blank this time
▼Reply
Andriy Moraru Reply:
February 15th, 2021 at 12:02 pm
What do you mean? What was the output in the Experts tab?
▼Reply
Bald Eagle Reply:
February 15th, 2021 at 12:26 pm
Dear Andriy,
With all respect for your work i sincerely thank you for the prompt responses regarding your product. It is now working fine sir. Thank you for your patience and time too.
Please keep the good work up!
Hello, thx for this Calculator, works great, i ask myself how to place a “buy stop limit” or “sell stop limit” order. i use MT5.
is this possible without changing the source code?
if not what do i have to change in the source code to replace enable this?
thx in advance.
best regards
▼Reply
Andriy Moraru Reply:
March 3rd, 2021 at 8:54 pm
Hi Herzl,
Yes, you can switch to Stop Limit order in Position Size Calculator without any code modifications. Just switch the order type – from Instant to Pending and then to Stop Limit.
▼Reply