I need help creating a simple bot

Created at 24 Nov 2023, 18:52
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!
RA

ralfyussefchuluc

Joined 24.11.2023

I need help creating a simple bot
24 Nov 2023, 18:52


I would like a BOT that makes trades only on buying (up) whenever the candle breaks the previous candle. On renko chart.

The stop loss and take profit would be in pips.

Can anyone help me with this ? Or recommend a similar model...

 

Thanks…


@ralfyussefchuluc
Replies

PanagiotisChar
25 Nov 2023, 06:16

Reply to: I need help creating a simple bot

Hi there,

If you wish to have someone develop this for you, you can contact me at development@clickalgo.com

Best regards,

Panagiotis


@PanagiotisChar

Shares4UsDevelopment
05 Dec 2023, 08:41

first define what you mean with breaking.
Closes above previous close,
Price passes above previous close,
Opens above previous close,
3 consecutive priceticks are above previous close,
…….

Than look at the ctrader guide of making cBots and fit your condition like:

var PrevClose = Bars.Last(1).Close;
if (Symbol.Bid > PrevClose) 
    ExecuteMarketOrder(TradeType.Buy, SymbolName, 1000,"", StopLossPips, TakeProfitPips)


or something like :

if (Bars.LastBar.Close > PrevClose) 
    ExecuteMarketOrder(TradeType.Buy, SymbolName, 1000,"", StopLossPips, TakeProfitPips)

or anyother condition you can come up with

 


@Shares4UsDevelopment