PureBytes Links
Trading Reference Links
|
No apologies necessary, Terry. I appreciate your effort and
patience, and hope to be able to contribute to the group...someday.:)
The only rub now is that the operation was a success but the patient
died.:) I have working, error-free code that doesn't solve the
difficulty I was trying to get around.
I have "buy/sell" and "short/cover" rules that refer to my trend-
following indicator's binary signal, "1" for "uptrend" and "0"
for "downtrend." The problem is that the FLIP() function starts
at "0" by default until the first array (Cond1) is initialized.
There may or may not actually be a downtrend during this period, so I
get false "short" signals at the beginning of any data I'm testing.
After the first condition is initialized, though, everything works
perfectly.
I'm simply trying to get rid of the false signals, with no trades
taken until one or the other of the arrays is initialized.
Luck,
Sebastian
--- In amibroker@xxxxxxxxxxxxxxx, Terry <MagicTH@xxxx> wrote:
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|