Trade System Base [InsightEdge]

Trade System Base [InsightEdge]
Starter chart script for the published Trade System library (InsightEdge / TradeSystem / 1).
This indicator does not generate its own setups. You replace the signal block with your rules. The library then creates limit orders, monitors fills and exits, draws risk boxes, and updates the trade table.
═══════════════════════════════════════
HOW TO USE
═══════════════════════════════════════
1. Add this script to your chart.
2. Open the source and find the YOUR SIGNAL section.
3. Set createBuy / buyEntry / buyStop and createSell / sellEntry / sellStop from your logic.
4. Keep this order every bar: create (or cancel) → monitor → updateTable.
5. Tune Window, Trade Monitor, Orders, Trade Table, and Fill Label in the settings.
The script imports:
import InsightEdge/TradeSystem/1 as ts
The library must already be published under InsightEdge. If you use a fork under another account, change only the username in that import.
═══════════════════════════════════════
WHAT THE LIBRARY DOES
═══════════════════════════════════════
• Creates limit buys and sells from the prices you pass in
• Buy fills when a later bar trades down to entry; sell fills when a later bar trades up to entry
• The create bar itself cannot fill
• Monitors stop, 1R / 2R / 3R targets, optional break-even, expiry, and max-stop skip
• Draws waiting and open trade boxes, entry/stop/target lines, and optional fill labels
• Builds a configurable stats table (created, filled, win rate, P/L model, and more)
═══════════════════════════════════════
ENTRY AND STOP MODEL
═══════════════════════════════════════
• Buy entry = entry + entry buffer
• Sell entry = entry − entry buffer
• Buy stop = stop − stop buffer
• Sell stop = stop + stop buffer
• Invalid risk (distance ≤ 0) is skipped and not monitored
• Dollar rows use the script’s lot-size model; they are not a broker statement
═══════════════════════════════════════
TRADE MONITOR
═══════════════════════════════════════
Fills, stops, and targets are tested on the Trade Monitor timeframe. Leave it blank to use the chart timeframe. Turn Use Unfinished Candle on to include the forming monitor bar, or off to wait for that bar to close.
═══════════════════════════════════════
NOTES
═══════════════════════════════════════
• One create per side per bar
• create and cancel for the same side should not both be true on one bar
• Results are a model of these rules, not live broker fills
• For education and research only. Past results do not guarantee future results.
Author: InsightEdge
Library: InsightEdge/TradeSystem/1
Version: Base template 1.0.0
Starter chart script for the published Trade System library (InsightEdge / TradeSystem / 1).
This indicator does not generate its own setups. You replace the signal block with your rules. The library then creates limit orders, monitors fills and exits, draws risk boxes, and updates the trade table.
═══════════════════════════════════════
HOW TO USE
═══════════════════════════════════════
1. Add this script to your chart.
2. Open the source and find the YOUR SIGNAL section.
3. Set createBuy / buyEntry / buyStop and createSell / sellEntry / sellStop from your logic.
4. Keep this order every bar: create (or cancel) → monitor → updateTable.
5. Tune Window, Trade Monitor, Orders, Trade Table, and Fill Label in the settings.
The script imports:
import InsightEdge/TradeSystem/1 as ts
The library must already be published under InsightEdge. If you use a fork under another account, change only the username in that import.
═══════════════════════════════════════
WHAT THE LIBRARY DOES
═══════════════════════════════════════
• Creates limit buys and sells from the prices you pass in
• Buy fills when a later bar trades down to entry; sell fills when a later bar trades up to entry
• The create bar itself cannot fill
• Monitors stop, 1R / 2R / 3R targets, optional break-even, expiry, and max-stop skip
• Draws waiting and open trade boxes, entry/stop/target lines, and optional fill labels
• Builds a configurable stats table (created, filled, win rate, P/L model, and more)
═══════════════════════════════════════
ENTRY AND STOP MODEL
═══════════════════════════════════════
• Buy entry = entry + entry buffer
• Sell entry = entry − entry buffer
• Buy stop = stop − stop buffer
• Sell stop = stop + stop buffer
• Invalid risk (distance ≤ 0) is skipped and not monitored
• Dollar rows use the script’s lot-size model; they are not a broker statement
═══════════════════════════════════════
TRADE MONITOR
═══════════════════════════════════════
Fills, stops, and targets are tested on the Trade Monitor timeframe. Leave it blank to use the chart timeframe. Turn Use Unfinished Candle on to include the forming monitor bar, or off to wait for that bar to close.
═══════════════════════════════════════
NOTES
═══════════════════════════════════════
• One create per side per bar
• create and cancel for the same side should not both be true on one bar
• Results are a model of these rules, not live broker fills
• For education and research only. Past results do not guarantee future results.
Author: InsightEdge
Library: InsightEdge/TradeSystem/1
Version: Base template 1.0.0
Request invite-only indicators access at insightedgefx.com/indicators
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
Request invite-only indicators access at insightedgefx.com/indicators
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。