[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Something New?



PureBytes Links

Trading Reference Links

Try this
BuyPrice = valuewhen(buy,Condition1);


Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: chassis_73 [mailto:tessaglia@xxxxxxxxxxx] 
Sent: Wednesday, May 19, 2004 8:19 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Distorted buy

Hi mates,I 've got a little question.I set my TS with siple rules.
I've got a SL - 2.15 % and  TP 3%.

Condition1 = Open -0.48; 
Buy = my formula;
BuyPrice = Condition1;
Buy=IIf((L < Condition1),Buy,0);
Condition2 = BuyPrice + 0.48 ;
sell = my formula; 
sellprice = buyprice +0.50; 


but when in the backtest I examine trades I see that in black candle 
days(i.d. O 16.39 H 16.39 L 15.9 C 15.94)i'm buying at 15.91,and this 
is ok,and i'm selling at 16.39 and that's not correct cause from open 
the stock was going down.So I added Sell=IIf(C > O,Sell,0);but it 
doesn't work.

Does anyone know how could i do?

Best regards
Nick




Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/