top of page

Jupiter 30min

The Jupiter 30min strategy is a long-short day trading strategy that trades NQ contracts on 30min bars.

Screenshot 2023-10-30 at 4.23.22 PM.png

Jupiter 30min Strategy Overview

Here's a breakdown of its main components:

  1. Strategy Settings: The strategy is initialized with a name, overlay settings, initial capital, commission, default quantity, and bar magnifier settings.

  2. Enums and Custom Signals: A custom enum type is defined for trading signals, which can be 'long', 'short', or 'none'.

  3. Multitimeframe Function: A function named BackgroundData is defined to fetch data from different timeframes.

  4. Repainting Settings: An input is provided to disable signal repainting.

  5. Session Settings: Inputs are defined to set trading sessions, including the time zone, session times, and days of the week.

  6. Custom Time Zone Logic: Logic is implemented to use a custom time zone or the symbol's default time zone.

  7. Time Exclude Logic: Logic is implemented to determine the active trading sessions based on user inputs.

  8. Side Selection: Inputs are provided to select which sides (long, short, or both) the strategy should trade on specific days of the week.

  9. DMI (Directional Movement Index) Settings: Inputs and calculations for the DMI indicator are provided, which is used to determine the direction of price movement.

  10. RSI (Relative Strength Index) Indicator: Inputs and calculations for the RSI indicator are provided, which measures the speed and change of price movements.

  11. MACD (Moving Average Convergence Divergence) Indicator: Inputs and calculations for the MACD indicator are provided, which is used to identify changes in the strength, direction, momentum, and duration of a trend.

  12. Signal Lookback: Logic is implemented to check past signals based on a user-defined lookback period.

  13. Signals: Logic is implemented to determine long and short signals based on the indicators and user inputs.

  14. Stop Loss and Take Profit: Inputs are provided to set stop loss and take profit percentages for both long and short trades.

  15. Position Direction: Logic is implemented to determine the current position direction (long, short, or no position).

  16. Strategy Entries: Logic is implemented to enter long or short trades based on signals and session settings.

  17. Strategy Exits: Logic is implemented to exit trades based on stop loss, take profit, or session end.


Overall, this strategy combines multiple technical indicators (DMI, RSI, and MACD) and user inputs to determine trade entries and exits. It also provides flexibility in terms of trading sessions, time zones, and side selection.

bottom of page