Forum

How format 1590785.90 for get 1,590,785.90

Hi everybody, I are format the amount for the balance whit this code: double AccountBalance = DoubleToString ( AccountInfoDouble ( ACCOUNT_BALANCE ), 2 ); Whit this var i get for example "140.56" and its fine, but if the amount is 1590785.90 i get "1590785.90". How i can get "1,590,785.90"

Develop function iRSI multitimeframes

Hi everybody, I try to develop in MQL5 a function multi iRSI, i wish send in a parameter the TimeFrame for calculate and this return the value. I have this example but i need write a function for each timeframe, it's not practique. How i develop just a function multi time frames? Thanks :) double

How to get the datetime for last open trade (code mql5)

Hi everybody, I'am are very new in mql5, i try to develop a EA but i need get the datetime for last open trade. I have the next code but i get forever "2020-07-22 01:00:00" without work. Thank you, Regards datetime GetLastTradeOpenTime() { uint TotalNumberOfDeals = HistoryDealsTotal (); ulong