Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Development: Do the Following : No user defined variable

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

    Strategy Development: Do the Following : No user defined variable

    I am trying to do something similar to this video:

    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


    At 2.26 in the video the user from "Do the following" selects "add" then "misc" then "set user defined variable".

    In the version of Ninjatrader8 I am using I don't have the "set user defined variable".

    Is this not available now? Is there any other way I can do this?

    Thanks

    #2
    Hello blueboy,

    Thanks for your post and welcome to the NinjaTrader forums!

    In NT7's strategy wizard, you were limited to using 10 internal variables called Variable0 through Variable9. You could not use any other variable.

    In NT8's strategy builder you can create your own variables. You define/create the variable in the "Inputs and Variables" screen, in the "Variables" section at the bottom. Left click on the word "add" at the bottom right, provide a name for the variable (yes, you can use Variable0 if you wish to do the same as NT7 video), select the type of variable (again for the video I recommend a double as that is what price uses) and finally set a default value (typically set to 0), finally click OK.

    After creating the variable, in the conditions and action window when you are ready to add the action to set the variable, in the actions window, click "add", select the Misc folder and you will see at the bottom "Set Variable0" or whatever you named the variable. Once selected you will see the variables current default value, move your mouse over the value field to see the word "set", left click on "set" then left click on "price" then left click "Low", set the bars ago to 1 and finally click OK to repeat the video.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    30 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X