Code for monthly timeframe

 

Hi, Im new to coding and trying to modify an indicator use a monthly time frame . I have the following that works so far up to weekly but cant figure out how to get monthly working and what number i need to use for monthly. Also i am assuming 10080 minutes is correct for weekly as my indicator seems working correctly but not sure if i have the exact correct number please anyone correct me if im wrong.

Here is an example of the code:

int gia_96[] = {10080, 1440, 240, 60, 30, 15};

string gsa_108[] = {"W", "D", "H4", "H1", "M30", "M15"};

any help would be greatly appreciated!

 
nitrodigital:
Hi, Im new to coding and trying to modify an indicator use a monthly time frame . I have the following that works so far up to weekly but cant figure out how to get monthly working and what number i need to use for monthly. Also i am assuming 10080 minutes is correct for weekly as my indicator seems working correctly but not sure if i have the exact correct number please anyone correct me if im wrong.

Here is an example of the code:

int gia_96[] = {10080, 1440, 240, 60, 30, 15};

string gsa_108[] = {"W", "D", "H4", "H1", "M30", "M15"};

any help would be greatly appreciated!

Add "43200" in the array with numbers for monthly time frame

 

Wow that was fast. Thanks so much!

Reason: