Trading Signal for AAPL - Statistical Odds
OLTO Trading Mentor1. Signal
β¬ Signal type: Long
π² Probability: 60.29%
π Name: Exit from a narrowing range up
β Instrument: Apple (AAPL)
π Timeframe: D1
β° Current time (America/New York): 2021-08-12 10:33:43
π Current price: 147.68 USD
π Optimal maximum holding period: until 2021-08-15 (3 days)
β Optimal Stop Loss: 140.71 USD (3.0 ATR)
β Optimal Take Profit: 154.66 USD (1.0 stop loss volume)

2. What does "Exit from a narrowing range" signal mean?
Exit from a narrowing range: The range of the last candle is completely inside the range of the penultimate one and the price moves out of this range up or down.

3. Statistical Odds for "Exit from a narrowing range" signal
3.1. Search for the optimal maximum position holding period for AAPL
For the generated signal, we conducted an MFE/MAE test (see definition here) in order to understand the most advantageous position holding time (in days), if this signal is followed. The higher the values of the MFE/MAE curve of 1, the more chances of getting the greatest return in relation to risk for a given position holding time (in days).
The maximum value of the MAE/MAE curve (see the figure below) corresponds to the duration of holding an open position for 3 days.

3.2. Probability of a positive signal outcome for AAPL
We found all the same signals in the period from 2000-01-06 to 2021-08-10 (there were 277 of them) and calculated the probability of positive outcomes after 3 day(s) and other characteristics in case of following such signals.
π Total number of signals: 277
π² Probability of positive outcomes: 60.29%
π Signal average profit: 3.03%
π Signal average loss: -2.536%
π Signal average return (expectancy): 0.82%
3.3. What happened to the AAPL price after generating the same signals in the past?
We generated 10 of the same signals in the past and tried to simulate what happened to the price for the next day, the next 2 days, 3 days, 1 week, 2 weeks, 1 month and 3 months (price change as a percentage of the price value at which the signals were generated). From the table below, you can see that 10 signals were generated during the period from 2020-08-31 to 2021-07-22. Green blocks mean that the price has increased over a certain period. Red blocks mean that the price has decreased over a certain period. The percentage of price change is indicated inside the cell.

We also generated 10 trajectories with a duration of 10 days of AAPL price movement after each of the 10 signals was generated (see the picture below). The red line is the average for all such trajectories and describes how the AAPL price has changed on average after generating the same signals in the past.

3.4. Optimal stop loss and take profit for the signal
We tested the AAPL for the period from 2000-01-06 to 2021-08-10 to find the best combination of stop loss and take profit levels for the βExit from a narrowing rangeβ signal.
We used 2 models for setting a stop loss: by the size of the candlestick pattern, relative to which the signal is generated, and by ATR (Average True Range). The stop loss level is additionally varied by multiplying its size by a coefficient from the interval from 0.5 to 3.5. The take profit level is calculated relative to the size of the stop loss and additionally varies by multiplying the size of the stop loss by a coefficient from the interval from 0.5 to 5.
The criterion for the optimal combination of stop loss and take profit was maximization of the average return on the signal for the period from 2000-01-06 to 2021-08-10.
For the model of setting a stop loss relative to the size of the signal candlestick pattern, we got the following result:

For the model of setting a stop loss relative to the ATR value at the signal generation point, we got the following result:

The tests showed that we will get the following optimal parameters
β΄ The best stop volume model: ATR
π Average signal return: 0.871%
β Optimal stop loss ratio: 3.0
β Optimal take profit ratio: 1.0
3.5. Same Stop and Take Profit Test
See "Same Stop and Take Profit Test" definition here: Same Stop and Take Profit Test
For the generated signal, we additionally carried out the "Same Stop and Take Profit Test". We have modeled the percentage of profitable trades when placing a protective stop order and take profit at the same distance from the signal generation point. For testing, we used 2 types of stop order distance from the signal generation point, multiplied by a factor from 0.5 to 3.5 with a step of 0.5: a distance equal to the size of the candlestick pattern and a distance equal to the ATR for the AAPL instrument at the moment of signal generation.
