NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 11 of 11
Search: Posts Made By: ratfink
Forum: NinjaTrader July 3rd, 2018, 10:20 AM
Replies: 20
Views: 4,771
Posted By ratfink
Yes, you can limit it to any smaller number so...

Yes, you can limit it to any smaller number so long as the overwrite is no problem, I use this often.
Forum: NinjaTrader June 28th, 2018, 01:00 PM
Replies: 20
Views: 4,771
Posted By ratfink
Good news, and good work! By wrap around I...

Good news, and good work!

By wrap around I mean using the '%' operator to compress an incrementing counter into a fixed range to use as an indexer, e.g.


value = array[count % 128]; // gets...
Forum: NinjaTrader June 26th, 2018, 04:09 PM
Replies: 20
Views: 4,771
Posted By ratfink
I always use simple Print("x happened value...

I always use simple

Print("x happened value is " + value);

type statements first off, sometimes with counters/flags to limit unnecessary output

and try/catch blocks next, often good...
Forum: NinjaTrader May 30th, 2018, 03:48 PM
Replies: 20
Views: 4,771
Posted By ratfink
Great! :becky: You can improve it in many...

Great! :becky:

You can improve it in many ways, e.g add rfkSDT.array[(CurrentBar + 1) % 1000)] = 0; to the writer so it forward clears a buffer slot, then the reader can check for zero (or any...
Forum: NinjaTrader May 30th, 2018, 12:20 PM
Replies: 20
Views: 4,771
Posted By ratfink
Hi user10 It's not so hard! NinjaTrader...

Hi user10

It's not so hard! NinjaTrader don't support it because it needs care if you are in a development/compile cycle where it is easy to forget to refresh the sharers, but when trading this...
Forum: NinjaTrader May 29th, 2018, 04:19 PM
Replies: 20
Views: 4,771
Posted By ratfink
And always, always, always remember that global...

And always, always, always remember that global data connections are lost every time you recompile anything, all charts need to be reloaded. Pain in the neck but compared to development times when I...
Forum: NinjaTrader May 29th, 2018, 04:12 PM
Replies: 20
Views: 4,771
Posted By ratfink
[deleted here where I wrote about using...

[deleted here where I wrote about using State.Configure rather than State.DataLoaded but shouldn't matter and I think is a red-herring in any case]

Any global sharing I have done has used static...
Forum: NinjaTrader May 29th, 2018, 12:58 PM
Replies: 20
Views: 4,771
Posted By ratfink
You will need to attach a zip or post or PM the...

You will need to attach a zip or post or PM the .cs for me to see much further in I think.
Forum: NinjaTrader May 29th, 2018, 06:02 AM
Replies: 20
Views: 4,771
Posted By ratfink
Really depends on what you are trying to do,...

Really depends on what you are trying to do, basically you will have to make use of bar indexing in the indicator OnBarUpdate code using the 'CurrentBar' or BarsSinceSession variables (NT7, I can't...
Forum: NinjaTrader May 28th, 2018, 07:03 AM
Replies: 20
Views: 4,771
Posted By ratfink
You need to use the class name as part of the...

You need to use the class name as part of the reference, e.g.


public static class myData
{
public static int fred;
}

...
Forum: NinjaTrader May 28th, 2018, 06:57 AM
Replies: 20
Views: 4,771
Posted By ratfink
You still need to allocate actual space for the...

You still need to allocate actual space for the array, e.g.


public static double[] values = new double[8];



Remember that you are responsible for any synchronisation (unlike the native NT...
Showing results 1 to 11 of 11

What unexpected challenges have you encountered while trading on a "Funded Trader" platform?

Total votes: 159
 


 
 


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top