PureBytes Links
Trading Reference Links
|
Your suggestion put my on the right track to figuring it out. I think
the problem has something to do with variable scoping. I was
referencing "Buy_cond1" outside of the function first, making it global.
To make it work, I removed the reference to Buy_cond1 outside the
function and changed the call to
Buy_cond1 = rule1(a,b,c,d);
and it works as expected. I'm not clear on why it doesn't work in a
procedure, but is still probably scoping.
Thanks for the mental jog! I've been playing with this for hours.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/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/
|