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


Easylanguage Print to File Problem
Updated: Views / Replies:3,379 / 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

Reply
 
Thread Tools Search this Thread
 

Easylanguage Print to File Problem

  #1 (permalink)
Trading Apprentice
ASHEVILLE, NC
 
Trading Experience: Advanced
Platform: OMEGA
Favorite Futures: OPTIONS
 
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)
Elite Member
Suffield, CT
 
Trading Experience: Advanced
Platform: MC, NT, Python, R
Broker/Data: IB, Oanda, IQFeed
Favorite Futures: 6E, CL, RB, NQ, YM
 
Fu510n's Avatar
 
Posts: 103 since Oct 2009
Thanks: 765 given, 97 received

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

Quoting 
Print([OutputTarget],Expression1,Expression2,etc.)

The parameter inside the square brackets is optional.

Parameters

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.

Where:
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,
-Guy

Reply With Quote
The following user says Thank You to Fu510n for this post:

Reply



futures io > > > > Easylanguage Print to File Problem




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

Journal Challenge $1600 in Prizes & Free Journalytix for all participants!

February
 

3 Excellent Entries, and How To Automate Them w/Kevin Davey

Feb 21
 

The Driving Force Behind the Market w/Earn2Trade

Mar 5
 

TBA w/Stage5 & iSystems

Mar 12
 

TBA w/John Grady @ No BS Day Trading

Mar 19
 

Day Trading Oil Futures: Reducing Risk & Increasing Profits w/DTN IQFeed

Mar 26
     

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


Tags
abc, data, easylanguage, how to, multicharts, powerlanguage, short, signal, spx, strategy, string expression, tradestation, trading, variable

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

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business, 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
Page generated 2019-02-19 in 0.18 seconds with 14 queries on phoenix