Need help how to show an account situation every 25st of the month

 

Hello,

Anyone can help with programming a simple code to show an account situation every 25st of the month?

I wish to compeer actual month to previous one to show the balance on the journal at the date.

The problem is with week-end and day off, I cannot get the journal to skip dose days and wrights message the day after.

There is what I have now but do not show good result:

// Account Info
//---
int situationDay;
int month = TimeMonth(TimeCurrent());
int day = TimeDay(TimeCurrent());

int result;

if(IsConnected()==true && Day()==25 && Hour()>=23 && Minute()==00) situationDay=true;
else
if(IsConnected()==true && Day()==26 && Hour()>=23 && Minute()==00 && result==-1) situationDay=true;
else
if(IsConnected()==true && Day()==27 && Hour()>=23 && Minute()==00 && result==-1) situationDay=true;

if(situationDay ==true)
result = 1;
else
result = -1;

if(result==1) Print("Month:",month,"Day:", day,"AccountEquity=$", NormalizeDouble(AccountEquity( ),2));

….

Then I will need to compeer the last month to this one to find the resulting balance !!! (may need help there too !)

Thanks.

Yvel13