How to set chart trading quantity in code

Questions about MultiCharts and user contributed studies.
wzero
Posts: 199
Joined: 10 Jul 2014
Has thanked: 16 times
Been thanked: 15 times

How to set chart trading quantity in code

Postby wzero » 22 Apr 2021

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?
charttading.png
(19.97 KiB) Not downloaded yet

User avatar
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

Postby Kate MultiCharts » 26 Apr 2021

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:

Code: Select all

Buy 101 Contracts Next Bar market;
If the orders are sent without the Contracts keyword, the specified Trade Size ( Strategy Properties -> Properties tab -> Trade size) is used.


Return to “MultiCharts”