I'm new here and I dont know about some MT4 features. I would like to know if there's a way to get the trade and account history fields via some API or coding. I need to get these data to tell a user to stop all operations if it reached the daily goal.
Is there a documentation or platform to developer?
Yes, you can. That is what this site is mostly about - coding in the MQL on MetaTrader. There is however, no external API.
For MetaTrader 4 documentation, go to http://www.metatrader4.com and for all the MQL4 documentation and tutorials go to http://www.mql4.com.
You can also use the "F1" Key (or the Help menu option) in MetaTrader and MetaEditor for the equivalent documentation.