One position per bot, opened only in the trend's direction, closed by an ATR stop that trails the best price or when the trend turns β it can close at a loss (no fence). Executed by bots_agent.py; no stop rests at the broker. Backtest: backtest_trend.py.
Loadingβ¦
Add Balance Bot
Add Trend Bot
Add MACD Bot
Safeguard buffer: how far past the active safeguard fence price is required (in pips) before a BUY/SELL is allowed to fire.
Cross window: the histogram's 0-cross and the 1m Stoch %K 0.5-cross (or %b, for a bot set to percent_b) must land within this many seconds of each other to count as one confirmed signal. A confirmed signal must then also pass the 5m Stoch range gate.