PureBytes Links
Trading Reference Links
|
A couple of things
The Buy = should have a 0 or 1 answer (true or false) Buy = BuyPrice does
not work as a singular event.
Buy price is dictated by the buy signal and and the bar referenced by your
settradedelays.
As far as the rest, not sure off hand except include some added IIF
conditions for the price to be >low and <high of the purchase day.
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/
-----Original Message-----
From: Ernie Newman [mailto:ewn87544@xxxxxxxxxxx]
Sent: Tuesday, 24 February 2004 10:30 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Help with Buy Sell Signal
Hi
I am trying to test a Profit Test using support and resistance. I want to
buy only if the price hits the S1 level and buy at that
price and sell only when the price reaches the R1 level.
Where
PP= (High+Low+Close)/3;
R1=(PP * 2) - Low;
S1= (PP * 2) - High;
The below buys and sells the correct price only if the price reaches that
level otherwise it could buy the open or sell the close. How can I make it
not buy if the price is not reached or sell.
BuyPrice = S1;
Buy = BuyPrice;
SellPrice = R1;
Sell = SellPrice;
Thanks
Ernie
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 ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/
|