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 llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      15 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      14 views
      0 likes
      Last Post strategist007  
      Working...
      X