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

EL Question



PureBytes Links

Trading Reference Links

Season's greetings everyone.

If the hypothetical scenario cited below is not possible in TS2k/EL please
let me know.

If it is possible, please advise what elements are needed to achieve the
desired result.  (for example, must use array and loop, use counter, or use
function so&so, etc)

Thank you.
***********************************************************
1. EventA is a defined event using StudyA (ex. MA crossover). 

2. When EventA occurs, capture the output value of (a different) StudyB. 
(the output value of StudyB is expressed as a number of bars, or possibly
the number of hours remaining in the current trading session)

3. Also when EventA occurs, begin counting so that something is plotted, or
an alert is triggered, when an input defined portion of the captured value
of StudyB has elapsed.  

Below is a plain English example to convey the desired result:

EventA (StudyA MA crossover) occurs. 
The value of StudyB at the same time as the MA crossover is 12 bars.
Begin counting and alert me when 6 bars (12 * Input(.5) ) have passed since
the MA crossover occurred. 

Thanks again.