OPEN-SOURCE SCRIPT
Strategy_502 de FranPineda

**Strategy_502 de FranPineda**
Strategy_502 is a hybrid liquidity-based model that combines two different execution ideas: a 3-hour New York range sweep, an M5 Turtle Soup confirmation, and a structural stop-entry trigger.
The strategy first builds a predefined New York range from **06:00 to 08:59 NY time**. Once the range is completed, it starts tracking the highest high and the lowest low formed by the M5 candles after the range close.
The active entry window is from **09:00 to 12:30 NY time**.
The first requirement is a liquidity sweep of the 3-hour range.
For a **long setup**, price must first take the low of the 3-hour range. After that, the strategy waits for an M5 Turtle Soup confirmation: the current candle must sweep the low of the previous M5 candle, recover back above that level, and close bullish. Once this confirmation appears, the strategy does not enter immediately. Instead, it places a buy stop order at the highest post-range M5 high.
For a **short setup**, price must first take the high of the 3-hour range. After that, the strategy waits for an M5 Turtle Soup confirmation: the current candle must sweep the high of the previous M5 candle, reject back below that level, and close bearish. Once this confirmation appears, the strategy places a sell stop order at the lowest post-range M5 low.
The stop loss is placed beyond the opposite post-range extreme using a configurable buffer.
The take profit is always calculated at a fixed **1:1 risk-to-reward ratio**. It is not limited to the opposite side of the original 3-hour range.
If no pending entry is triggered before **12:30 NY time**, the setup is cancelled and the strategy waits for the next trading day.
If a trade remains open at **16:00 NY time**, the stop loss is moved to break even.
**Core logic:**
* 3-hour New York range: 06:00–08:59 NY.
* Entry window: 09:00–12:30 NY.
* Liquidity sweep of the range high or low.
* M5 Turtle Soup confirmation.
* Pending stop entry at the post-range structural extreme.
* Stop loss beyond the opposite post-range extreme.
* Fixed 1:1 risk-to-reward target.
* Break-even rule at 16:00 NY.
* One trade maximum per day.
* Designed for the M5 timeframe.
The purpose of this strategy is to avoid entering immediately after a liquidity sweep. Instead, it waits for a first reaction through Turtle Soup and then requires price to break the post-range structure before entering. This creates a more selective model focused on liquidity, confirmation, and structural continuation.
Strategy_502 is a hybrid liquidity-based model that combines two different execution ideas: a 3-hour New York range sweep, an M5 Turtle Soup confirmation, and a structural stop-entry trigger.
The strategy first builds a predefined New York range from **06:00 to 08:59 NY time**. Once the range is completed, it starts tracking the highest high and the lowest low formed by the M5 candles after the range close.
The active entry window is from **09:00 to 12:30 NY time**.
The first requirement is a liquidity sweep of the 3-hour range.
For a **long setup**, price must first take the low of the 3-hour range. After that, the strategy waits for an M5 Turtle Soup confirmation: the current candle must sweep the low of the previous M5 candle, recover back above that level, and close bullish. Once this confirmation appears, the strategy does not enter immediately. Instead, it places a buy stop order at the highest post-range M5 high.
For a **short setup**, price must first take the high of the 3-hour range. After that, the strategy waits for an M5 Turtle Soup confirmation: the current candle must sweep the high of the previous M5 candle, reject back below that level, and close bearish. Once this confirmation appears, the strategy places a sell stop order at the lowest post-range M5 low.
The stop loss is placed beyond the opposite post-range extreme using a configurable buffer.
The take profit is always calculated at a fixed **1:1 risk-to-reward ratio**. It is not limited to the opposite side of the original 3-hour range.
If no pending entry is triggered before **12:30 NY time**, the setup is cancelled and the strategy waits for the next trading day.
If a trade remains open at **16:00 NY time**, the stop loss is moved to break even.
**Core logic:**
* 3-hour New York range: 06:00–08:59 NY.
* Entry window: 09:00–12:30 NY.
* Liquidity sweep of the range high or low.
* M5 Turtle Soup confirmation.
* Pending stop entry at the post-range structural extreme.
* Stop loss beyond the opposite post-range extreme.
* Fixed 1:1 risk-to-reward target.
* Break-even rule at 16:00 NY.
* One trade maximum per day.
* Designed for the M5 timeframe.
The purpose of this strategy is to avoid entering immediately after a liquidity sweep. Instead, it waits for a first reaction through Turtle Soup and then requires price to break the post-range structure before entering. This creates a more selective model focused on liquidity, confirmation, and structural continuation.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.