NexusFi: Find Your Edge


Home Menu

 





Help with code for CSV data dump


Discussion in EasyLanguage Programming

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




 
Search this Thread

Help with code for CSV data dump

  #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?
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628


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 Twitter 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,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628

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 Twitter Reply With Quote




Last Updated on April 15, 2014


© 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