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

[amibroker] Plug-In for IntraDay ASCII Data



PureBytes Links

Trading Reference Links

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

<*> 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/