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

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?

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AaronKoRn, Today, 09:49 PM
    0 responses
    5 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    8 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    9 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,975 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X