NexusFi: Find Your Edge


Home Menu

 





Exporting everythging present on chart NT8


Discussion in NinjaTrader

Updated
    1. trending_up 2,455 views
    2. thumb_up 5 thanks given
    3. group 1 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

Exporting everythging present on chart NT8

  #1 (permalink)
 
Mlok's Avatar
 Mlok 
Prague
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL, MGC, ME6
Posts: 354 since Jan 2017
Thanks Given: 299
Thanks Received: 378

Hello. Exporting data is nice, but I use exotic Unirenko bars and re-calculating everything from tick data is 1) nuisance 2) it is allready being done by NinjaTrader.

What I want is to export everything I have on chart. I mean, numbers allready are in data box. Sure there can be method of exporting them!

And there is! As you can see in this thread I started on NT forums: Exporting everything I have on chart - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Now I have indicator and when I run it, it just exports open, high, low and clsoe of all bars on my chart. Perfect! But I need indicator data as well.

My question is, how to do that? How to export delta, VWAP, volume... It should be easy, they are just numerical values, I dont need to export whole volume profile

"Life is willingness to die."

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #2 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,426


Mlok View Post
Hello. Exporting data is nice, but I use exotic Unirenko bars and re-calculating everything from tick data is 1) nuisance 2) it is allready being done by NinjaTrader.

What I want is to export everything I have on chart. I mean, numbers allready are in data box. Sure there can be method of exporting them!

And there is! As you can see in this thread I started on NT forums: Exporting everything I have on chart - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Now I have indicator and when I run it, it just exports open, high, low and clsoe of all bars on my chart. Perfect! But I need indicator data as well.

My question is, how to do that? How to export delta, VWAP, volume... It should be easy, they are just numerical values, I dont need to export whole volume profile

If you want historical data for all chart things then you need to add those indicators as data series into your own indicator. Plenty of examples for this in the Ninja help files, it just takes a little time to get familiar with. Then you can output the ascii values as you would for the OHLC example.

If you just want live data on the current (last) bar then it can be accessed via the ChartControl structure but this is more involved and unsupported.

Cheers

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
Mlok's Avatar
 Mlok 
Prague
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL, MGC, ME6
Posts: 354 since Jan 2017
Thanks Given: 299
Thanks Received: 378



ratfink View Post
If you want historical data for all chart things then you need to add those indicators as data series into your own indicator. Plenty of examples for this in the Ninja help files, it just takes a little time to get familiar with. Then you can output the ascii values as you would for the OHLC example.

If you just want live data on the current (last) bar then it can be accessed via the ChartControl structure but this is more involved and unsupported.

Cheers

Yes ratfink, I bet I need exactly that. So I need to add VWAP and Delta indicators as data series into that exporting one, then find out what values have what names and add it into line when things gets exported?

Like
sw.WriteLine(Time[0] + " "

I add:
sw.WriteLine(Time[0] + " " VWAPline[0] + " "

where VWAPline will be the name of variable from vwap indicator? Or it doesnt work like that, I add whole indicator as data series and then I insert whole indicator into sw.WriteLine and whatever it produces will be written? Damn, I really need to learn these things.

"Life is willingness to die."

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,426


Mlok View Post
Yes ratfink, I bet I need exactly that. So I need to add VWAP and Delta indicators as data series into that exporting one, then find out what values have what names and add it into line when things gets exported?

Like
sw.WriteLine(Time[0] + " "

I add:
sw.WriteLine(Time[0] + " " VWAPline[0] + " "

where VWAPline will be the name of variable from vwap indicator? Or it doesnt work like that, I add whole indicator as data series and then I insert whole indicator into sw.WriteLine and whatever it produces will be written? Damn, I really need to learn these things.

Yes, life. Always a beautiful bugger.

It's like all technology, once you've seen how somebody else has done it and done a couple yourself you wonder what all the fuss was about.

So, as a really simple example you could write

sw.WriteLine(RSI(20)[0].ToString("0.00")); // outputs the value of the 20 period SMA on the current bars to 2 decimal places

Ditto for anything available to you. There are many ways to achieve the same effect.

You might not need to do any of this once you know Ninja better, just take it steady, it will grow on you if you do things slowly and with clear purpose (not easy when it all seems like a massive hairy monster...)

[Also beware a couple of gotchas, Ninja uses really stupid end of bar timestamps for time series bars (not on other types.) So if you do want to talk seriously to the real world you need to correct for this. Doesn't matter if you don't need it though. In NT7, it will also miss out time bars if no market events occurred during that time, this is also really stupid, not sure if NT8 is the same.]

Cheers

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 
Mlok's Avatar
 Mlok 
Prague
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL, MGC, ME6
Posts: 354 since Jan 2017
Thanks Given: 299
Thanks Received: 378


ratfink View Post
You might not need to do any of this once you know Ninja better, just take it steady, it will grow on you if you do things slowly and with clear purpose (not easy when it all seems like a massive hairy monster...)

Cheers

Thanks for kind words. Its just a year ago I was just watching Czech shares, made a few %, wrote few clever sytaxes and felt like pro. But it is very easy to be a smartest guy in a public bus, smartest guy in a company, or classroom, or whatever. But when it comes to trading... and this forum, I feel like retard! There is so much I dont know yet and I have to confront so many experienced and talented people that I actually gave up on not looking like idiot.

I really appriciate your help.

"Life is willingness to die."

Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,426


Mlok View Post
Thanks for kind words. Its just a year ago I was just watching Czech shares, made a few %, wrote few clever sytaxes and felt like pro. But it is very easy to be a smartest guy in a public bus, smartest guy in a company, or classroom, or whatever. But when it comes to trading... and this forum, I feel like retard! There is so much I dont know yet and I have to confront so many experienced and talented people that I actually gave up on not looking like idiot.

I really appriciate your help.

Trust me. I don't make many small mistakes. I save them all up and make absolutely huge life changing ones. You know nothing about being a professional retard.

Cheers

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
manueldecastro
Gijon / Spain
 
Posts: 1 since Oct 2019
Thanks Given: 0
Thanks Received: 0


ratfink View Post
Yes, life. Always a beautiful bugger.

It's like all technology, once you've seen how somebody else has done it and done a couple yourself you wonder what all the fuss was about.

So, as a really simple example you could write

sw.WriteLine(RSI(20)[0].ToString("0.00")); // outputs the value of the 20 period SMA on the current bars to 2 decimal places

Ditto for anything available to you. There are many ways to achieve the same effect.

You might not need to do any of this once you know Ninja better, just take it steady, it will grow on you if you do things slowly and with clear purpose (not easy when it all seems like a massive hairy monster...)

[Also beware a couple of gotchas, Ninja uses really stupid end of bar timestamps for time series bars (not on other types.) So if you do want to talk seriously to the real world you need to correct for this. Doesn't matter if you don't need it though. In NT7, it will also miss out time bars if no market events occurred during that time, this is also really stupid, not sure if NT8 is the same.]

Cheers

Hi!
I have reviewed the proposed code for the EMA and it works perfectly. Thanks!
I'm trying to do the same but for the swing indicator to save the swingHigh and swingLow values ​​but it returns 0. The swing repaints, maybe that's the problem. Could you help me?
Thank you!


private Swing Swing1; // as variable

else if (State == State.DataLoaded)
{
Swing1 = Swing(Close, 25);
}

sw.WriteLine(Time[0] + " Swing High " + Swing1.SwingHigh[0] + + " Swing Low " + Swing1.SwingLow[0] );

Reply With Quote




Last Updated on June 16, 2021


© 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
no new posts