
🚂 "Ride the Trend with Precision – Let the BTC Train Guide Your Entries and Exits!"
📌 Indicator Overview
Name: BTC Train
Version: 1.00
Platform: MetaTrader 4 (MT4)
Display: Main Chart Window
Type: Trend-Following Entry & Stop Signal Indicator
Developer: R.KH 1001
Source: https://www.robomql.com
The BTC Train indicator is designed to identify dynamic trend-based entry and stop levels using a smoothed moving average crossover strategy. It plots potential buy/sell zones directly on the chart with clear visual guidance.
🧠 How It Works
This indicator detects trend direction based on the difference between two smoothed moving averages:
plaintext
Copy
Edit
Trend = SMMA(period N) - SMMA(period N+1)
If the result is positive → Trend = Bullish (Uptrend)
If the result is negative → Trend = Bearish (Downtrend)
Based on the identified trend, it plots:
Entry levels (Buy/Sell)
Stop levels (BuyStop/SellStop)
These lines dynamically adjust based on volatility and recent high/low behavior.
⚙️ Input Parameters
🔧 Trend & Offset Controls
ParameterDescription
UseSpreadOffsetIf true, uses current spread as offset value
ManualOffsetManual fixed offset (in points) if spread-based is disabled
MaxBarsMax number of historical bars to calculate
TrendEMAPeriodBase period for SMMA trend detection
lookbackNumber of bars to scan for highs/lows (stop calculation)
🎨 Visual Settings
ParameterDescription
StopLineStyleStyle for stop lines (0=line, 1=dash, 2=dots)
EntryLineStyleStyle for entry lines
EntryLineWidthLine thickness for entry levels
SellColorColor for sell lines
BuyColorColor for buy lines
📈 Output Buffers (Displayed Lines)
Buffer NameDescription
SellStop[]Dynamic stop loss level for short positions
BuyEntry[]Entry trigger level for long positions
SellEntry[]Entry trigger level for short positions
BuyStop[]Dynamic stop loss level for long positions
🚀 Signal Logic
📌 When Trend is Bullish (Trend = 1)
Buy Entry = High of the next bar (High[i+1])
Buy Stop = Lowest low in the last lookback bars − offset
Sell-related values are ignored or set to empty
📌 When Trend is Bearish (Trend = -1)
Sell Entry = Low of the next bar (Low[i+1])
Sell Stop = Highest high in the last lookback bars + offset
Buy-related values are ignored or set to empty
Offset logic:
If UseSpreadOffset is true, the offset is dynamically taken from the market spread
Otherwise, ManualOffset is used
This provides flexibility depending on the volatility of the trading asset (e.g., BTC or other high-spread instruments).
🛠 How to Use
Apply to Chart: Attach “BTC Train” to any chart and timeframe.
Adjust Parameters: Use appropriate lookback and offset settings for your asset.
Interpret Lines:
Gold Line (Buy Entry): Long entry trigger.
Aqua Line (Sell Stop): Dynamic stop loss for short positions.
Reverse for Bearish Trends: Aqua line marks Sell Entry, Gold for Buy Stop.
Use for Automation or Manual Trading: These levels can be used for trade entries/exits or integrated into an EA for automation.
📢 Developer Information
Developer: R.KH 1001
Source Website: https://www.robomql.com