Download MetaTrader 5

Scripts: Separators

To add comments, please log in or register
Automated-Trading
Admin
100952
Automated-Trading 2016.06.09 14:15 

Separators:

Adds period separators to your window, at a time of your choice.

Author: Diogo Seca

richbois
29
richbois 2016.11.23 11:30  
Automated-Trading:

Separators:

Author: Diogo Seca

great indicator    but 1 issue

 when i close MT5  and then restart    the lines are gone

 is there a way to fix this

 Thank you in advance 

Sergey Golubev
Moderator
94544
Sergey Golubev 2016.11.23 15:45  
richbois:

great indicator    but 1 issue

 when i close MT5  and then restart    the lines are gone

 is there a way to fix this

 Thank you in advance 

This is not an indicator. This is the script. The main differences between indicators and the scripts are the following:

Forum on trading, automated trading systems and testing trading strategies

What is the diference between an "Indicator" and a "Script"?

Forex Trader, 2005.08.30 21:44

There is two major differences:
1) A custom indicator remains attached to a chart till its removed or the chart is closed; a script will detach from a chart as soon as its finished executing (of course, you could keep it executing in a loop).
2) An indicator's start() function gets called on every tick event for the chart; a script's start() function gets executed right after its init() function gets executed (not waiting for any tick event). (I hope I got this one correct.)

Diogo Seca
2721
Diogo Seca 2016.11.24 13:26  
Sergey Golubev:

Thank you for the correction Sergey.

richbois:

richbois,

I wrote this script as a quick way to analyse the best timings to enter and exit 1-day-trades.

I am considering writing it as an Indicator, in the future, so that it's fully attached to the chart, and usable in EAs as a visualization tool.

 

Cheers,
Diogo Seca

To add comments, please log in or register