Reference Instrument Trend Strategy Diagram
Русский | 中文 | Español | Deutsch | Português | 日本語
This diagram first synchronizes finished five-minute BTCUSDT@BNBFT and TONUSDT@BNBFT candles, then trades exact BTC EMA crossovers when the TON EMA trend confirms the same direction. Position and cooldown gates filter each decision, and two fixed-volume market-order paths manage exposure.
Strategy Overview
- The Sync block receives the two finished five-minute candle streams with Interval
00:05:00and ClearSockets enabled. It emits an aligned BTC–TON pair only when both candles are present; an incomplete interval is discarded when either candle is missing. - Each aligned pair then feeds BTC fast EMA 7 and slow EMA 18, and TON fast EMA 47 and slow EMA 50. Formed-only filtering is disabled for all four indicators.
- A BTC upward crossover requires
PrevFast <= PrevSlowandFast > Slow; a downward crossover requiresPrevFast >= PrevSlowandFast < Slow. The current TON relation confirms buys withFast > Slowand sells withFast < Slow. - The buy path additionally requires
Position <= 0, while the sell path requiresPosition >= 0. Both paths submitNoConditionmarket orders with fixed Volume 1. - The first five synchronized BTC–TON pairs are blocked, and every order signal blocks the next five synchronized pairs; the sixth aligned pair is eligible again. There is no stop-loss, take-profit, or separate exit block, and the chart displays BTC candles, both BTC EMAs, and both fill streams.
Entry and Exit Rules
- Long entry: When BTC satisfies
PrevFast <= PrevSlowandFast > Slow, TON currently hasFast > Slow, the synchronized position check isPosition <= 0, and the cooldown is ready, the diagram submits a market buy with Volume 1. - Short entry: When BTC satisfies
PrevFast >= PrevSlowandFast < Slow, TON currently hasFast < Slow, the synchronized position check isPosition >= 0, and the cooldown is ready, the diagram submits a market sell with Volume 1. - Exit: There is no dedicated exit or protection block. A later eligible order in the opposite direction reduces exposure; from a position of
+1or-1, the fixed Volume 1 order brings the position to zero rather than opening the opposite side.
Parameters
| Parameter | Default | Description |
|---|---|---|
| Main Fast EMA | 7 | Period of the fast ExponentialMovingAverage calculated from finished five-minute BTCUSDT@BNBFT candles; formed-only filtering is disabled. |
| Main Slow EMA | 18 | Period of the slow ExponentialMovingAverage calculated from finished five-minute BTCUSDT@BNBFT candles; formed-only filtering is disabled. |
| Reference Fast EMA | 47 | Period of the fast ExponentialMovingAverage calculated from the aligned finished five-minute TONUSDT@BNBFT candle; formed-only filtering is disabled. |
| Reference Slow EMA | 50 | Period of the slow ExponentialMovingAverage calculated from the aligned finished five-minute TONUSDT@BNBFT candle; formed-only filtering is disabled. |
| Cooldown Bars | 5 | Number of initial and post-signal synchronized candle pairs blocked before the next aligned pair becomes eligible. |
| Volume | 1 | Fixed quantity supplied to both NoCondition market-order blocks. |
Diagram Details
- Two Candles blocks emit finished five-minute candles for BTCUSDT@BNBFT and TONUSDT@BNBFT directly into synchronization.
- The Sync block aligns the two candle inputs with Interval
00:05:00and ClearSocketstrue. It releases both candles as one pair; if either side is absent, that incomplete interval is cleared without entering the indicator chain. - Only the synchronized pair feeds four Indicator blocks: ExponentialMovingAverage 7 and 18 for BTC and 47 and 50 for TON. Their formed-only option is
false, while only the two BTC EMA outputs are also sent to the chart. - Previous value blocks retain the prior synchronized BTC fast and slow EMA values. Comparison blocks express both sides of each exact crossover and the two current TON trend relations; separate Logical condition paths combine them for buying and selling.
- The current Position supplies the
Position <= 0andPosition >= 0checks. The N values gate receives the synchronized BTC candle output and uses N=5 to suppress the first five aligned pairs and the five aligned pairs after each order signal, then re-enables decisions on the sixth. - The buy and sell Modify position blocks place market orders with
NoConditionand shared Volume 1. No stop-loss, take-profit, position-protection, or separate exit element is present. - The Chart panel receives finished BTC candles, BTC EMA 7, BTC EMA 18, and the MyTrade outputs of the buy and sell order blocks.
Usage
Import the .json file into Designer, run it in the backtester on historical data, then adjust the parameters or the blocks themselves to fit your instrument before trading it live.