Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 05-18-2010, 10:38 AM   #9

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Maximum Value in Array if Condition is True

Quote:
Originally Posted by BlowFish »
This will preserve your indents and make things easier for people to read.
he's too lazy to bother,
so I won't bother either.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 05-18-2010, 07:56 PM   #10

Join Date: Dec 2008
Location: athens
Posts: 54
Ignore this user

Thanks: 0
Thanked 4 Times in 3 Posts

Re: Maximum Value in Array if Condition is True

guys

this is a technical problem i am doing my best to describe...it is not an ethical problem...
if someone knows how it can be resolved and wants to do it can post a solution...

i think that this is only a matter of a certain structure of the array in a coupple of lines..

it can be viewed as a general routine (tutorial) in arrays because the conditions i am describing in the code can be replaced by any condition and the value assigned in the array by any value...

the benefit of this structure is isolating specific conditional instances within a more general condition without refering to bars back....
every time the counter = 1 the array slot will be filled with any desired value as long a the first general condition is true....
the counter doesnot have a fixed length so the array is filled in terms of length assymetrically...
thus you can get an assymetric n = (array size) moving average for example of highs
everytime rsi crosses over 70 ( this is not what i am after anyway) or anything else you can imagine of practical use...

so far everything works fine exept the fact that untill in the current run of the general condition , the occurances reach the size of the arrray, the array is bringing forward values from the previous run of the general condition...

regards
andypap is offline  
Reply With Quote

Reply

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


All times are GMT -4. The time now is 02:40 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.