OPEN-SOURCE SCRIPT
Updated

Simple Swing Trader by CryptoMitchX

How to Use the Simple Swing Trader by CryptoMitchX

How to Use:

The Simple Swing Trader indicator combines multiple tools to help you identify potential trading opportunities:

  1. Moving Averages (MA 50 & MA 100): These are plotted as yellow and purple lines on the chart. Use these to determine trend direction and crossovers for potential trend changes.
  2. Heiken Ashi Bars: Displayed with volume-based coloring for smoother visualization of trends. Look for changes in bar colors to identify potential shifts in momentum.
  3. SuperTrend Buy/Sell Signals: Labels are placed on the chart to indicate "BUY" or "SELL" opportunities based on the SuperTrend calculation. Green labels signify potential buy zones, and red labels signify potential sell zones.
  4. Volume Histogram: Shown in a separate pane, this provides an adjustable view of market activity. Use the "Volume Histogram Base Multiplier" input to customize its display.
  5. Customization: All elements are editable for your trading preferences. Adjust colors, timeframes, and parameters as needed.



Features:
Multi-Tool Integration:

  • Combines trend-following, momentum-based, and volume-focused tools in one indicator.
  • SuperTrend Signals: Generates clear "BUY" and "SELL" labels to assist decision-making.
  • Heiken Ashi Visualization: Reduces noise and smoothens price data for better clarity.
  • Customizable Settings: Fully adjustable parameters to suit different trading styles and assets.
  • Volume Insights: An adaptable histogram that reflects market participation and activity.


Suggested Modifications

  • Alert Integration: Add alert conditions for BUY and SELL signals to receive real-time notifications.
  • Dynamic Color Customization: Enable dynamic coloring based on additional indicators, like RSI or MACD.
  • Optimization for Specific Assets: Fine-tune ATR and factor settings to align with the behavior of specific markets (e.g., crypto, forex, stocks).
  • Additional Indicators: Consider incorporating a momentum oscillator to enhance confirmation of trade setups.


This indicator is designed to work on any timeframe and asset. Experiment with different settings to optimize it for your trading strategy.


The Code

Release Notes
Update
To make the buy and sell recommendations less sensitive and introduce a delay for the initial signals

Key Changes:

Delayed Signals:
  • Introduced buy_delay and sell_delay variables to track the number of bars before triggering a signal.
  • Signals are only generated after the max_delay threshold is reached (default is 3).


Reduced Sensitivity:
  • Signals only reset delays when the trend direction changes, reducing noise.


Clearer Logic:
  • The logic for buy/sell signal generation is separated and includes clear delay checks.

Disclaimer