Advanced Strategies
Advanced technical guides for professional TradingView integration.
Multi-Timeframe (MTF) Logic Basic & Pro
Section titled “Multi-Timeframe (MTF) Logic ”Reconciling MTF strategies requires precise timestamp metadata to identify logical signals across different bar scales.
- Tip: Always include the higher-timeframe ticker and resolution in your
metadatafield (e.g.,"timeframe": "240") to help the AI reconcile which data feed triggered the signal.
Complex Order Types Basic & Pro
Section titled “Complex Order Types ”The system supports sophisticated order reconciliation beyond market entries:
1. Stop-Limit Entries
Section titled “1. Stop-Limit Entries”Audit the variance between your stop-trigger and your actual limit fill.
- Fields: Include both
stopPriceandlimitPricein your JSON alert signal. - Example:
{"orderType":"stop_limit","stopPrice":200.00,"limitPrice":200.50,"marketPrice":199.50}
2. Trailing Stop Orders
Section titled “2. Trailing Stop Orders”Track the performance of dynamic stop adjustments.
- Fields: Include
trailPercentfor percentage-based trailing stops. - Example:
{"orderType":"trailing_stop","trailPercent":2.0,"marketPrice":150.00}
Strategy Optimization Loop Basic & Pro
Section titled “Strategy Optimization Loop ”To optimize execution performance, use the Pine Script AI Editor to iterate on these complex configurations. Feed the editor your Alerts vs Fills reports to automatically adjust your limit offsets and stop-loss logic based on actual execution data.