| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Array_GetMaxIndex + Array_SetMaxIndex to find both functions/reserved words Array_GetMaxIndex Array_SetMaxIndex they do not seem to be a reserved word or function in this version of TradeStation. i would apreciate it if anyone here could post both functions as text or let me know if there is another way to reduce the number of index places inside an array after they have been verified. i could program the Array_GetMaxIndex myself but i am not sure how to handle the other one | ||
| |
|
| | #2 | ||
![]() | Re: Array_GetMaxIndex + Array_SetMaxIndex
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... | ||
| |
|
| | #3 | ||
![]() | Re: Array_GetMaxIndex + Array_SetMaxIndex inside an existing array, is my observation correct that they did not exist yet in ts2ki version? it does have the functions NthHighest_A and others but i am trying to find the place where the second largest or N-largest number is stored inside an existing array not the number itself but the indexplace. does this TS version have any other way to find the amount of values stored in an array? lets say i have an array which has stored 50 values, then i am using NthHighestArray( MyArray, 50, 3 ) to find the 3th highest number in that array.this 3th highest number i would like to change in another number, therefore i do need to know the place where this 3th highest number is stored in order to be able to change it. Last edited by flyingdutchmen; 10-30-2009 at 01:00 PM. | ||
| |
|
| | #4 | ||
![]() | Re: Array_GetMaxIndex + Array_SetMaxIndex MultiCharts might be cheaper or is it the money value of your time
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... | ||
| |
|
| | #5 | ||
![]() | Re: Array_GetMaxIndex + Array_SetMaxIndex Quote:
to find out how to solve this in this old ts version. i have used another easy language compatible software which i am not using anymore for various reasons up till last month and this was a pretty easy task, i find it hard to believe it cant be done even in an older version of tradestation. if you do not see another way how i could do what i would like to do in this version of ts just let me know. Last edited by flyingdutchmen; 10-30-2009 at 01:11 PM. | ||
| |
|
| | #6 | ||
![]() | Re: Array_GetMaxIndex + Array_SetMaxIndex Quote:
I guess if you really try... GV might help. otherwise hashnum or pushpop?
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... | ||
| |
|
| | #7 | ||
![]() | Re: Array_GetMaxIndex + Array_SetMaxIndex | ||
| |
|
| | #8 | ||
![]() | Re: Array_GetMaxIndex + Array_SetMaxIndex i have found solutions for both isues, finding out where exactly the n-highest or n-lowest value is stored wasnt to hard.i have codet an function to do the work. no need for multi-charts or any other software ![]() i now am able to change the N-highest value within an array MyArray[ IndexOfNHighestArray( MyArray, N, ArraySize ) ] = anything; i believe i even found a tricky way to decrease or increase the indices within an existing array, this one i am still working on. if there is any interest from other 2000i users i will post the scripts later on | ||
| |
|
![]() |
| Tags |
| array |
| Thread Tools | Search this Thread |
| Display Modes | |
| |