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

[amibroker] Sell only if Gain > Target Gain.



PureBytes Links

Trading Reference Links



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


  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.