It could be just a temporary problem. Otherwise, I suggest you to add Sleep(3000); after the line 296 in PSC-Trader.mq5. It will make the script wait before trying to modify the position; meanwhile the position will most likely get opened already.
Yes, Exactly.Do you mean that the script should take a smaller position if there is already an existing position or pending order in the same currency pair?
For example, if the calculated position size is 1 lot EUR/USD, and you already have 0.5 Buy open trade, the script would only buy 0.5 lot more?
No. if suppose the already taken lot size is greater than current risk then the "Position size" = 0 so the PSC will not take any ordersWhat happens if the calculated size is 1 lot and you already have 1.1 lot? Should it close the order (1.1) and open a new one (1.0)?
No dude, already you programmed excellently for that when we put the SL line it's automatically calculating whether it should take order buy,sell,pending buy, pending sell. so It should calculate the according to thatShould it open a bigger position if there is an opposite trade? E.g. calculated size is 1 lot Buy, and you have 1 lot Sell. Should it open a 2 lots Buy?
You misunderstood what I wrote. If the new checkbox is implemented, and you check it, and you already have 1 lot Sell position, but the PSC has calculated 1 lot Buy position, should the script open a 2 lots Buy position to compensate for that 1 lot Sell, so that the net total is 1 lot Buy?No dude, already you programmed excellently for that when we put the SL line it's automatically calculating whether it should take order buy,sell,pending buy, pending sell. so It should calculate the according to that
you mean If suppose I changed my mind for the trend reverse?. No it should not buy 2 lots buy. it should open only 1 lot buy.You misunderstood what I wrote. If the new checkbox is implemented, and you check it, and you already have 1 lot Sell position, but the PSC has calculated 1 lot Buy position, should the script open a 2 lots Buy position to compensate for that 1 lot Sell, so that the net total is 1 lot Buy?
Yeah, That's right.So to summarize it all, the new checkbox will only affect the new position size when the direction of the current trade. And if the current trade's size is already equal or greater than the calculated size, the new checkbox will make the script skip the trade. Right?
OK, I'll see what I can do.Yeah, That's right.
Should be working now.I could not see the smiles
I will consider adding this feature.Could it be possible in the script tab to add a check or input so that one can select if they want their trade to be split in different orders? (eg. if i put 2 as input then a trade calculated to have a 1 lot size will be split into 2 0.5lot orders with the same Entry,SL and TP)
I don't think it would be a good idea to add such a rarely used field to the panel. Did you try saving the Additional Funds value via chart templates?Another thing that I find useful is to have a way to change easily the "additional funds" amount as have to change between account with different amounts or currencies and its too slow to re-aply the indicator with the new account additional funds value. (I tried using different profiles but since the indicator saves the parameters they get carried over to the profile I i change it)
It should already work like that. Could you please provide an example where it does not work?Also, a small improvement could be that the max lot size limits the trade lot size to that amount instead of reject orders that are larger than that number (so, instead of not opening an order if calculated lot size > max lot size, to simple if calculated lot size > max lot size then trade lot size = max lot size)
I have solved it, but I have not released a new version yet. I would like to finish working on other issues in PSC before uploading the next version.(also, have you solved the issue with the R:R and profit calculations in the release version, some time back I uploaded here a version that solved the calculations errors for the R:R and profit calculations)
I will consider adding this feature.
I don't think it would be a good idea to add such a rarely used field to the panel. Did you try saving the Additional Funds value via chart templates?
It should already work like that. Could you please provide an example where it does not work?
I have solved it, but I have not released a new version yet. I would like to finish working on other issues in PSC before uploading the next version.
I have solved it, but I have not released a new version yet. I would like to finish working on other issues in PSC before uploading the next version.
"Max position size — the script will not trade if calculated position size exceeds this value (in lots)."
Lastly, do you have a way in which i can donate to this project. It has been of great use in my trading and would like to give back some appreciation.
I was using it in a test account with really strict parameters that only allowed a certain amount of lots opened, so even if I was using my standard risk% the lot size sometimes went over the lot limit and I had to manually adjust till the lot size was the limit. That is why I thought of that. I actually have never had a situation in which an error made the lot size to large, but it makes sense as a protective measure for those cases.Though I understand the usefulness of opening the maximum position size trade instead of just skipping it.
I have to say thanks for the great tools you have here and I am definitely sharing the site and tolls with my friends. (in fact I am presenting tomorrow at a traders meetup and your tools are an example i will use)The best way to express your appreciation of the tools we provide is to tell your friends about it.