NexusFi: Find Your Edge


Home Menu

 





transfer output readings from an indicator on a historical chart


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one Bullywig with 2 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 ninjus with 1 posts (1 thanks)
    4. looks_4 cory with 1 posts (1 thanks)
    1. trending_up 1,627 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 71 since Oct 2015
Thanks Given: 42
Thanks Received: 22

Is there a way to transfer data/readings from an indicator on a historical chart to a spreadsheet? Hoping someone has information on where to start. Thanks in advance.

Cheers
Bullywig


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Daytrading to swingtrading
Traders Hideout
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Would a node-based workflow for automated trading be useful?
Traders Hideout
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098


https://discourse.ninjatrader.com/forum/ninjascript-educational-resources/reference-samples/3581-indicator-using-streamwriter-to-write-to-a-text-file?t=3475


Reply With Quote
Thanked by:
  #4 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 71 since Oct 2015
Thanks Given: 42
Thanks Received: 22



Much obliged! I will check this out.

Cheers.


Started this thread Reply With Quote
  #5 (permalink)
 
ninjus's Avatar
 ninjus 
Chiang Mai Thailand
Strat Enthusiast
 
Experience: Beginner
Platform: Seirra Chart
Broker: Stage5 + Denali
Trading: MNQ
Frequency: Many times daily
Duration: Minutes
Posts: 737 since Jun 2017
Thanks Given: 1,228
Thanks Received: 2,344

Here is an example of something I fumbled together. Might help as a reference for your own needs.
Pulls Opens, Highs, Lows, Prior Day stuff etc and then VAH, VAL and VAPOC from the DValue indicator.

 
Code
sw = File.AppendText(path);  // Open the path for writing
			sw.WriteLine(Time[0] + "," + Open[0] + "," + High[0] + "," + Low[0]  + "," + Close[0] + "," + PriorDayOHLC().PriorClose[0] + "," + PriorDayOHLC().PriorOpen[0] + "," + PriorDayOHLC().PriorHigh[0] + "," + PriorDayOHLC().PriorLow[0] +"," + DValueArea(40,2,0,2,false,new TimeSpan(8, 0, 0),0.7,2,2,_dValueEnums.dValueAreaTypes.VWTPO,0,100,1,6.75,true,2,false,0,60,300,false,2,false).POC[0] + "," + DValueArea(40,2,0,2,false,new TimeSpan(8, 0, 0),0.7,2,2,_dValueEnums.dValueAreaTypes.VWTPO,0,100,1,6.75,true,2,false,0,60,300,false,2,false).VAt[0] + "," + DValueArea(40,2,0,2,false,new TimeSpan(8, 0, 0),0.7,2,2,_dValueEnums.dValueAreaTypes.VWTPO,0,100,1,6.75,true,2,false,0,60,300,false,2,false).VAb[0]);
			sw.Close(); // Close the file to allow future calls to access the file again.



Marcus Aurelius
"Not to assume it's impossible because you find it hard. But to recognize that if it's humanly possible, you can do it too"

Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on November 16, 2018


© 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