Add TP to my Cbot

Created at 10 Mar 2024, 14:58
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!
WassTima's avatar

WassTima

Joined 07.03.2024

Add TP to my Cbot
10 Mar 2024, 14:58


Hello. How do I add a TP and SL to the EMA average crossover Cbot please? I am new to coding and not sure where to add it


@WassTima
Replies

PanagiotisCharalampous
11 Mar 2024, 08:32

Hi there,

You can pass stop loss and take profit as a parameter to the ExecuteMarketOrder method.

Best regards,

Panagiotis


@PanagiotisCharalampous