PureBytes Links
Trading Reference Links
|
thanks anthony!
I am trying to code the profit of a trade in the system tester.
I paste it and the profits are in negative and losses positive.
Also does not reset to cero after each trade resumes.
How do I do this?
//Current Trade Profit:
Lastbar = Cum(1) == LastValue( Cum(1) );
POS = Flip( buy, sell );
Plot(IIf(LastBar AND pos,E-ValueWhen(Buy,E),ValueWhen(Short,E) -
E),"Current Profit",9,2+4);
thanks again
juan
----- Original Message -----
From: "Anthony Faragasso" <ajf1111@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, September 05, 2003 9:03 PM
Subject: Re: [amibroker] Current Trade Profit
> Hello,
>
> pos is 1 if in long trade and 0 otherwise
>
> POS = Flip( buy, sell );
>
> Anthony
>
>
------------------------ 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/l.m7sD/LIdGAA/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/
|