[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EL Question(addendum)



PureBytes Links

Trading Reference Links

Oh one other thing...the goal is:
after doing a (close-value1) for each count of condition1 in a for loop (if
it is possible) then plot the total count of condition1s (in the loop) that
meet a specific criteria of (close-value1), ie, (close-value1=something).
The next time the loop runs, you consider only those condition1s that
haven't met the criteria yet, and if some do in this loop, then add the
counts in this loop to the total counts (that have met criteria) from prior
loops.
Again, something that I was hoping to do to achieve this was maintain a
status for each condition1 (something like a 0 until it meets the criteria
and 1 when it does...so that once 1, remains 1 not to be considered in
future loops).
But stuck :(
Thanks
Romi
----- Original Message -----
From: "Romi Ghose" <r.ghose@xxxxxxxxx>
To: "Benjamin Blanco" <ezlang@xxxxxxxxxxxxxxxxxx>; <omega-list@xxxxxxxxxx>
Sent: Saturday, November 02, 2002 11:23 AM
Subject: Re: EL Question


Hi Ben/List,
First of Ben, thanks very much for always responding to my SOS calls :)
Yes you are right, this technique (see below) does indeed have the fastest
response and as a matter of fact I have tried this but here's the problem
that I should have mentioned in my initial posting (sorry!).
This technique works perfect for the most recent Condition1.  How would I
subtract 'value1s' of multiple 'Condition1s' from Close?
What I have been able to do so far is plot a count of the number of
Condition1s on the bar they are occurring in two ways: 1) if condition1 then
count# else zero or 2) if condition1 then count# and continue that count#
until it encounters with the next condition1 when you simply increment it by
1.
Next I was hoping that I would be able to use the total count of condition1
in a for loop (for count=1 to count...) and do the individual subtractions
(close-value1) for each count of condition1.  But this is where I am failing
and can't seem to move forward.  Is the for loop in EL limited to do stuff
only from x to y (or from y down to x) contiguous bars?
Once again thanks a lot for your help and hope you or someone can steer me
in the right direction.
Take care
Romi
----- Original Message -----
From: "Benjamin Blanco" <ezlang@xxxxxxxxxxxxxxxxxx>
To: "Romi Ghose" <r.ghose@xxxxxxxxx>
Sent: Friday, November 01, 2002 3:06 PM
Subject: Re: EL Question


> Hello Romi,
>
> Record the close of that condition when it occurs in a variable.  For
> example:
>
> if Condition1 then
>   Value1 = Close ;
>
> if Value1 > 0 then
>   Plot1( Close - Value1, "Plot1" ) ;
>
>
> Best regards,
>
> Benjamin Blanco,
> EasyLanguageŽ Specialist
> ( former TradeStation Technologies, Inc. employee of six years )
> http://www.benjaminblanco.com/
>
> EasyLanguage is a registered trademarks of TradeStation Technologies, Inc.
>
> ----- Original Message -----
> From: "Romi Ghose" <r.ghose@xxxxxxxxx>
> To: <omega-list@xxxxxxxxxx>
> Cc: "Benjamin "ElGuru" Blanco" <elguru@xxxxxxxxxxxxxxxx>
> Sent: Thursday, October 31, 2002 8:58 PM
> Subject: EL Question
>
>
> Hi Folks,
> What is the most efficient (ie, fast) EL to subtract the 'close' of a
> condition (I know not when in the past) from the 'close' of the current
bar
> and then plot the resultant?
> Using 'currentbar' to do this seems a little bit slow (not sure if the
> slowness is only initially when you insert the indicator)...and also it
> increases the maxbarsback (again not sure why?)
> Romi
>
>
>
>