How to set chart trading quantity in code
How to set chart trading quantity in code
I want to write code to automatically set chat trading quantity for Multicharts and Multicharts.NET (see the attached screen shot). Anyone know which API/function call can be used for this purpose?
- Kate MultiCharts
- Posts: 593
- Joined: 21 Oct 2020
- Has thanked: 9 times
- Been thanked: 148 times
Re: How to set chart trading quantity in code
Hello wzero,
You can refer to the Contracts keyword in our Wiki or in the PoweLanguage Editor to create a signal to send the required amount of contracts.
For example, to send 101 contracts:
If the orders are sent without the Contracts keyword, the specified Trade Size ( Strategy Properties -> Properties tab -> Trade size) is used.
You can refer to the Contracts keyword in our Wiki or in the PoweLanguage Editor to create a signal to send the required amount of contracts.
For example, to send 101 contracts:
Code: Select all
Buy 101 Contracts Next Bar market;