Hi All Coders,
I am asking your help in creating a trade execution script.
Here's what i want:
Assuming i have balance (regardless of currency) of 1,345,000 in my account.
When i double click the BUY (same for SELL) script, it should do the following:
1. To arrive the trading lot size, the script should divide the balance in the account by 10,000. Using the above example, the trading lot size should be 1,345,000 / 10,000 = 134.50 standard lots. However, my broker's max trading lot size per trade is 100.00 lots. Therefore, the script should be able to divide the total lot size into two equal trades (divisible by 2), if the total trading lot size is greater than 100.00 lots. So the script should send two (2) trades of 67.25 lots each.
2. After successful execution of trades, the script would immediately put stop loss of, for example, 5% of balance in terms of pips. The script should give me the freedom of adjusting the risk % to my liking.
Really hope that someone out there can do this trade execution script for me, for free
I am asking your help in creating a trade execution script.
Here's what i want:
Assuming i have balance (regardless of currency) of 1,345,000 in my account.
When i double click the BUY (same for SELL) script, it should do the following:
1. To arrive the trading lot size, the script should divide the balance in the account by 10,000. Using the above example, the trading lot size should be 1,345,000 / 10,000 = 134.50 standard lots. However, my broker's max trading lot size per trade is 100.00 lots. Therefore, the script should be able to divide the total lot size into two equal trades (divisible by 2), if the total trading lot size is greater than 100.00 lots. So the script should send two (2) trades of 67.25 lots each.
2. After successful execution of trades, the script would immediately put stop loss of, for example, 5% of balance in terms of pips. The script should give me the freedom of adjusting the risk % to my liking.
Really hope that someone out there can do this trade execution script for me, for free
ç¦ å Victor V