The strategy is very simple, it is based on the RSI and MACD indicatorsat the beginning we need to obtain data on the time period and the (GET historical candles) themselves with a shift of 1 in order to track the closing data of the previous candle in the future

screen

then get indicator data

screen

RSI time period 7 time frame ( tf) 10min
macd (12.26.9) tf 10min

if the masd signal line is above 0 and the RSI is above 75, a check is triggered for the presence of open buy positions, and if there are any, they must be closed and a sell trade opened and vice versa

screen

checking of open positions occurs in a block; if all open positions are equal to 0, then a market transaction is opened
if there are more than 1 open positions then use position viewer
we get the variable “rev1” and if it is long, this is true, then closing and canceling the positions is applied

after which a market order of 5 million is opened with TP 10 pip

creat output values "sell" and "buy"

which are then tracked in the trading events block to set a stop

screen

after a trading event "buy" or "sell" a trailing stop is set through the position viewing block

this is the basic logic
parameters for opening positions may change depending on the version of the strategy in the direction of increasing the volume and decreasing the time interval to satisfy the results of the technical specifications and the rules of the contest

the 2nd version of the TP 4 points, RSI indicator is 5 minutes MAСD - 10 minutes, chart tf 5 min

Unfortunately I can't attach screenshots
Translate to English Show original