Hello,
I mean the sum of all closed profitable trades. I don't want to consider open trades in the calculation.
Latest posts made by Jnmr1
-
RE: Gross profitposted in Questions & Answers
-
Gross profitposted in Questions & Answers
Hello,
Is their a way to calculate gross profit in MQL5? (profit without subtracting loss)Thank you
James -
terminal variables?posted in Questions & Answers
Hello, Im wondering if I can use terminal variables ie gvar0 as an input for lot size for example. so instead of having 0.01 as the input put gvar0. that way i can change the lot size on all of my running ea's at once?
-
RE: new block please?posted in Questions & Answers
Ok, the only issue i see with this is that there is no way to point to the last trade opened. if you look at the screen shot you will see that because there is both a buy and sell that have taken place both sets of loop blocks will pass. an example of the logic im looking for would look something like this:
look at last order opened regardless of weather it is currently running or closed, if it is a buy position then continuously pass.  -
new block please?posted in Questions & Answers
Hello,
I am currently using "pass once" & "reset" blocks in my EA. the problem is if the EA restarts, they have no memory of their state before the restart. would it be possible to create a block that looks at the attributes of the last trade (open or closed) for a given currency pair (buy, sell, etc). The "Check type (last closed)" block will not work because there is a 50/50 chance that the last trade will still be open.thank you
James -
Once per blockposted in Bug Reports
It does not appear that the values from Set "Current Market" for next blocks pass to Once per bar block. the values pass to all other blocks, including blocks connected below once per bar block

