PureBytes Links
Trading Reference Links
|
Thanks Dave, I'll try that.
I think it's time for a re-read of the AFL reference library.
Especialy for things like Status & ValueWhen.
KR
Michael.
At 09:46 AM 11/10/2003 -0400, you wrote:
>sorry, yes, shouldn't post before caffeine...
>
>I'm still not sure I'm understanding what your cond2 is supposed to be. do
>you mean to refer to buyprice at the time of the buy, not on the current
>day? if so, I think that'd be ValueWhen(Buy, BuyPrice).
>
>if I'm to be trusted on this little caffeine...
>
>dave
>But a Profit stop would overide the sell crossever wouldn't it?
>
>Michael.
>
>
>At 08:48 AM 11/10/2003 -0400, you wrote:
>>you could also use a profit stop, if I'm udnerstanding what you're trying
>>to do.
>>
>>dave
>>How does one reference the Opening position price for a long trade?
>>I wish to make a sell condition based on the current gain.
>>ie
>>Buy=Cross(MA(C,2),MA(C,24));
>>cond1 = Cross(MA(C,24), MA(C,2));
>>cond2 = (BuyPrice / Close)*100 > 104;
>>Sell = cond1 AND cond2;
>>Im not sure if this code is actuualy working correctly. (ie buyprice).
>>Is it ok to use BuyPrice in this manner?
>>MSG.
------------------------ 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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|