PureBytes Links
Trading Reference Links
|
was: Re: Need ELA Wizard (help)
"Steven Brodnicki" <SPTRADER@xxxxxxxxxxxxxxxx> writes:
>I only want the alert one time if the condition is met on one bar. Tick
>by tick alerts are given constantly (you hit "ok" after the first alert,
>then another shows up immediately) till the bar closes, which is
>unacceptable.
I someone ever writes a FAQ, this should be near the top...
You can't do what you want without purchasing a "global variables"
add-on package, such as Doug Deming's GVPro, or the HashNums package
that I believe he also sells. The problem is remembering the
state of your EL variable over successive calls to your indicator
on each tick during the formation of the bar. TS refuses to keep
variable values, except when crossing a bar boundary. So, you
simply can't set a flag like "value1=1" because on the next tick
your code will find that value1 no longer equals 1.
Jim
|