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.
Comment