PureBytes Links
Trading Reference Links
|
Thanks GRaham but no joy.
Cond5 = Cross( ValueWhen(Buy, L, 1) , L );
Is the 1 significant in the above code line?? Does it take the last looked
back signal?? In which case it may be referenceing from teh later date the
latest signal reading from the current (future) date ratrher than the actual
first occurence of the date.
-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx]
Sent: Monday, 5 July 2004 6:24 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Not selling at correct time?
To get actual uniquie signals for buy and selling you should use cross
instead of > for single conditions
Cond5 = Cross( ValueWhen(Buy, L, 1) , L );
Cond6 = Cross( H , 3 * ValueWhen(Buy, H, 1) );
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/
-----Original Message-----
From: Collectable Images [mailto:telecard@xxxxxxxxxxxxxx]
Sent: Monday, July 05, 2004 4:15 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Not selling at correct time?
Graham,
tried that but no joy. What I can not understand here is taht the buy
signals are generated ok but only the stop signal generates the sell. The
target code does not function. This should be simple. Trying to sell at
either the low of entry day or profit target equal to 300% of High price of
entry day.
Try adding
Buy = exrem(buy,sell);
to remove extraneous buy signals (or I believe Equity(1); does this as well)
Cond5 = L < ValueWhen(Buy, L, 1); //DOES THIS SAY cond5 is when Low of day
breaks Low of the BUY DAY?
Cond6 = H > 3 * ValueWhen(Buy, H, 1); // Does this say cond6 is when High of
day breaks the value 3 times Highprice of the Buy day??
Sell = Cond5 OR Cond6;
SellPrice = C;
buy = ExRem(Cond10, Sell);
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
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
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
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/
|