Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

Indicators

chkOnlineStatus - indicator for MetaTrader 4

| English Español Português 日本語 Deutsch

Views:
5813
Rating:
votes: 4
Published:
2017.11.20 08:52
Updated:
2017.11.29 09:41

chkOnlineStatus shows the three relevant items of the online status of the terminal:

  1. prev_calculated: Sometimes the terminal sets prev_calculated to zero and forces an indicator to re-calculate the complete history.
  2. ping: The ping changes, which might be caused by a switch to a different server.
  3. connected: Shows the connections status.

Is send you an email if for a longer period (MinutesWaitMail) the server seems to be unavailable.

prev_calculate set to zero again and again might become important if you want to code an indicator on OOP base. A (re-) declaration of all the classes might take quite some time and can cause a warning: "Your indicator is to slow..."

The setup window offers you:

  1. TimerMillSeconds: Number of milliseconds for OnTimer(), minimum is 100 mSec.
  2. SchowOnChart: Shows the actual and previous status as comment on the chart.
  3. PrintToLog: Prints a change of a status to the expert log.
  4. MinutesWaitMail: Minutes to wait until an email is send. If the connection to the internet is broken, the email is stored (without an error) and sent right after the connection is available again.

Setup

If the indicator show the status on the chart you will see:

Screenshot

Each item of the status can use 6 lines ([0..5]). The latest entry is always in top of its group. Here you can see that for prev_calculated the latest and actual entry has the highest number of rets_total: 2'048. This shows you as well that the mt4 several times sets prev_calculated to zero until the available history is loaded.

You can start it beside other indicators or together with an EA. In this case you should better de-activate the comments.

You need only ONE for each terminal (I guess).

I hope it helps you!

Translated from German by MetaQuotes Software Corp.
Original article: https://www.mql5.com/de/code/19455

Self Optimizing RSI or MFI Trader Self Optimizing RSI or MFI Trader

This robot optimizes the values it uses for overbought and oversold based on what would have been profitable during the Optimization periods(bars) back. Using the strategy of selling when the index indicator crosses below overbought and buying when the index indicator crosses above oversold.

Multi Timeframe Triple Moving Averages Multi Timeframe Triple Moving Averages

This indicator allows you to see the Moving Averages from different timeframes on the same chart. It helps you to spot the dynamic levels of support and resistance. It uses a custom window with check boxes to show/hide the different Moving Averages without need to access the indicator settings window.

CEquityHstBar CEquityHstBar

CEquityHstBar - library for showing the equity of EA back-testing by the offline chart.

SL&TP Values SL&TP Values

Indicator displays the value of defined stop loss and or take profit in the deposit currency.