If you want to calculate the lot size for your manual trades, you will need to write a separate script that calculates and sends the order.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I have tried everything, but I am still unable to get this to work. I would like to add the following code that I found elsewhere on this forum
into this existing trailing stop EA
Since I am manually entering the first trade, I then want the EA to take over and calculate the position (lot) size based on account balance. As such, I removed the section regarding SendOrder in the lotsize code and came up with this, but when I place an order it ignores the lotsize calculation and place the order at whatever lotsize setting there is on the MT4 terminal
Will someone please have a look and explain what I need to do so that the EA will automatically calculate my lotsize of my manually entered trades? Thank you. Gary