INVITE-ONLY SCRIPT
Optimized Engulfing Strategy

Optimized Engulfing Strategy
The Optimized Engulfing Strategy is a trend-following system designed to capitalize on bullish and bearish engulfing patterns in the market. It uses a combination of price action, trend direction, and volatility-based risk management to execute high-probability trades.
Key Components:
Bullish Engulfing Pattern:
A bullish engulfing candle is identified when:
The current candle closes above its open (bullish).
The previous candle closes below its open (bearish).
The current candle's close is higher than the previous candle's open.
The current candle's open is lower than the previous candle's close.
This pattern signals potential bullish momentum.
Bearish Engulfing Pattern:
A bearish engulfing candle is identified when:
The current candle closes below its open (bearish).
The previous candle closes above its open (bullish).
The current candle's close is lower than the previous candle's open.
The current candle's open is higher than the previous candle's close.
This pattern signals potential bearish momentum.
Trend Confirmation:
Trades are only taken in the direction of the trend:
Buy: When the 50-period SMA (simple moving average) is above the 200-period SMA, indicating an uptrend.
Sell: When the 50-period SMA is below the 200-period SMA, indicating a downtrend.
Risk Management:
Stop Loss: Placed below the low of the engulfing candle (for buys) or above the high (for sells), with an additional buffer based on the ATR (Average True Range) multiplied by a user-defined factor (default: 1.5).
Take Profit: Calculated using a fixed risk-to-reward ratio (default: 1:2), ensuring a potential reward that is double the risk.
Session Filtering:
Trades can be limited to specific trading hours using a customizable session filter (default: 24 hours).
Trade Execution:
Separate logic is implemented for buy and sell trades, allowing independent toggling of long or short positions via user inputs.
Visualization:
Bullish and bearish engulfing candles are highlighted on the chart for clarity.
The ATR value is displayed in the top-right corner of the chart for reference.
How It Works:
Identify a bullish or bearish engulfing pattern.
Confirm the direction of the trend using the 50 SMA and 200 SMA.
Ensure the market is within the allowed session filter (e.g., London or New York sessions).
Enter a trade if all conditions are met:
Long trades for bullish engulfing patterns in an uptrend.
Short trades for bearish engulfing patterns in a downtrend.
Manage the trade using a stop loss and take profit based on ATR and the risk-reward ratio.
The Optimized Engulfing Strategy is a trend-following system designed to capitalize on bullish and bearish engulfing patterns in the market. It uses a combination of price action, trend direction, and volatility-based risk management to execute high-probability trades.
Key Components:
Bullish Engulfing Pattern:
A bullish engulfing candle is identified when:
The current candle closes above its open (bullish).
The previous candle closes below its open (bearish).
The current candle's close is higher than the previous candle's open.
The current candle's open is lower than the previous candle's close.
This pattern signals potential bullish momentum.
Bearish Engulfing Pattern:
A bearish engulfing candle is identified when:
The current candle closes below its open (bearish).
The previous candle closes above its open (bullish).
The current candle's close is lower than the previous candle's open.
The current candle's open is higher than the previous candle's close.
This pattern signals potential bearish momentum.
Trend Confirmation:
Trades are only taken in the direction of the trend:
Buy: When the 50-period SMA (simple moving average) is above the 200-period SMA, indicating an uptrend.
Sell: When the 50-period SMA is below the 200-period SMA, indicating a downtrend.
Risk Management:
Stop Loss: Placed below the low of the engulfing candle (for buys) or above the high (for sells), with an additional buffer based on the ATR (Average True Range) multiplied by a user-defined factor (default: 1.5).
Take Profit: Calculated using a fixed risk-to-reward ratio (default: 1:2), ensuring a potential reward that is double the risk.
Session Filtering:
Trades can be limited to specific trading hours using a customizable session filter (default: 24 hours).
Trade Execution:
Separate logic is implemented for buy and sell trades, allowing independent toggling of long or short positions via user inputs.
Visualization:
Bullish and bearish engulfing candles are highlighted on the chart for clarity.
The ATR value is displayed in the top-right corner of the chart for reference.
How It Works:
Identify a bullish or bearish engulfing pattern.
Confirm the direction of the trend using the 50 SMA and 200 SMA.
Ensure the market is within the allowed session filter (e.g., London or New York sessions).
Enter a trade if all conditions are met:
Long trades for bullish engulfing patterns in an uptrend.
Short trades for bearish engulfing patterns in a downtrend.
Manage the trade using a stop loss and take profit based on ATR and the risk-reward ratio.
초대 전용 스크립트
오써가 승인한 유저만 이 스크립트에 액세스할 수 있으며, 이를 위해서는 일반적으로 결제가 필요합니다. 이 스크립트를 즐겨찾기에 추가할 수는 있지만 오써에게 권한을 요청하여 권한을 얻은 뒤에야 쓸 수 있습니다 - 여기에서 자세히 알아보세요. 자세한 내용은 아래 오써의 안내를 따르거나 jcrewzn에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
send an email to jcrewzn@gmail.com
경고: 액세스를 요청하기 앞서 초대 전용 스크립트에 대한 가이드를 읽어주세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
초대 전용 스크립트
오써가 승인한 유저만 이 스크립트에 액세스할 수 있으며, 이를 위해서는 일반적으로 결제가 필요합니다. 이 스크립트를 즐겨찾기에 추가할 수는 있지만 오써에게 권한을 요청하여 권한을 얻은 뒤에야 쓸 수 있습니다 - 여기에서 자세히 알아보세요. 자세한 내용은 아래 오써의 안내를 따르거나 jcrewzn에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
send an email to jcrewzn@gmail.com
경고: 액세스를 요청하기 앞서 초대 전용 스크립트에 대한 가이드를 읽어주세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.