Yahoo finance for example. Google for some sample apps of people grabbing data from them.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Testing OHLC, pivots and session breaks
Collapse
X
-
Customized Pivots Indicator
I have now adapted the NinjaTrader Pivots Indicator to display pivots in line with the actual session times of the major futures markets and to display midpivots. So I have two questions:
I have defined some variables as "User defined values". I have also given default values != 0 to them. If y shut down and restart NT and then open the indicator panel of the chart again, all the default values of "User defined values" have been set to 0. Any explanation?
Shall I rather use "Parameters" instead of "User defined values"?
Second question: Do I conform to the file sharing policy, if I publish this indicator in the forum? As I said, it is based on the NT 6.5.8 pivots indicator.
Comment
-
Not sure about the variables. You can try creating some new user defined inputs (as the wizard would generate).
Yes you would conform to publishing provided that you post it in ZIP format (export utility in NT) and if you are making any external calls from the indicator, you should disclose this in your post.RayNinjaTrader Customer Service
Comment
-
Actually I had used TimeSpan. When adding the indicator to the chart, the default values arre displayed in the indicator panel. But they are no longer there, when I shut down and restart NT. This is what I do not understand!
Do you have any coded examples, how to enter a date time structure?
Comment
-
Just tested again. Default values disappear on the indicator panel and they are not taken into account for calculating the indicator. That means the indicator is calculated with a TimeSpan of (0,0,0) after shutting down and restarting NT.
I then can reenter all the default values manually into the panel, and indicators will show up correctly again.
Default settings are just losing their memory. I am not a good programmer, so maybe I have made a mistake.
Comment
-
Hi Josh,
this is what I tried - maybe it is not allowed that way:
#region Variables
private TimeSpan localBreakCMEIndex = new TimeSpan(15,30,0);
///<summary>
///</summary>
[Description("Session break time for Globex")]
[Category("User defined values")]
public TimeSpan LocalBreakCMEIndex
{
get { return localBreakCMEIndex; }
set { localBreakCMEIndex = value; }
}
Comment
-
Strange
Thanks for replying (even on Saturday!). I have seen your indicator, and basically I have done the same thing.
The TimeSpan variables defined are only used once in the code afterwards to assign values to another variable of Type TimeSpan. So I do not understand what happens.
Comment
-
Your indicator also set back to 00:00
Hi Josh,
Your indicator also lost its default value. I tried it on both NT 6.0.1000.8 and NT 6.5.0.8 several times with different charts. Always the timespan is set back to 00:00 after shut down and restart of NT.Attached FilesLast edited by Harry; 02-09-2008, 06:18 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
942 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
||
Started by Max238, Today, 01:28 AM
|
0 responses
9 views
0 likes
|
Last Post
by Max238
Today, 01:28 AM
|
||
Started by rocketman7, Today, 01:00 AM
|
0 responses
4 views
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
||
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
28 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
33 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:33 PM
|
Comment