The strategy is set up for trading the EUR/USD pair.
Periods: Hourly and 15-minute candles are used for market analysis.
Receiving the latest ticks and candles: The strategy retrieves the
latest tick and candle data (Bid and Ask) to analyze the current
market state.
Trading logic:
Conditions for opening positions:
If the closing price of the 15-minute candle with a shift of 1 is
below the opening, a short position (SELL) is opened.
If the closing price is above the opening, a long position (BUY) is
opened.
Take profit is set at 6 pips.