Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi,
I would like to export the zigzag swing highs/lows prices on a graph in Tradestation as a txt or csv file. Can someone point me in the right direction? I'm new to Tradestation and is getting to know the platform but can't find an easy solution for this.
Thanks
Can you help answer these questions from other members on NexusFi?
look into the print reserved word. Specifically with Print( File ( your file name here ), "1st value to export here: ", 1st value..... ) you can print to a text file. Except Print and File the other names are just place holders in my example of course.
Without knowing the ZigZag code you are looking at it's impossible to tell you where to add the code. However you will probably need to add in two locations - one for the high and one for the low. The best place likely is to print the value for the most recent swing high at the moment a new swing low is detected and vice versa. As then the value can't change anymore.