Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
I'm trying to code my own EA but I'm very new to this.
These are few things that I want to do:
1. Calculate profit based on closed orders - better if it can be per trading session (from opening terminal until closing it)
2. Calculate number of lots per trading session
3. Turn off the EA automatically when limit reached (for example profit/loss limit, etc)
I assume that these are a very basic codes, but somehow I couldn't find them myself. :(
Thanks before.