Help code for EMA and RSI bot

Created at 19 Apr 2021, 11:02
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!
F.

F.I.R.E.36

Joined 19.04.2021

Help code for EMA and RSI bot
19 Apr 2021, 11:02


Hi everyone

I am very new to programming but would like to try understand the basics. Saying that I wonder if someone to could help me by posting a code that creates a cbot to do the following.

1. Using EMA14, 34 and RSI (RSI high = 65, RSI low = 35) for a bot

2. If market price close > EMA14 and EMA34<EMA14 and long position ==null and RSI <= RSI High

=> Open a market order Buy

3. If Market close price <= EMA 14 and long position != null

=> Close long position

4. If Marker price close < EMA34  and EMA 34 > EMA14  and short position == null  and RSI > RSI low

=> Open a market order Sell

5. If Market price close >=EMA 34 and short position != Null

=> Close short position

Thank you for your help


@F.I.R.E.36
Replies

amusleh
19 Apr 2021, 11:36

Hi,

Please post a job request or ask one of our consultants to develop your cBot for you.


@amusleh