Hi, I've got a simple questions: can I use account information functions in custom indicator ?
I mean functions such as: accountbalance(), accountfreemargin() or accountprofit() ?
How about such functions as: OrderStopLoss, OrderTakeProfit ? Although they are trading functions but they do not actually do any trading but simply report some values.
I use a 3 party EA for trading (no code to modify), so for reporting I wrote a seperate CI which was supposed to send me via mail info each time the position is opened or closed.
the simplest idea would be write another EA, but there is no possibility to attach 2 EAs on one chart...
will a script do the job ? if - let's say - I would make a loop and sleep the script to check the status i.e. every 5 minutes ?
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've got a simple questions: can I use account information functions in custom indicator ?
I mean functions such as: accountbalance(), accountfreemargin() or accountprofit() ?
How about such functions as: OrderStopLoss, OrderTakeProfit ? Although they are trading functions but they do not actually do any trading but simply report some values.
I use a 3 party EA for trading (no code to modify), so for reporting I wrote a seperate CI which was supposed to send me via mail info each time the position is opened or closed.
the simplest idea would be write another EA, but there is no possibility to attach 2 EAs on one chart...
will a script do the job ? if - let's say - I would make a loop and sleep the script to check the status i.e. every 5 minutes ?
best regards,
coval