The strategy is based on the stochastic indicator. A signal to buy and
sell - the intersection of the lines of the indicator. The strategy is
symmetrical, transactions are made in both directions. Fixed profit
and loss levels.
The signal is the intersection of the long and short lines of the
stochastic indicator with a period of 8 and 3, respectively. An
additional trend filter is the closing price of the last hourly
candle. The strategy works on a pair of GBP / USD with stop loss and
take profit of 20 points.
The logic of the strategy: 1 block - checking open positions, if there
are none - then, 2 block - stochastic indicator data for the last time
interval, 3 block - stochastic indicator data for the penultimate time
interval, 4 block - hourly candle data, 5-9 blocks - checking
conditions for opening a position: if slow K is less than slow D for
the last time interval and slow K is greater than slow D for the
penultimate time interval, and the last bid price is less than the
closing price of the last hourly candle, a purchase opens (block 10),
in the opposite case, a sale opens (block 11).