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

Re: EL Question



PureBytes Links

Trading Reference Links

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
>
>
>
>