STOP INDICATOR AT EXPIRATION DATE

[Deleted]  

hi! i would like to set an expiration date into my indicator and stop him when date is out

thank you in advance!

 
pilote5548:

hi! i would like to set an expiration date into my indicator and stop him when date is out

thank you in advance!


Is it to make it commercial....

Not hard to code but with all decompilers it has almost no sense to do it

To do this .. How do you think it can be done

[Deleted]  
pilote5548:

hi! i would like to set an expiration date into my indicator and stop him when date is out

thank you in advance!


I advised my EA's to stop on Friday evening, bevor the weekend.

With

int aktHour = TimeHour(TimeCurrent());
int aktMinute = TimeMinute(TimeCurrent());

I get the actual time.

With DayOfWeek() I get the day.

if(myTime == Friday and Hour > .....) stop working.

 
24hworker:


I advised my EA's to stop on Friday evening, bevor the weekend.

With

int aktHour = TimeHour(TimeCurrent());
int aktMinute = TimeMinute(TimeCurrent());

I get the actual time.

With DayOfWeek() I get the day.

if(myTime == Friday and Hour > .....) stop working.


That is a good method for not trading the Fridays, but pilote5548 is looking for stop working indicator after a certain date

if(TimeCurrent()>...........){return(0);} after start is enough