Technical Task For Trading Bot Development

Technical Task For Trading Bot Development

Trading Clubs Corporation

General information

To analyse the market situation and conditions for making trading decisions, the bot should use the Fractals indicator with the ability to set its own period (number of bars to search for fractal extrema).

Position opening

 - Trading decisions to open a position should be made with the opening of a new price bar. Inside the current (not yet closed) bar, the bot should not open a new position, as it analyses only the previous bars that have already been closed.

- There should be two options for opening positions (set in the input parameters): for a fractal breakout and for a rebound. A breakout or a rebound will be considered a rise of the maximum or a fall of the minimum of the previous bar above/below the last fractal of a certain period (set in the input parameters). In the case of a fractal breakout - enter in the direction of the breakout, and in the case of opening on the rebound - in the opposite direction relative to the breakout.

- There should also be an input parameter that limits the maximum allowable number of open positions in one direction (buy or sell). This will allow not to open many positions in one direction or there will be such signals.

- If there are already open positions, a new position will be opened with a certain interval (set in the input parameters) relative to the lowest or the highest position already opened. This will allow not to open many positions in one range, but to disperse them.

Position closing

- Open positions can be closed when stop-loss, take-profit levels are reached or when a signal appears to open an opposite position.

- It is necessary to make an input parameter that will determine how the bot will react when a new opposite signal for already open positions appears: do not close open positions, close only profitable ones, close all of them.

Position volume

- The position volume should be fixed (set in the input parameters).

Stop-Loss level

- It is necessary to make an input parameter that determines the type of setting the stop loss level: by ATR indicator; by the previous unbroken fractal.

- Stop loss will have its own period of fractals building (set in the input parameters), which will be different from the one used for opening positions.

- There will also be an input parameter for setting the Stop-Loss level as a multiplier of ATR indicator values.

Take-Profit level

- Input parameter for selecting the type of Take-Profit setting: according to the ATR indicator; relative to the Stop Loss level.

- Input parameter for setting the Take-Profit level as a multiplier of ATR indicator values. That is, the ATR indicator values will be multiplied by this parameter and the take profit value will be determined accordingly.

- Input parameter for setting the Take Profit level as a multiplier of the Stop-Loss value. That is, the Stop Loss value will be multiplied by this parameter and the Take-Profit level will be calculated.

Position identifiers

- Magic number.

- Comment.

Graphical elements

- Fractals built to open/close positions should be drawn on the price chart. In the input parameters there should be a possibility to choose the color for the upper and lower fractals, as well as to choose the thickness of the displayed elements.




Report Page