filename of EA - array of opened charts - get initial deposit - acces closed trades
Hello,
i have few questions, if somone will know answer to any of them, please dont hesitate to answer. Thanks
1) Is there a way (maybe via WIN-API) to get NAME (or filename) of an EA attached on ANOTHER CHART than my EA is?
yes by reading *.CHR file
2) Can i get array of all opened chart-tabs?
3) Can i somehow get "initial deposit" (ment the very first "balance" added to the account / or SUM(all deposits- all withdrawals)
https://www.mql5.com/en/forum/124726
4) How can i access the closed trades (history)
OrderSelect (......, MODE_HISTORY);
I know that those questions arn't the easiest, but i hope there will be some smart peoples able to help.
Thanks a lot in advance
Thanks,
someone might find it useful:
{
string name = TerminalPath()+"\\profiles\\"+profileName+"\\chart";
if(i<10)name = name+"0";
name = name+i+".CHR";
if(ReadFile(name) == ""){ Print(name+" IS EMPTY!");break;}else{
Print(name+":\""+ReadFile(name)+"\"");
}
}
Hello,
i have few questions, if somone will know answer to any of them, please dont hesitate to answer. Thanks
1) Is there a way (maybe via WIN-API) to get NAME (or filename) of an EA attached on ANOTHER CHART than my EA is?
2) Can i get array of all opened chart-tabs?
3) Can i somehow get "initial deposit" (ment the very first "balance" added to the account / or SUM(all deposits- all withdrawals)
4) How can i access the closed trades (history)
I know that those questions arn't the easiest, but i hope there will be some smart peoples able to help.
Thanks a lot in advance