Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Offset User Variable in Strategy Wizard?

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

    Offset User Variable in Strategy Wizard?

    Hello Ninjatrader Support,

    how can i offset (+,-,*,/) a user variable in the strategy wizard?
    I can't find it anywhere.

    Thank you in advance
    Last edited by tulx2305; 09-29-2017, 08:27 AM.

    #2
    Hello,

    Thank you for the post.

    Currently, the offset only can be applied to specific fields, the user variables, unfortunately, do not have this ability.

    I will put in a feature request to have the offset reflected to anywhere a price value can be used in the builder.


    For the time being, you would need to instead use the reverse where possible meaning the value you are set to the user variable would need to be offset instead of the user variable itself being offset.

    For example, you can set an Indicators value to a user variable, in the indicator settings it contains an offset. This can be used to offset the value before setting the variables. Later when the variable is used, the pre-offset value is used so no offset would be needed on the variable its self. This can still lead to situations where there is a logical gap so I will still put in a feature request.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,

      thanks for quick reply and feature request, simple user variable offsetting would be useful.

      I just needed the half from high[0] - low[0] value.
      Found this way with the wizard now : Var1 = ((High[0] - (Median[0])));


      Regards

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by geddyisodin, 04-25-2024, 05:20 AM
      8 responses
      58 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      4 responses
      3,285 views
      1 like
      Last Post jgualdronc  
      Started by Option Whisperer, Today, 09:55 AM
      0 responses
      5 views
      0 likes
      Last Post Option Whisperer  
      Started by halgo_boulder, 04-20-2024, 08:44 AM
      2 responses
      22 views
      0 likes
      Last Post halgo_boulder  
      Started by mishhh, 05-25-2010, 08:54 AM
      19 responses
      6,189 views
      0 likes
      Last Post rene69851  
      Working...
      X