Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with Strategy Builder Variables

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

    Help with Strategy Builder Variables

    I'm trying to draw Pivots from a current candle at entry Close, Low, High.
    Made a double variable for each one called C, L and H:
    Click image for larger version

Name:	image.png
Views:	183
Size:	4.3 KB
ID:	1270490
    and when a set condition is met it should store the values on the current candle:
    Click image for larger version

Name:	image.png
Views:	147
Size:	3.2 KB
ID:	1270491
    and then use them in a Pivots indicator:
    Click image for larger version

Name:	image.png
Views:	156
Size:	6.3 KB
ID:	1270492
    but for some reason the values stay at 1 instead of changing to the entry candle (C,H,L)
    Would appreciate if​ someone helped me with this issue.
    Thanks​

    #2
    Hello Maoz1155,

    Thank you for your post.

    In order to better understand how the code is working, it will be necessary to use Print to see how the conditions are evaluating.

    Below is a link to a forum post that demonstrates using prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.

    https://ninjatrader.com/support/foru...121#post79112


    I have created a video for you demonstrating assigning values to your variables and checking that they have been assigned.

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



    Please let me know if you have any other questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 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
    30 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
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X