How to determine loss by amount?

Created at 18 May 2014, 23:59
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DT

dtniam8

Joined 10.05.2014

How to determine loss by amount?
18 May 2014, 23:59


I want to compare loss by amount. For example GrossProfit is less then -10 negative. How would I do that. So far I've been doing

if (GrossProfit < 0) to determine negative but it doesn't help on determine by how much. Please help. Thanks.


@dtniam8
Replies

Spotware
19 May 2014, 09:28

RE:

dtniam8 said:

I want to compare loss by amount. For example GrossProfit is less then -10 negative. How would I do that. So far I've been doing

if (GrossProfit < 0) to determine negative but it doesn't help on determine by how much. Please help. Thanks.

if (GrossProfit < -10)

 


@Spotware

dtniam8
20 May 2014, 07:29

LOL i thought that would give a compile error. thanks.


@dtniam8

tinker.this
23 May 2017, 11:45

And what about finding the biggest loser


@tinker.this