Termos de Referência
Lotsize Manipulator:
Write a simple program that will calculate how many times 25$ unit of fund will open a trade with the lotsize of 0.01 in the balance of 100$. Eg, the 25$unit of fund will open trade 4 times with the 100$ user balance using the lotsize of 0.04.
Consider these pre-requisite statements in your coding:
1. Lotsize Conversion behaviour.
1A. If balance is 26$ Lotsize Conversion is to be 0.01 because 6$ is below a set of fund unite.
1B. Then if 58$ Lotsize Conversion is to be 0.02 because 8$ is below a set of fund unite.
1C. Then if 95$ Lotsize Conversion is to be 0.03 because 20$ is below a set of fund unite.
1D. Finally, if trade balance is at 50$ Lotsize Conversion is to be 0.02 at dot.
1E. Do same at 100$ where the Lotsize Conversion is to be 0.04 at dot
1F. Do same at 150$ where the Lotsize Conversion is to be 0.06 at dot.
2. Allow user to adjust 25$ unit of fund and lotsize
3. Lotsize conversion: 0.04 (get automatic)
4. Number of open trade: 4 (get automatic)
5. User balance: 100$ (get automatic)
6. Disable any trade by user if the lotsize is greater than the program Lotsize Conversion.
7. Recognize chart symbol: Current
8. Disable any user trade order that does not match the Current program Recognize Chart Symbol.
9. In 2 second’s auto-place a Stoploss: 100 and Takeprofit: 100 order whenever user opens a trade. Allow user to adjust/modify Stoploss and Takeprofit parameter.
10. At daytime ignore to open a trade if balance increase to 1$ and above.
11. By daytime ignore to open a trade if balance decreases to 3$ and above.
12. If trade balance is below 25$ ignore to open a trade.
13. Report number of open trade into csv file. (example)