Welcome to the Traders Laboratory.

Coding Forum Collaborate, receive help, or discuss indicators and other coding-related topics

Reply
Old 04-26-2009, 04:17 PM   #17

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 4,052
Ignore this user

Thanks: 2,275
Thanked 1,663 Times in 1,010 Posts

Re: Array (EasyLanguage)

Quote:
Originally Posted by aaa »
Yes I reached my limits with arrays and I don't understand zigzag
I tried "my" indicator with 10 days long
It looks interesting especially scalping in 1 mn : the price stops always for a short break at highest last 1, 2 3 or more past days (cf picture below)
If you have time Could you make a correct code ?
Here is my terrible one
It works but slows down dramatically the software
Also the style is off

I have posted a sample code at the Trendline thread:
http://www.traderslaboratory.com/for...01&postcount=3

I posted it over there because the code does not use array.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
aaa (04-26-2009)
Old 04-26-2009, 04:39 PM   #18
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 466
Ignore this user

Thanks: 243
Thanked 354 Times in 151 Posts

Re: Array (EasyLanguage)

Eureka

The code is clear, elegant.

Have a nice week.
aaa is offline  
Reply With Quote
Old 05-05-2009, 04:09 PM   #19

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 4,052
Ignore this user

Thanks: 2,275
Thanked 1,663 Times in 1,010 Posts

Re: Array (EasyLanguage)

Quote:
Originally Posted by aaa »
Yes I reached my limits with arrays and I don't understand zigzag
I tried "my" indicator with 10 days long
It looks interesting especially scalping in 1 mn : the price stops always for a short break at highest last 1, 2 3 or more past days (cf picture below)
If you have time Could you make a correct code ?
Here is my terrible one

It works but slows down dramatically the software

Also the style is off


that's because there is an error in coding:
the code is adding a NEW trendline at every bar.
the dotted line you see is not a dotted line...
each dot is actually a trendline; if you click on the dot, you can drag the dot out and see the trendline.
Tams is offline  
Reply With Quote
The Following 2 Users Say Thank You to Tams For This Useful Post:
aaa (05-09-2009), TIKITRADER (07-30-2009)
Old 07-30-2009, 09:00 AM   #20

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 4,052
Ignore this user

Thanks: 2,275
Thanked 1,663 Times in 1,010 Posts

Re: Array (EasyLanguage)

Array Keywords

Array
Arrays
ArraySize
ArrayStartAddr

Array_Compare
Array_Copy
Array_GetMaxIndex
Array_GetType
Array_SetMaxIndex
Array_SetValRange
Array_Sort
Array_Sum
Tams is offline  
Reply With Quote
Old 08-30-2009, 09:02 PM   #21

Join Date: Apr 2009
Location: Katek
Posts: 20
Ignore this user

Thanks: 3
Thanked 0 Times in 0 Posts

Re: Array (EasyLanguage)

i am a little bit out of this thread, but i'd like also make a comparison
about array in easylanguage and ninjatrader.
It would it be possible to explain how array works in c# and how to conver an array from easylanguage to c#?
iwannatoscript is offline  
Reply With Quote
Old 08-31-2009, 06:29 AM   #22

HAL9000's Avatar

Join Date: Feb 2008
Location: There is no place like home!
Posts: 241
Ignore this user

Thanks: 230
Thanked 154 Times in 83 Posts

Re: Array (EasyLanguage)

Quote:
Originally Posted by iwannatoscript »
i am a little bit out of this thread, but i'd like also make a comparison
about array in easylanguage and ninjatrader.
It would it be possible to explain how array works in c# and how to conver an array from easylanguage to c#?
For Ninjatrader/C# you might look here:

Arrays (C# Programming Guide)


Regards,

Hal
HAL9000 is offline  
Reply With Quote
The Following User Says Thank You to HAL9000 For This Useful Post:
Tams (10-06-2010)
Old 10-26-2009, 04:47 PM   #23

Join Date: Oct 2007
Location: Pesaro
Posts: 25
Ignore this user

Thanks: 2
Thanked 5 Times in 5 Posts

Re: Array (EasyLanguage)

Quote:
Originally Posted by Tams »
Array Keywords

Array
Arrays
ArraySize
ArrayStartAddr

Array_Compare
Array_Copy
Array_GetMaxIndex
Array_GetType
Array_SetMaxIndex
Array_SetValRange
Array_Sort
Array_Sum
Hi TAMS,
Great Thread for newbie to ARRAY like me.........very useful......many Thanks!!!

Now I've some questions about arrays:
1) is it possible to make an array of arrays ?
For example an array made of 2 unlimited dimension array ?
FirstArray[ ] (0);
SecondArray[ ] (0);
MyFinalarray[FirstArray, SecondArray](0);

2) I know that an array could be a numeric array [ (0) ] or a string array [ (text) ] or a True/false array, but waht does it mean if I find an array like this:
MyArray [10] (-1);

Thanks for you contribution on this study about array.
CrazyNasdaq
Crazynasdaq is offline  
Reply With Quote
Old 10-26-2009, 04:54 PM   #24

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 4,052
Ignore this user

Thanks: 2,275
Thanked 1,663 Times in 1,010 Posts

Re: Array (EasyLanguage)

Quote:
Originally Posted by Crazynasdaq »
Hi TAMS,
Great Thread for newbie to ARRAY like me.........very useful......many Thanks!!!

Now I've some questions about arrays:
1) is it possible to make an array of arrays ?

are you talking about a 3 dimensional array?
Yes, you can build it with multiple arrays,
but no, it is not part of the EasyLanguage repertoire.



Quote:
2) I know that an array could be a numeric array [ (0) ] or a string array [ (text) ] or a True/false array, but waht does it mean if I find an array like this:
MyArray [10] (-1);

Thanks for you contribution on this study about array.
CrazyNasdaq

initialize the array to the value of -1.
read post #1, example included.

.
__________________
Arguing with a troll is a lot like wrestling in the mud with a pig, after a couple of hours you realize the pig likes it.

Last edited by Tams; 10-26-2009 at 05:00 PM.
Tams is offline  
Reply With Quote

Reply

Tags
array, easylanguage

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buy at Open with Easylanguage cleon Coding Forum 5 03-02-2011 11:16 AM
Antonio: Please help me on MP for easylanguage nasdaq5048 Market Profile 13 09-23-2010 09:50 AM
Can function in TS8 return array? ImXotep Technical Analysis 5 05-25-2009 02:13 AM
MT4 Indicator Array Problem. ForexSurfr Coding Forum 0 02-16-2009 12:19 PM
Some EasyLanguage Help Please jjthetrader Coding Forum 8 06-02-2008 04:20 PM

All times are GMT -4. The time now is 08:01 AM.
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
2006-2011 Traders Laboratory, All Rights Reserved.