Turn on-off auto trading programmatically

Questions about MultiCharts and user contributed studies.
FBZ
Posts: 3
Joined: 20 Apr 2020

Turn on-off auto trading programmatically

Postby FBZ » 24 Aug 2020

Hi to everyone,
is it possible to turn on-off auto-trading programmatically thru powerlanguage?

Thanks
Fabrizio

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Turn on-off auto trading programmatically

Postby TJ » 25 Aug 2020

Yes, you can turn off auto-trade.

All you need is a criteria for turning it off, and it will be off.

FBZ
Posts: 3
Joined: 20 Apr 2020

Re: Turn on-off auto trading programmatically

Postby FBZ » 25 Aug 2020

Yes, you can turn off auto-trade.

All you need is a criteria for turning it off, and it will be off.
Could you tell me what code I have to insert?
Thanks

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Turn on-off auto trading programmatically

Postby TJ » 25 Aug 2020

Yes, you can turn off auto-trade.

All you need is a criteria for turning it off, and it will be off.
Could you tell me what code I have to insert?
Thanks
You have to first decide on your criteria for turning off auto-trading.

Time? Price? Volatility? Equity? . . .

FBZ
Posts: 3
Joined: 20 Apr 2020

Re: Turn on-off auto trading programmatically

Postby FBZ » 26 Aug 2020

Yes, you can turn off auto-trade.

All you need is a criteria for turning it off, and it will be off.
Could you tell me what code I have to insert?
Thanks
You have to first decide on your criteria for turning off auto-trading.

Time? Price? Volatility? Equity? . . .
Thanks for the replay, i've already a criteria, based on AVR Trade. What I'd need it's the part of the code to turn on-off the autotrading on power language.

Fabrizio

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Turn on-off auto trading programmatically

Postby TJ » 26 Aug 2020



Could you tell me what code I have to insert?
Thanks
You have to first decide on your criteria for turning off auto-trading.

Time? Price? Volatility? Equity? . . .
Thanks for the replay, i've already a criteria, based on AVR Trade. What I'd need it's the part of the code to turn on-off the autotrading on power language.

Fabrizio
There is no button or keyword that turns auto-trading ON/OFF.
You simply add your criteria to the logic whether you should trade or not.

Here's an example based on a time criteria:

See post #15
viewtopic.php?t=10811


Return to “MultiCharts”