P/L profit !

Posted By jerog Wednesday, May 21, 2014
Add to Favorites0
Author Message
jerog
 Posted Wednesday, May 21, 2014
Supreme Being

Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)

Group: Forum Members
Last Active: Thursday, June 05, 2014
Posts: 3, Visits: 15
809

Hi mates !

I want to use the profit of the trades to make a decision in my strategy.

How can I get the trades profit to use it inside ?

Thanks in advanced !

---
Admin
 Posted Friday, May 23, 2014
Administrator

Administrator - (123,783 reputation)

Group: Administrators
Last Active: Friday, June 02, 2017
Posts: 548, Visits: 3,295
Dear Jerog,



You can easily use the netpl attribute of the Ttrade parameter.


Example:

For i:=TradeList.count -1 downto 0 do Log('NetPL : ' + FloatToStr(TradeList.Get(i).NetPL));

http://help.sysfx.com/documents/traders_manual/4.7/en_US/data_types.htm?zoom_highlightsub=.netpl


Note: in the test mode this example will work only for the positions opened by the current strategy.

In real more all opened positions will be shown.


Best regards

-ACTFX© Forum Administrator
jerog
 Posted Sunday, June 01, 2014
Supreme Being

Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)Supreme Being - (809 reputation)

Group: Forum Members
Last Active: Thursday, June 05, 2014
Posts: 3, Visits: 15
809

ohh !

Thanks Smile

I will try it.

Regards !

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top