New desktop update allows Indicators to Trade

Created at 18 May 2024, 05:12
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
LO

louisangkq

Joined 11.12.2023

New desktop update allows Indicators to Trade
18 May 2024, 05:12


Hi, the new platform update allows Indicators to Trade. I tried adding ExecuteMarketOrder in an indicator but can't work. How can I add an order command to indicator? Please kindly help. Thanks


@louisangkq
Replies

firemyst
10 Sep 2024, 06:20 ( Updated at: 10 Sep 2024, 07:54 )

Essentially the same way you do it in a cBot as well.

in your C# code you need to call the ExecuteMarketOrder (or relevant) method for placing orders.

See this page for example within an indicator:

https://help.ctrader.com/ctrader-algo/articles/for-developers/how-to-trade-with-ctrader-indicators/#create-an-indicator-with-a-trading-panel

 


@firemyst