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!
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
NinjaTrader
Inputing lines and numbers.
Collapse
X
-
In case you didnt know i am using the strategy wizad to create this strategy. Whenever i try to create the inputs i say Oversold Stochastic Level but it says thats invalid. It must be something specific right? Also, is there any way i can optimize the profit target? Maby i can just input a price and i can say if last close crosses above that input sell.Last edited by iwun1; 12-25-2009, 10:02 PM.
Comment
-
Hello,
OK, you are using the Wizard. When you start to create a new strategy and you see the "user defined variables window" change "MyInput0" to any name that you want. For example you could use: "iwun1sOverSold". Once you have it named, if you want it to be a precentage change the type dropdown to "double". Doubles include value that have decimals (basically), which percentages do.
I suggest looking at this link:
DenNinjaTrader Customer Service
Comment
-
So if i made an input ProfitTarget or StopLoss and said double then .05 and had an exit strategy that would exit long position if price crosses under StopLoss it would work? How would NT know that its supposed to be .05% of price loss instead of price gain or instead of anything else? If it cant tell the difference, is there anyway I can differentiate the two? In fact, when using the strategy wizard to input variables, how does it know what i mean. For example, if i say buy when stochastic K crosses above Input 0(int 20) how would it tell what that 20 is.
Sorry for the stupid questions-I came from Tradestation.Last edited by iwun1; 12-26-2009, 10:53 PM.
Comment
-
Hello,
I'm not totally sure what you mean here but I have attached screen shots of how you can get a % based target on an order (based a user input) and how you can do a cross above stoch. K based on a user input. The "MyInput0" is defined when you first create the strategy so you may need to start over. Also, not the "K" for the Stoch. plot.
You should attend on of our online strategy development courses, when it is offered, for free:
Last edited by NinjaTrader_Ben; 12-27-2009, 10:19 AM.DenNinjaTrader Customer Service
Comment
-
THanks that helped alot. So if I said buy when stochastic k crosses above input0 and defined input0 as Int20 it should work as a stochastic oversold level? When I tried this it didn't work so what should I revise? Should i try go long when stochastic= stochastic(value=Input0)?Last edited by iwun1; 12-27-2009, 03:25 PM.
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DawnTreader, 05-08-2024, 05:58 PM
|
22 responses
82 views
0 likes
|
Last Post
by DawnTreader
Today, 04:52 PM
|
||
Started by Mathias79, Today, 03:44 PM
|
0 responses
17 views
0 likes
|
Last Post
by Mathias79
Today, 03:44 PM
|
||
Started by Austiner87, Today, 03:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by Austiner87
Today, 03:42 PM
|
||
Started by lorem, 04-25-2024, 09:18 AM
|
19 responses
83 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by joselube001, 05-10-2024, 12:17 PM
|
6 responses
29 views
0 likes
|
Last Post
by joselube001
Today, 02:34 PM
|
Comment