How to check daily_profit with mq4
Hi, I use below code to check daily profit. I will stop EA when daily profit reached to the target.
But when I first time attach the EA on the chart and check the daily profit value, it shows account equity.
I wonder why...
It should be zero when I attach the EA for the first time.
Where do you print the value?
Where do you print the value?
HI, I just print as comment.
Comment ("daily_profit="+daily_profit())
But why it shows equity?
HI, I just print as comment.
But why it shows equity?
I don't see how it can show the equity.
Search in your code for another Comment() that may be overwriting it.
Hi, I use below code to check daily profit. I will stop EA when daily profit reached to the target.
But when I first time attach the EA on the chart and check the daily profit value, it shows account equity.
I wonder why...
It should be zero when I attach the EA for the first time.