NexusFi: Find Your Edge


Home Menu

 





how to I get zig-zag indicator of Ninja 7 to display (or export) price info?


Discussion in NinjaTrader

Updated
    1. trending_up 4,801 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,033 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593

I would like to get the zig-zag indicator built into Ninja7 to show the data (price) labels at the turns. There is a property for showing the label - which I have changed from false to true.

Each day I record the turn points for the ES regular trading session - both price and time and enter them into a spreadsheet.

The setting on the attached graphs is what I use (all moves equal to or greater than 6pts and I use the high and low -not the close).

Currently, I use the data box window, place it over the turn point and manually record the info. (e.g H1266.25 at 11:56).

If the indicator can be easily be adjusted to out the turn point info (price and time) to a datafile that would be great .


Visit my NexusFi Trade Journal Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
  #2 (permalink)
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,033 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593

Here are the graphs


..........
peace, love and joy to you
.........
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #3 (permalink)
 zikonc 
san ramon
 
Experience: Beginner
Platform: ninja
Broker: zen
Trading: es, 6e
Posts: 136 since Oct 2009
Thanks Given: 98
Thanks Received: 76


you could extract the desired data by inserting a Print statement within your indicator where you want your data to come from, then:
  • open the Output Window under Tools->Output Window
  • reload your indicator
  • Select all the text displayed in the Output Window (Ctrl+A)
  • Copy selected data to clipboard (Ctrl+C)
  • Open MS Excel an paste the data (Ctrl+V)
  • in MS Excel under Tools select Text-to-Columns function and with Delimited option split data into columns where Delimter is Other, =


 
Code
            if (
                Time[0].DayOfWeek == DayOfWeek.Monday
                )
            {            
                Print    
                    (
                    "=ChartType=" + Bars.Period.Id + "." + Bars.Period.Value
                    + "=Instrument=" + Instrument.FullName
                    + "=Date=" + ToDay(Time[0]).ToString("0000/00/00")
                    + "=Time=" + ToTime(Time[0]).ToString("00:00:00")
                    /* BAR stats */
                    + "=Open=" + (Open[0]).ToString("0.0000")
                    + "=High=" + (High[0]).ToString("0.0000")
                    + "=Low=" + (Low[0]).ToString("0.0000")
                    + "=Close=" + (Close[0]).ToString("0.0000") 
                    + "=VOL=" + VOL()[0].ToString()
                    + "=Range=" + (High[0]-Low[0]).ToString("0.0000")
//                    + "=Tick=" + Bars.TickCount.ToString()
                    );


Reply With Quote
  #4 (permalink)
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,033 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593

Thank you for the idea and the code.

I'll try it tomorrow - hopefully.

I'm not a prg but it looks good.


..........
peace, love and joy to you
.........
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,033 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593

To moderator

not being a prg I have no idea if the code works or where to place it.
If you decide it answers the question please feel free to assign answer credits as you deem correct.


..........
peace, love and joy to you
.........
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #6 (permalink)
 
sam028's Avatar
 sam028 
Site Administrator
 
Posts: 3,767 since Jun 2009
Thanks Given: 3,836
Thanks Received: 4,691

I didn't take a look at Zondor's modifications, here, but the original ZigZag_Sam_03 was able to write directly in a .csv file (search for csv in the file), so maybe it can help.


Success requires no deodorant! (Sun Tzu)
Reply With Quote
Thanked by:




Last Updated on December 21, 2011


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