account information in custom indicator

 

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

Reason: