Type/to search

BEST Engulfing + Breakout Strategy

RMA
1
Follow
1784
Followers

Hello traders

This is a simple algorithm for a Tradingview strategy tracking a convergence of 2 unrelated indicators.

Convergence is the solution to my trading problems.
It's a puzzle with infinite possibilities and only a few working combinations.

Here's one that I like

  • Engulfing pattern
  • Price vs Moving average for detecting a breakout

Definition

Take out the notebooks :) and some coffee (good for focus). I'm bullish in coffee

The engulfing pattern is a two-candle reversal pattern.
The second candle completely ‘engulfs’ the real body of the first one, without regard to the length of the tail shadows.

The bullish Engulfing pattern appears in a downtrend and is a combination of one red candle followed by a larger green candle
The bearish Engulfing pattern appears in a downtrend and is a combination of one green candle followed by a larger red candle

Example: https://imgur.com/a/krDDUz4

We're bored sir... what's the point of all this?

In summary, an engulfing is a pattern to track reversals. (the whole TradingView audience stands up now giving a standing ovation)
Adding the Price vs Moving average filters allows to track reversals with momentums (half of the audience collapsed because this is too awesome)

Ok sir... you picked up my interest

I included some cool backtest filters:

  • date range filtering
  • flexible take profit in USD value (plotted in blue)
  • flexible stop loss in USD value (plotted in red)

All the best
Dave

backtest

img

Source
Pine
/*backtest
start: 2022-04-24 00:00:00
end: 2022-05-23 23:59:00
period: 30m
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
//@author=Daveatt

StrategyName = "BEST Engulfing + MA"
Strategy parameters
Strategy parameters
Source Price vs MA
Type of MA
MA Length
Backtest Start Year
Backtest Start Month
Backtest Start Day
Backtest Stop Year
Backtest Stop Month
Backtest Stop Day
Backtest Profit Goal (in USD)
Backtest STOP Goal (in USD)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)