HistoryDealsTotal only returns 1

 


   mylabel("HistoryOrdersTotal ","HistoryOrdersTotal: "+string(HistoryOrdersTotal()),20,5,480);         result 220

   mylabel("HistoryDealsTotal ","HistoryDealsTotal: "+string(HistoryDealsTotal()),20,5,510);               result    1


HistoryDealsTotal does not return correct value ,it only returns 1 , removed history and profiles tried different ,machines ,Brokers and accounts both live and demo all same result.


Python integration return correct total using  mt5.history_deals_total but not in mql5 EA.


could you please help.