Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy: Using User Variables in the Strategy Wizard

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy: Using User Variables in the Strategy Wizard

    Reference sample for NinjaTrader 6.5.XXXX.X or greater.

    User Variables are very useful for storing values you may want to recall in the future. Another use for User Variables is having it store information that allows you to create conditions that must be executed in a specific sequence. In this example, the strategy will only take trades as the fast period SMA crosses above a slow period SMA and then a normal period SMA.

    The attached reference sample demonstrates the following concepts:
    • Setting an User Variable
    • Checking an User Variable for a value
    • Using separate Sets for conditions and actions
    • Creating a sequence of conditions before trading

    Important conditions and actions include:
    Import instructions for NinjaTrader 6.5.XXXX.X or greater:
    1. Download the file contained in this thread to your PC desktop
    2. From the Control Center window, select the menu File > Utilities > Import NinjaScript
    3. Select the downloaded file
    Attached Files
    Josh P.NinjaTrader Customer Service

Latest Posts

Collapse

Topics Statistics Last Post
Started by ETFVoyageur, Today, 04:00 PM
0 responses
7 views
0 likes
Last Post ETFVoyageur  
Started by AaronKTradingForum, Today, 03:44 PM
1 response
8 views
0 likes
Last Post AaronKTradingForum  
Started by Felix Reichert, 04-26-2024, 02:12 PM
11 responses
77 views
0 likes
Last Post Felix Reichert  
Started by junkone, 04-28-2024, 02:19 PM
7 responses
83 views
1 like
Last Post junkone
by junkone
 
Started by pechtri, 06-22-2023, 02:31 AM
11 responses
139 views
0 likes
Last Post Nyman
by Nyman
 
Working...
X