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
Instrument or Period change within Code
Collapse
X
-
bestof61,
That is technically possible however not supported. Hopefully someone would be able to help you out there.
You can use BarsPeriod.Id in Initialize(), it's done in the following indicator for example :
-
Thanks AdamP for the fast reply.
But it is not what I like to do.
First i like to use the Value: this.BarsPeriod.Value = myPeriod within my Code. But it is as you guys told me not supported. By my fault i used it and at the end of the day i had to reinstall NT.
However I wonder if i could redirect the output of a program to the screen as i am able to enter the period or instrument on a chart.
So what i like to do in my Code(Indicator or strategy does not matter):
1. Choose a chart as i do with left click of my mouse on the screen
2. Enter a period as i do it with the keyboard my enter e.g. "M15" or "NQ 09-12"
regards,
bestof61
Leave a comment:
-
Instrument or Period change within Code
Hello,
is there a way to enter e.g. "15M" within Code. I thinking of writing an Indicator in order to change the period programmatically?
regards,
trader61Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
4 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:00 AM |
Leave a comment: