Easylanguage Print to File Problem - TradeStation | futures io | futures trading
futures io futures trading

Easylanguage Print to File Problem
Updated: Views / Replies:3,768 / 1
Created: by jalea148 Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Easylanguage Print to File Problem

  #1 (permalink)
Posts: 1 since Aug 2012
Thanks: 1 given, 0 received

Easylanguage Print to File Problem

I need to print to multiple files within a Signal. For example, if the trade is long, I want to write to ABC if the trade is long and to DEF if it is short. Furthermore, the file names depend on the symbol itself. Ex., if the symbol is SPX, I might want to print to C:\DATA\SPXL.csv for long trades and C:\DATA\SPXS.csv for short trades. If the strategy is applied to a different symbol, the name would change.

The documentation indicates the file name is a string expression. However, it appears it is a string constant. If I build a string variable, FILENAME, and use it in the print expression:
print(File(FILENAME), ElDatetoString(Date));
this results in Error(#287)
File name expected here.
It appears Easylanguage is looking for quotation marks, but I'm not sure [and I don't know how to append them.]

Reply With Quote
  #2 (permalink)
Suffield, CT
Trading Experience: Advanced
Platform: MC, NT, Python, R
Broker/Data: IB, Oanda, IQFeed
Favorite Futures: ES, NQ, YM, CL, RB, 6E
Fu510n's Avatar
Posts: 104 since Oct 2009
Thanks: 778 given, 100 received

I don't believe dynamic filenames are currently supported (re: Print - MultiCharts) by Easy/PowerLanguage.


The parameter inside the square brackets is optional.


OutputTarget- an optional parameter; specifies an output target other then the PowerLanguage Editor Output Log; the parameter must be followed by a comma.

There are two optional output targets:

Printer - Specifies the default printer as the output target.
File("PathFilename") - Specifies an ASCII file as the output target; if the specified file does not exist, the file will be created.

PathFilename - a string expression specifying the path and filename.
If OutputTarget is not specified, the output will be sent to the PowerLanguage Editor Output Log.

You can always request that they enhance the Print API call to support dynamic filenames though there's no guarantee they'll do that or "soon" (plus it would make it a superset of functionality of TS EasyLanguage, but that's fine). You could also write a DLL yourself and do whatever you want in the external module - quite a bit more involved, but definitely doable.

My .02,

Follow me on Twitter Visit my Facebook Reply With Quote
The following 2 users say Thank You to Fu510n for this post:


futures io > > > > Easylanguage Print to File Problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easylanguage problem mengelbrecht MultiCharts 10 January 27th, 2012 08:14 AM
Print, Rally, Then What? Quick Summary News and Current Events 0 November 17th, 2011 09:30 AM
problem with reading data from txt file Altas NinjaTrader Programming 2 May 11th, 2011 05:29 PM
Easylanguage : Decimal problem Ozons EasyLanguage Programming 3 February 13th, 2011 01:28 AM
Anyone using Print+ from moneyflowbars.com? Need your help Chipmunk Trading Reviews and Vendors 5 October 20th, 2010 05:30 AM

All times are GMT -4. The time now is 04:04 PM. (this page content is cached, log in for real-time version)

Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts