Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

In Strategy Builder, Setting up a previous pricepoint as a usable variable

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

    In Strategy Builder, Setting up a previous pricepoint as a usable variable

    Pushing my luck with this one, as this is almost certainly a hard-code object item.

    In strategy builder, on strength of a [0] bar conditional being met, I want to take the high and low of a previous bar [1] and store those values as separate variables to be called on a future conditional price change immediate execution, i.e. line in the sand being crossed then execute entry. I can't see a way to do this in the wizard, or is there in fact a method I can call?

    So
    If ( X && X && X)

    {
    (Store the High[1];
    Store the Low[1]
    }
    Thanx

    #2
    Hello johnMoss,

    This would not be a method...

    Add a variable (or variables) on the Inputs and Variables page.

    Assign the High with Bars ago set to 1 to the variable when the condition is true. (In the actions open the Misc section and select Set variablename

    Use the variable as you would like later in the script.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Oh for God's sake Chelsea I'm being an absolute moron .... Was at a series of too many things all day yesterday....
      ((All work & no play makes jack a dull boy)*100) lol... Sorry

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X