Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Delta Buy/Sell Volume
Collapse
X
-
You shouln't have to write 1 line of code !
You only have to go to you Windows System Settings, Advanced Tab, choose "Environment Variables" and add GOMFOLDER with desired value !
-
Originally posted by gomifromparis View PostSorry, but nothing to do with c# here
. It's OS stuff. Type F1 in windows and type "environment variable", it should show you how to do it..
Well if anyone interested and after a lot of attempts due to a damn typo this work good for me.
Environment.SetEnvironmentVariable("GOMFOLDER",@"Y our Folder", EnvironmentVariableTarget.User);
Leave a comment:
-
Sorry, but nothing to do with c# here
. It's OS stuff. Type F1 in windows and type "environment variable", it should show you how to do it..
Leave a comment:
-
Any One has an Idea
Does anyone Know how to define an Environment Variable named GOMFOLDEROriginally posted by gomifromparis View PostI added a parameter in GomCD/GomRecorder : if you define an Environment Variable named GOMFOLDER, the files will be written and read there.
Definitely I need to buy some c# books with this Gomi code
, its getting more complex every time.
Leave a comment:
-
OK I see
The flat file format should work, if you modify dateformat,
static public string dateformat="yyMMddHHmmss";
to something that writes milliseconds.
It could be used in a custom app,but it might not be of much use in NT as when the file is reread, it is synced on the bar chart using the time of the close of the bar, which has a 1 sec resolution.
It might be useful to set Display refresh interval to 0 too.
Leave a comment:
-
Sure, but in my calculations I can replace e.Time with DateTime.Now when receiving a new tick and use it as a substitute of a real tick timestamp.
Leave a comment:
-
The millisecond info doesn't make it through the NT marketdata infrastructure
Try this code :
protected override void OnMarketData(MarketDataEventArgs e)
{
Print(e.Time.Second+"."+e.Time.Millisecond);
}
You'll get
37.0
37.0
38.0
38.0
39.0
39.0
42.0
43.0
43.0
48.0
48.0
48.0
49.0
49.0
49.0
49.0
49.0
49.0
=> no millisecond info
Leave a comment:
-
Gomi, one question according to RecorderIndicator. NT uses ticks timestamp with 1 second accuracy, which is not enough for some purposes, but DateTime structure allows 100ns accuracy. I'm trying to measure trade intensity, and it would be great to store history, so maybe one of your existing GomFileManager classes allows to store and retrieve tick timestamps with full 100ns accuracy?
Code://OnMarketData code //now fm.RecordTick(e.Time,tickType,e.Price,(int)e.Volume); //trying to record accurate tick timestamp // fm.RecordTick(DateTime.Now,tickType,e.Price,(int)e.Volume);
Leave a comment:
-
Empty charts - Fixed!! - Thankyou.
No sign of log errors at this time - will post again if they re-occur.
Thanks again...
Leave a comment:
-
This one should correct empty charts.
Tell me if it corrects the other problems as wellAttached Files
Leave a comment:
-
TimeZone is GMT+ 10 (Australia).
No plot on 1 minute chart either..
The error on calling OnBarUpdate has reappeared again with a timestamp of 1 second before Globex reopened at 15:30 Chicago time...
The another Log error when I loaded on GomCd onto to the 1 minute chart to test.
That error was "Error on calling 'OnBarUpdate' for indicator GomCD on bar 2756: Object reference not set to an instance of an object".
Hope that means something to you....
OK - I see you reproduced... good... and thankyou..Last edited by rt-trader; 11-12-2009, 03:49 PM.
Leave a comment:
-
Strangely it works here... Did you try a basic 1 min chart ?
What's your time zone ?
EDIT : OK reproduced it on Canberra Melbourne Sydney TZLast edited by gomifromparis; 11-12-2009, 03:39 PM.
Leave a comment:
-
Gomi,
Not sure if my issue is related to the one immediately below...
Anyway - I have installed GomCD 5.4. Using the custom session shown in the attachment, the Recorder works (Recording OK) but will not display any plot. If I open a second ES chart and add GomCD - again no plot unless I use either Default 24/7 or 24/5 as Session Templates. Then the plot populates from the recorder file.
The log error I mentioned in previous post no longer appears...
Thanks
Leave a comment:
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
151 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
303 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
244 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
345 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
175 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Leave a comment: