I need help creating a simple bot
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…
Replies
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
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