OPEN-SOURCE SCRIPT
Hard Entry & Exit Rules

A strategy built with a considerable amount of help with Claude.Ai.
This indicator/strategy takes a known profitable one and is intended to remove the "human" element to entries and exits, my biggest issue that prevents me from being profitable.
I know what I need to do, but emotion gets the better of me.
By doing this, I hope to reduce the amount of bad trades I take and take emotion out of the equation (or at least remove a considerable amount), with hard rules of when to get in and get out.
This is intended to be tied hand in hand with options trading, and on timeframes 3 minutes to 15 minutes.
It identifies where to enter based and exit on the close of the candles, with a hard stop of the 20ema.
It assumes you take more than 1 share/contract, with 50% being trimmed at the new high/low of day (depending on your direction) and the remaining 50% being trimmed once it crosses under a key level (PDH/PDL, PMH/PML) or the 8ema (or tapping the 20 ema).
It's also time based, and by default only trades in the first hour of the day. This can be changed in the settings.
Human judgement is still required.
Version 1
This indicator/strategy takes a known profitable one and is intended to remove the "human" element to entries and exits, my biggest issue that prevents me from being profitable.
I know what I need to do, but emotion gets the better of me.
By doing this, I hope to reduce the amount of bad trades I take and take emotion out of the equation (or at least remove a considerable amount), with hard rules of when to get in and get out.
This is intended to be tied hand in hand with options trading, and on timeframes 3 minutes to 15 minutes.
It identifies where to enter based and exit on the close of the candles, with a hard stop of the 20ema.
It assumes you take more than 1 share/contract, with 50% being trimmed at the new high/low of day (depending on your direction) and the remaining 50% being trimmed once it crosses under a key level (PDH/PDL, PMH/PML) or the 8ema (or tapping the 20 ema).
It's also time based, and by default only trades in the first hour of the day. This can be changed in the settings.
Human judgement is still required.
Version 1
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.