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:	181
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:	145
Size:	3.2 KB
ID:	1270491
    and then use them in a Pivots indicator:
    Click image for larger version

Name:	image.png
Views:	154
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 NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 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