NexusFi: Find Your Edge


Home Menu

 





Help with code for CSV data dump


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
Oroboros
Manchester UK
 
Posts: 2 since Apr 2014
Thanks Given: 1
Thanks Received: 0

Hello all, new to this forum so if any rules/customs are violated then apologies in advance.

I have been looking around for a code that allows me to dump OHLC prices into a CSV format. In the past I only required one or two at a time so I just used the data window and saved it that way. However recently there has been an increase so I figured I'd try and find a quicker solution.

My current idea is to run an indicator through a scanner to output a list of ticker's data.

I have attached an .ELD file for a code that I found however it does not output the current "active" bar until the session is closed. If you could advise me as to how to tell tradestation to output the current bar as well regardless of it being officially closed or not then that would be greatly appreciated!

Thanks in advance,

Will


Attached Files
Elite Membership required to download: SAVE CHART DATA.ELD
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
Iran and Israel Stand Down: What $9M in Peace Contracts …
Prediction Markets & Event Contracts
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643


Oroboros,

the solution to your problem lies within the FastFileAppend function. In the code you provided it is limited to print bar values at the end of the bar only. You can change this, but probably have to make sure that it doesn't append the last bar multiple times.
You can find all the information you need plus rules for advanced modifications of FastFileAppend in the original thread here:
https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=31616

Regards,
ABCTG


Follow me on X Reply With Quote
Thanked by:
  #4 (permalink)
Oroboros
Manchester UK
 
Posts: 2 since Apr 2014
Thanks Given: 1
Thanks Received: 0

Many thanks for your reply, I had a look at the Trade station forum and it seems that this problem was raised but never resolved. It appears to be a problem/issue with LastBarOnChart for the FastFileAppend.

I have raised the question again over there and if I get a response I'll post it up here.

Regards


Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

Oroboros,

you are welcome and thanks for the update. You can use something else like the simple print command or EasyLanguage Collections to collect and print the values. Then limit the output for the last bar to one time only.

Regards,
ABCTG


Follow me on X Reply With Quote




Last Updated on April 15, 2014


© 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