Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.
-
Content Count
4075 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Calendar
Articles
Everything posted by Tams
-
a tutorial on Array: http://www.markplex.com/tutorial7.php
-
to avoid OT, I have set up a thread on Arrays: http://www.traderslaboratory.com/forums/f56/array-easylanguage-5785.html#post63149 any questions on Arrays may be posted there.
-
This thread is about Arrays. Array Declares one or more names as arrays, containing multiple variable data elements; specifies the array structure, data elements type and initial value, update basis, and data number, for each of the arrays. Data elements type can be numerical, string, or true/false. The number of elements in an array can be fixed or dynamic (unlimited). In arrays with a fixed number of elements, the elements can be arranged in single or multiple dimensions. A one-dimensional 10-element array contains 10 elements, a two-dimensional 10-element by 10-element array contains 100 elements, a three-dimensional 10 by 10 by 10 element array contains 1000 elements, a four-dimensional 10 by 10 by 10 by 10 element array contains 10000 elements, etc. The maximum number of array dimensions in EasyLanguage is 9. Each element in an array is referenced by one or more index numbers, one for each of the dimensions. Indexing starts at 0 for each of the dimensions. Dynamic arrays (arrays with an unlimited number of elements) are one-dimensional, and are initialized at declaration as having only one element. Declared dynamic arrays can be resized using Array_SetMaxIndex. Elements can be manipulated individually or as a group, in all or part of an array. Usage Array:<IntraBarPersist>ArrayName1[D1,D2,D3,etc.](InitialValue1<,DataN>), <IntraBarPersist>ArrayName2[D1,D2,D3,etc.](InitialValue2<,DataN>), etc... Parameters inside the angled brackets are optional Parameters IntraBarPersist - an optional parameter; specifies that the value of the array elements is to be updated on every tick If this parameter is not specified, the value will be updated at the close of each bar. ArrayName - an expression specifying the array name The name can consist of letters, underscore characters, numbers, and periods. The name cannot begin with a number or a period and is not case-sensitive. D - a numerical expression specifying the array size in elements, starting at 0, for each of the dimensions; a single expression specifies a one-dimensional array, two expressions specify a two-dimensional (D1 by D2) array, three expressions specify a three-dimensional (D1 by D2 by D3) array, etc. A dynamic array, with an unlimited number of elements, is specified by the empty square brackets: [] and will be a one-dimensional array. InitialValue - an expression, specifying the initial value and defining the data type for all of the elements in the array The value can be a numerical, string, or true/false expression; the type of the expression defines the data type. DataN - an optional parameter; specifies the Data Number of the data series the array is to be tied to If this parameter is not specified, the array will be tied to the default data series. Examples Declare Length and SFactor as 9-element one-dimensional numerical arrays with data elements' initial values of 0: Array: Length[8](0), SFactor[8](0); Declare Max_Price as a 24-element by 60-element two-dimensional numerical array, updated on every tick, tied to the series with Data #2, and with data elements' initial values equal to the value of Close function: Array:IntraBarPersist Max_Price[23,59](Close,Data2); Declare Highs2 as a dynamic numerical array with data elements' initial values of 0: Array:Highs2[](0); source: EasyLanguage manual
-
Is Trading Just Another Road to Enlightenment, That is the Question?
Tams replied to Szymon's topic in Trading Psychology
Fear is a good thing Fear is the recognition of a possible unknown. Fear is a bad thing Fear is the resignation of control (if that possible unknown is not dealt with). -
At is a Skip Word. Skip Words serve solely to improve the readability of EasyLanguage code and are skipped (ignored) during the compilation and execution. The use of Skip Words is optional; they can be inserted anywhere within the EL code and will appear red in Editor.
-
replace the keyword volume with ticks. Don't ask me why, in EasyLanguage... the keyword volume means "total upticks" in English, the keyword ticks means "total volume" in English.
-
some suggestions: 1. no need to assign these values to variable. You can use them as is. Hi = High; Lo = Low; Cl = Close; Vl = Volume; 2. get this book Building Winning Trading Systems with TradeStation Amazon.com: Building Winning Trading Systems with TradeStation: George Pruitt, John R. Hill: Books
-
TrackRange = Highest(High,TrackPeriod)-Lowest(Low,TrackPeriod); will get you the trading range... but is the range inside the screen display?
- 10 replies
-
- atr
- easylanguage
-
(and 2 more)
Tagged with:
-
Most of the charting software are "Event Driven". ie. the program is sitting idle, not doing anything, not calculating an update... until ...a new trade or barclose occurs. edit: after you have loaded the chart, once a tick has come in, the Info Printout will position itself in the right place. the only time you will see the printout misplaced is when you are offline. (ie. no ticks coming in.) :-(
- 10 replies
-
- atr
- easylanguage
-
(and 2 more)
Tagged with:
-
I am glad you can see the power in these simple ideas. What I am trying to do is to introduce some basic tools and tricks that people can use and modify to their methods. I will increase the complexity of the tools if people can pick them up. ... eventually I will combine these little tools and demonstrate how to build big and complex analysis. EasyLanguage is a powerhouse waiting to be unleashed. Enjoy! .
- 10 replies
-
- atr
- easylanguage
-
(and 2 more)
Tagged with:
-
I think it will require some major re-engineering work. I am busy in the next few weeks... let me see if I can schedule it sometime in May.
- 9 replies
-
- candle
- easylanguage
-
(and 3 more)
Tagged with:
-
here's a tutorial in array. I have not read it in detail, but I think it has the basic info you need. http://www.markplex.com/tutorial7.php .
-
nice ! you should add this to the code: // Masthead + Bottomline // version beta 0.2 // Author: TAMS // date: 20090416 // license: public use // description: this indicator prints the pertinent information on the bottom or top of the screen. // MultiChart version can adjust the text size. // you can easily modify this indicator with information of your choice // // beta 0.2 modification by aaa // date: 20090418 // beta 0.2: combined masthead with bottomline Great synergy! ;-)
- 10 replies
-
- atr
- easylanguage
-
(and 2 more)
Tagged with:
-
you sure can... just change plot1(c*4, "Bar High", paint.color); to plot1(LOW, "Bar High", paint.color); .
- 6 replies
-
- background
- color
-
(and 3 more)
Tagged with:
-
Over the years I have came across a few people with grand scheme like yours...
-
sorry I misunderstood you in the last post. If it works in one instrument, it should work in others. Maybe it is the chart resolution? The MC version works in sub-minute charts, (ie. sec, tick, CVB, etc.,) but the TS version can only work in minute charts.
-
probably the old TS is not capable of making the drawing objects.
-
-
are you referring to the original TradeStation HHLL code? Fredd has compiled an ELD here: http://www.traderslaboratory.com/forums/f56/free-easylanguage-indicators-5418.html#post59382
-
yes, it is just you. go to the IB website and watch their instruction webinars. everything is there.
-
type in ES... TWS will take you through the rest.
-
I have tried AmiBroker. I found AB to be a solid platform, with a reliable trading engine and rich backtesting facilities. However the AFL (AB's proprietary programming language) is a bit quirky. The syntax is not as extensive as MC's enhanced EasyLanguage, and there are not as many free code examples on the web. p.s. if AB adds EasyLanguage compatibility (which, with their programming prowess, is not that difficult to do), can make AB a formidable alternative.
-
you can give MultiCharts a try. MultiCharts is a TradeStation clone, except better. It can run multiple strategies at the same time.
-
MultiCharts has made extensive enhancements to the EasyLanguage. You can do a lot more analysis (eg. at sec or tick levels) and plot the results on the chart with more text/graphics manipulations. (eg. adjust text size, draw trendlines/arrows on subcharts, etc.) p.s. a lot of these enhancements are what TradeStation users have been begging for many years (see TradeStation forum).
-
$50 !?!?! That's a good deal.