• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    JoshNinjaTrader Customer Service

Latest Posts

Collapse

Topics Statistics Last Post
Started by stokhastic, Today, 07:08 PM
0 responses
3 views
0 likes
Last Post stokhastic  
Started by jlkramer16, Today, 04:29 PM
1 response
4 views
0 likes
Last Post jlkramer16  
Started by stokhastic, Today, 03:29 PM
1 response
8 views
0 likes
Last Post NinjaTrader_Jesse  
Started by jamestrader21x, Today, 09:36 AM
8 responses
32 views
0 likes
Last Post nkhoi
by nkhoi
 
Started by brucerobinson, 10-31-2018, 05:17 AM
3 responses
75 views
0 likes
Last Post brucerobinson  
Working...
X