PureBytes Links
Trading Reference Links
|
Thank you Al, in fact I turn OFF PriceBoundsChecking when debugging, in
which case it might be better to remove the = signas because = would be
legal and can occur at times.
btw, I discovered some funny behavior with values added to the Signal
Arrays... perhaps this method is not as fool proof as i thought. Signal
array values are changing in unpredictable ways .... perhaps TJ is using
them in some way that we are not aware of. Just ry adding 10, 100, 1000,
10000, ... and you'll see what i mean. I might have posted a bit too soon...
I think custom columns in the backtester are still on the (low priority)
to-do list :-) and that would solve the problem much better!
best regards,
herman.
-----Original Message-----
From: Al Venosa [mailto:advenosa@xxxxxxxxxxxx]
Sent: Tuesday, September 14, 2004 6:08 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Embedding custom information in Signal arrays
Herman van den Bergen wrote:
> // ... your systems code here
> BuyT = BuyPrice <= Low OR BuyPrice >= High;
> SellT = SellPrice < Low OR SellPrice > High;
> ShortT =ShortPrice < Low OR ShortPrice > High;
> CoverT = CoverPrice < Low OR CoverPrice > High;
> error = BuyT OR SellT OR ShortT OR CoverT;
> for( i = 0; i < BarCount ; i++ )
> {
> if(BuyT[i] AND Buy[i] ) Buy[i] = Buy[i] +10;
> if(SellT[i] AND Sell[i] ) Sell[i] = Sell[i] +10;
> if(ShortT[i] AND Short[i] )Short[i] = Short[i] +10;
> if(CoverT[i] AND Cover[i] ) Cover[i] = Cover[i] +10;
> }
>
Herman,
Good job with the diagnostic code. You forgot the = sign in the SellT,
ShortT, and CoverT statements as shown in the BuyT statement.
Thanks a lot for the code.
Al Venosa
[Non-text portions of this message have been removed]
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
----------------------------------------------------------------------------
--
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
b.. To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|