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

[amibroker] Re: My Real World System for IBM: Sell=C ???



PureBytes Links

Trading Reference Links

> Sell=C; 

This looks like an error. Sell should be a condition (true/false or 
1/0), but C is a price. 

It may not be a "Real World System", due to a look into the future 
(check Close, set Buy Price to Open and sell at Close same day).

--- In amibroker@xxxxxxxxxxxxxxx, "nkis22" <nkishor@xxxx> wrote:
> Below is my day trading strategy for IBM, simple, and long only.
> 
> Why is it that the sell arrows in AB appear a day late?
> Any ideas?
> 
> nand
> 
> 
> 
> //======================================
> SetTradeDelays(0,0,0,0);
> Buy=IIf(Cross(C,Ref(H,-1)),1,0);
> BuyPrice=IIf(O>Ref(H,-1),O,Ref(H,-1)+ 0.20);
> Sell=C; 
> Buy=ExRem(Buy,Sell);
> Sell=ExRem(Sell,Buy);


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get a FREE REFINANCE QUOTE - click here!
http://us.click.yahoo.com/2CXtTB/ca0FAA/i5gGAA/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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/