Home PageProductsServicesSeminarsEducational ProductsAbout Vista-ResearchHelp, FAQ (Frequently Asked Questions)
Today is :



MENT Pattern Forecaster Plus
MENT Adjusted Stop Level Break-Out System
MENT BLM Technical Indicator System
MENT Balanced Length Averaged Movement System
MENT Trending Candle/Body Reversal System
Erlich Cycle Finder System
NTW
Omega Platform Utilities
VISTA Research and Trading Report



Custom Programming
Electronis Support Service
Consulting
Technical Workshops
Speaking Engagements



Ask Mr. EasyLanguage & Other Books
Technical Seminars
EasyLanguage Workshops
VISTA Research and Trading Report



Samuel K. Tennis Biography
Vista-Research Testimonials
Vista-Research Request Form
Vista-Research Non-Disclosure Agreement
Contact Vista-Research



Associates Links
Industry Links
Other Links




Join our mailing list for
info on updates and
new products

subscribe
unsubscribe

You Should Visit -

TASC
Futures Magazine
Primate Data



Vista-Research
Samuel K. Tennis

PO Box 1984
Ft. Walton Beach, FL 32549
Sales (850) 243-5105
Fax (510) 743-8274
sktennis@vista-research.com
 

Fast Efficient Custom Programming in EasyLanguage

Page continually changing and expanding...

Frequently Asked Questions (FAQ)

  • EasyLanguage (FAQ)
    • Q01) Any tips for an EasyLanguage Neophyte?
    • Q02) I have Strategies from TradeStation 2000i that do not work correctly after conversion to TS6. How do I resolve this issue?
    • Q03) Using EasyLanguage, I'd like to instruct my system to close all trades at the end of each day. Anyone know the sytax for doing this?
    • Q04) I saw a reference in one of Omega's functions. What is a "multiple output" function?
  • Transfer, or Import/Export, EasyLanguage modules
    • Q01) Thanks for the great commentary on the o-list [Omega-List@eskimo.com] today. Is sp6 [TS6?] not able to read ELA or ELS?
    • Q02) Can studies be imported from previous versions of TradeStation products?
    • Q03) How do I transfer EasyLanguage files from previous versions of TradeStation?
    • Q04) How do I import EasyLanguage studies (ELD, ELS, or ELA files) into TradeStation?
  • HistoryBank and Third-Party Sources of Data
    • Q01) Why does the History Bank option lock up my server almost every time I try to download, particularly if I try to change the dates or other settings from the default?
    • Q02) Is there a web site somewhere that says what market/financial events will happen today (or tomorrow, etc)? Something that says, "At 8:30 EST the employment figures will be released."
  • Tips and Techniques (TnT)
  • Help on Yahoo! Groups
    • Q01) What is Yahoo! Groups?
    • Q02) How do I set up my Yahoo! Groups account?
    • Q03) How do I join a group?
    • Q04) How do I verify my email address?
    • Q05) How do I unsubscribe from a group?
    • Q06) Why am I getting a sign-in error about "cookies"?
    • Q07) Help with file sharing.
  • Trading Related Clubs and Groups


EasyLanguage



Q01) Any tips for an EasyLanguage Neophyte?

A01) In a nutshell? "Buy my book!" While you are waiting for it to arrive, here are a few pointers to help get you started.

In the PowerEditor I recommend using a fixed width font like "Courier New".

I suggest turning "Smart Indent" OFF and not using tabs. They (tabs) are easy and quick in the PowerEditor, but if you will ever be putting EZL code into Notepad, or a Word DOC file, then tabs have an entirely different meaning.

If you have not already, start developing your own personal "shorthand" for EZL - MP for MarketPosition, MBB for MaxBarsBack, etc... This will facilitate your quickly jotting pseudo-code when brilliance strikes!

Verify often (Press <F3> to verify) - that warm fuzzy feeling you get when you see "Excellent" pop us is a good thing. We humans are basically pain adverse. Having a dialog call you stupid over and over and over again will take the fun right out of the EasyLanguage experience.




Q02) I have Strategies from TradeStation 2000i that do not work correctly after conversion to TradeStation 6. How do I resolve this issue?

A02) Extracted from Omega Kowledge base :

Modifications to EasyLanguage integrated into the initial release of TradeStation 6 resulted in a failure of some Strategies to generate orders after conversion from TradeStation Pro. Only Strategies from TradeStation 2000i converted for use in TradeStation Pro, and then converted into TradeStation 6 have been known to encounter in this issue. Strategies that do not properly generate orders must be edited in order to comply with the EasyLanguage modifications. The following modifications relating to this issue have been integrated into EasyLanguage:

New Reserved Words

Buy - No change from previous version
Sell Short - Replaces Sell to create a short position
Sell - Replaces ExitLong to close all or part of a long position
Buy to Cover - Replaces ExitShort to close all or part of a short position

Additional Change

All orders must now be followed by "this bar" or "next bar".
For example:

Buy to Cover ("sx.Profit") 10 contracts next bar at MidPrice stop ;
"this bar" or "next bar" must be included in the statement in order for the Strategy to generate orders.




Q03) Using EasyLanguage, I'd like to instruct my system to close all trades at the end of each day. Anyone know the sytax for doing this?

A03) The other answers I have seen are accurate, they are not totally generic. By using the "Sess1EndTime" function my version is independent of time zone and bar interval settings.

EasyLanguage code for all versions Prior to TS6
if  (Time = @Sess1EndTime)  then begin
  if  (@MarketPosition  > 00)
    then  ExitLong  ("lx.EOD") on the close ; { long exit }
  if  (@MarketPosition <  00)
    then  ExitShort ("sx.EOD") on the close ; { Short Exit }
end ; { last bar of data only }
  

EasyLanguage code for TS6.
The "this bar" or "next bar", though totally redundant (because you can not pick which you want for an order type) to EasyLanguage, is required. Notice that "ExitLong" is replaced with "Sell" and "ExitShort" is replaced with "Buy to Cover".

if  (Time = @Sess1EndTime)  then begin
  if  (@MarketPosition  > 00)
    then  Sell         ("lx.EOD") this bar on close ; { long exit }
  if  (@MarketPosition <  00)
    then  Buy to Cover ("sx.EOD") this bar on close ; { Short Exit }
end ; { last bar of data only }
  



Q04) I saw a reference in one of Omega's functions. What is a "multiple output" function?

A04) EasyLanguage 5 and higher now allows a function to return more than one value. Not only the return value passed back by the function, as usual, but also some [or all] of the inputs to the function can have their values modified by the function.

In a standard programming language, there are two type of function parameters, described with the terms "passed by value" and "passed by reference". The inputs "passed by value" receive a copy of the paramater value. The inputs "passed by reference" actually have the address in memory [called a pointer] of the input passed to the function (rather than a copy of the value the address contains) giving the function read-write access to the input parameter.

Below is the explanation offered by Omega inside their function code.

MULTIPLE-OUTPUT FUNCTIONS

A multiple-output function has two types of parameters or "inputs" - input parameters [passed by value] and input/output parameters [passed by reference]. The values of the input parameters are passed into the multiple-output function, but not modified by the function. The values of the input/ output parameters are passed into the multiple-output function, modified by it, and the modified values are then inherited by - or output to - the calling routine.

The input/output parameters are often used for output purposes only, i.e., the incoming values are ignored. The outputs are in addition to the function return. In multiple-output functions, the function return is generally used to return an error code, though sometimes the return may simply be a dummy value. The input/output parameters are declared with a "ref" suffix (such as "numericref") in the multiple-output function's declaration statements. For further clarity, the names of the input/output parameters are generally prefixed with an "o" in the function as well as in all the routines that call the function.

The built-in single-return WRAPPER FUNCTIONS that call the multiple-output functions are specialized calling routines designed to offer simplified, alternate pathways to the functionality of the underlying multiple-output functions. In the wrapper functions, the input/output parameters are declared as local variables and generally initialized to zero. They are passed through to the multiple-output function without further modification. After the call, the wrapper function picks out the single output of interest and assigns it as the return of the wrapper function.

{ ** Copyright (c) 1991-2001 TradeStation Technologies, Inc. All rights reserved. ** }

Goto Top Of Page

Transfer, or Import/Export, EasyLanguage modules

Q01) Thanks for the great commentary on the o-list [Omega-List@eskimo.com] today. Is sp6 [TS6?] not able to read ELA or ELS?

A01) TS6 can read "ELS" (2000i) and think "ELA" (TS and SC 4) files but it can only write to the new "ELD" format. So you can do your work in 20001 and TS4 and go up, but if you create code in TS6 you have to resort to the good old "Cut and Paste" method to get it back out...



Q02) Can studies be imported from previous versions of TradeStation products?

A02) Yes, studies, signals and strategies exported to ELA (TradeStation 4.0) or ELS (EasyLanguage PowerEditor 2000i) formats can be imported into the TradeStation software from the "File" - "Import/Export EasyLanguage" menu.



Q03) How do I transfer EasyLanguage files from previous versions of TradeStation?

A03) After you have exported your previous EasyLanguage files to ELA or ELS format files using your previous version of the software, use the "File" - "Import/Export EasyLanguage" menu in TradeStation 6 to start the "EasyLanguage Import Wizard". Follow the prompts to import the ELA or ELS file(s).



Q04) How do I import EasyLanguage studies (ELD, ELS, or ELA files) into TradeStation?

A04) Use these steps to import EasyLanguage studies into TradeStation 6:

Select the "File" - "Import/Export EasyLanguage" menu.
Verify that the "Import EasyLanguage file (ELD, ELS, or ELA)" selection is highlighted and click the [Next] button.
Enter the path and filename for the file you would like to import, or use the [Browse] or [Scan] options to search for files.
Once you have selected the desired file, click [Next] to continue.
Uncheck any types of studies that you do not wish to import and click [Next].
Uncheck any of the specific studies that you do not wish to import and click [Finish].
Click [OK] once the import is complete.
You will now be able to access the imported studies in the same manner as other installed studies.

Goto Top Of Page

HistoryBank and Third-Party Sources of Data



Q01) Why does the History Bank option lock up my server almost every time I try to download, particularly if I try to change the dates or other settings from the default?

A01) To solve it, I go to ...\OmegaResearch\Server\Temp and delete the two TMP files, and I go to ...\OmegaResearch\Server\PDS and delete all the IDX files. But this only works one out of several tries.

What am I doing wrong?

What could I do differently?

How do I make it function "as expected?

For some reason, the daily download I do usually misses the daily data. So I must go in every so often and fill in a week, or a month, of missing daily bars. It is important that I know how to do this without spending an hour fiddling with deleting files every time.

Please reply, tell me what is happening, how to rectify it, and what I must do in the future to have the software behave "as expected".

Samuel

Response from Omega below, that seemed to solve the problem, at least so far.

Mr. Tennis,
You could have a corrupted Cache file. Have you tried the deleting all HISTORYBANK.COM cache files? They are located in C:\Program Files\Omega Research\SERVER\ORMD\DATA. If you want to store that information, then back it up instead of deleting it.

If you have any further questions or concerns, please feel free to contact us. Thank you for your continued support.

Sami Kutbi
Support Services Department

TradeStation Technologies, Inc.
(formerly Omega Research, Inc.)
A wholly-owned subsidiary of
TradeStation Group, Inc. (Nasdaq: TRAD)
http://www.TradeStation.com

Note: The steps above (as suggested by Omega) did NOT solve my problem with the Server locking up when downloading from "HistoryBank.com".



Q02) Is there a web site somewhere that says what market/financial events will happen today (or tomorrow, etc)? Something that says, "At 8:30 EST the employment figures will be released."

A02) Try looking at these sites for starters...

http://biz.yahoo.com/c/e.html

http://biz.yahoo.com/mu/update.html

Goto Top Of Page

Maintaining your collected data

Goto Top Of Page

Import data to, or Export data from, your Symbol Portfolio

Goto Top Of Page

Help on Yahoo! Groups



Q01) What is Yahoo! Groups?

Yahoo! Groups is a free service that allows you to bring together family, friends, and associates through a web site and email group. You don't need to know HTML to create your own site. Yahoo! Groups offer a convenient way to connect with others who share the same interests and ideas.
We have hundreds of thousands of email groups that you can join in an easy-to-use, privacy-protected, and spam-protected environment. You can use the Yahoo! Groups service at our web site or through any email program.

For the full listing please click here...




Q02) How do I set up my Yahoo! Groups account?

Joining Yahoo! Groups is easy! To get started you will need to register for a Yahoo! ID and link it to any email addresses you wish to use for Yahoo! Groups.

Click here for more help...




Q03) How do I join a group?

For help in joining a group click here...




Q04) How do I verify my email address?

In order to use an email address for Yahoo! Groups, the address must be verified. The easiest way to set up your account is to use the Membership Wizard. The wizard will show all of the email addresses you currently have available for use in Yahoo! Groups. Any unverified addresses will be listed at the bottom of the second page. Next to the address will be a Verify link. Click on the link to generate a verification email that will be sent to you at that address. Follow the instructions contained in the email to complete the process.

For more help in verifying your eMail address, click here...




Q05) How do I unsubscribe from a group?

For help unsubscribing from a Yahoo! Group click here...




Q06) Why am I getting a sign-in error about "cookies"?

The Yahoo! Groups web site requires that your browser accept cookies. A cookie is a small text file stored by your browser to help identify you. If your cookie is not accepted correctly, you will be signed out of your account as soon as you move to a different page. Some older browsers are not able to accept cookies.

Please make sure that your browser is set to accept all cookies. If you are still having trouble, try closing all windows and then deleting the cookie files in your browser's program directory. Usually, these files are called "cookies.txt" or are stored in a folder called "Cookies." Then, try signing in to Yahoo! Groups again.

For hore help on cookies click here...




Q07) Help with file sharing.

One of the benefits of this group is the ability to share files [presumably related to EasyLanguage code].

For hore help sharing and downloading files click here...

Goto Top Of Page

Trading Related Clubs and Groups

Yahoo Group "Ask Mr. EasyLanguage" (MrEasyLanguage)
Category: Business & Finance > Financial Professionals > Traders

TradeStation allows users to build their own studies (Indicator, PaintBar and ShowMe) and trading systems using a simple but powerful language called EasyLanguage. Once a system is created you can back test the system, and TradeStation will tell you exactly how much money you would have made or lost, had you placed actual trades using that system.
"Ask Mr. EasyLangauge", published by Traders Press, is the definitive book on for anyone needing to learn Omega Research's EasyLanguage.

Subscribe to "Ask Mr. EasyLanguage" (MrEasyLanguage)

Goto Top Of Page Goto Top Of Page


Send comments or suggestions to SKTennis@Vista-Research.Com
Copyright 1998-2002 Vista-Research
Disclaimer, there is a risk of loss in trading.