| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Variable Counter Array i have a counter based on a condition and what i would like to know is how to create an one dimentional array that will allign all the closing values when the counter value is 1.. (the counter value is one everytime the condition occurs). the chart displays the counter values... my question has to do with the kind of loop required to populate such an array.. so if the counter is mycounter and the array myarr i have tried for j = 1 to mycounter begin myarr[j] = c[j]; end; also if mycounter = 1 then for j = 1 to mycounter begin myarr[j] = c[j]; end; but it didnot work... any help on this will be much appreciated. | ||
| |
|
| | #2 | ||
![]() | Re: Variable Counter Array | ||
| |
|
| | #3 | ||
![]() | Re: Variable Counter Array Quote:
Tell me what is this SUPPOSED to do?
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #4 | ||
![]() | Re: Variable Counter Array and the array holds 20 elements.. every time a bullish key reversal happens the counter is 1 and incrementing by 1 for all the bars beteen key reversals.. when the counter resets to 1 the array is populated with the closing values of the last 20 keyreversals in the chart and will keep those values unchanged unill a new bullish key reversal appears ant the counter resets to 1 again.. i hope that this will be clear enough.. many regards | ||
| |
|
| | #5 | ||
![]() | Re: Variable Counter Array
__________________ Only an idiot would reply to a stupid post Last edited by Tams; 09-29-2009 at 09:47 AM. | ||
| |
|
| | #6 | ||
![]() | Re: Variable Counter Array what about arr[2] etc... also 20 was an example the array elements should be contolled via length input.. regards | ||
| |
|
| | #7 | ||
![]() | Re: Variable Counter Array what you want to do is preserve the array... at least that is how you do it Visual Basic --- redim preserve array() I am trying to find a resource for this on EL -- haven't found it yet. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Array (EasyLanguage) | Tams | Coding Forum | 44 | 01-26-2012 11:45 AM |
| Global Variable V2.2 | Tams | Trading Indicators | 10 | 02-24-2010 01:23 PM |
| Array Question | andypap | Coding Forum | 4 | 07-22-2009 02:45 PM |
| Can function in TS8 return array? | ImXotep | Technical Analysis | 5 | 05-25-2009 02:13 AM |
| Tick Counter for Tradestation | dow(n) | Coding Forum | 2 | 02-16-2008 04:17 PM |