Forum

HistoryDealGetDouble(ticket, DEAL_PROFIT) always = 0.0?

Hi all, My funtion: double ProfitCheck( long const magic_number) { double profit= 0.0 ; HistorySelect ( 0 , TimeCurrent ()); int trades_total = HistoryDealsTotal (); for ( int i= 0 ; i < trades_total; i++) { long ticket = HistoryDealGetTicket (i); long type =

Problem with double/double

Hi all, I have a problem with code: #property indicator_separate_window // Indicator is drawn in the main window #property indicator_buffers 2 // Number of buffers #property indicator_color1 Blue // Color of the 1st line #property indicator_color2 Red // Color of the 2nd line