PureBytes Links
Trading Reference Links
|
<SPAN
class=393404712-11102003>you could also use a profit stop, if I'm udnerstanding
what you're trying to do.
<SPAN
class=393404712-11102003>
<SPAN
class=393404712-11102003>dave
<BLOCKQUOTE
>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<FONT
face="Courier New, Courier">Buy=<FONT
face="Courier New, Courier" color=#0000ff>Cross<FONT
face="Courier New, Courier">(<FONT face="Courier New, Courier"
color=#0000ff>MA<FONT
face="Courier New, Courier">(C,<FONT face="Courier New, Courier"
color=#ff00ff>2),<FONT
face="Courier New, Courier" color=#0000ff>MA<FONT
face="Courier New, Courier">(C,<FONT face="Courier New, Courier"
color=#ff00ff>24));cond1 =
Cross<FONT
face="Courier New, Courier">(<FONT face="Courier New, Courier"
color=#0000ff>MA<FONT
face="Courier New, Courier">(C,<FONT face="Courier New, Courier"
color=#ff00ff>24), <FONT
face="Courier New, Courier" color=#0000ff>MA<FONT
face="Courier New, Courier">(C,<FONT face="Courier New, Courier"
color=#ff00ff>2));cond2 =
(BuyPrice / Close)*<FONT face="Courier New, Courier"
color=#ff00ff>100 > <FONT
face="Courier New, Courier" color=#ff00ff>104<FONT
face="Courier New, Courier">;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
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|