Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with variables?

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

    Help with variables?

    My Question:
    I'm using NinjaScript to code a simple trading program for learning purposes. I'm attempting to create a variable, called 'Price1' for example, that starts at whatever price I enter in and then when the price of the stock reaches that variable price the variable than changes to a higher price which then becomes the sell point. How would I do this? More generally, how do I create variables to store changing prices for entry and exit?

    I've been attempting to do this for a few days now and I can't seem to figure it out. Thanks for any help.

    And I'm a beginning computer science major so I understand a decent amount about computer programming so I'm not a complete beginner on the subject.

    #2
    Welcome to our forums - have you looked at this sample below yet for working with user variables in our strategy wizard?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    174 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    329 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    252 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    356 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    183 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X