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
Scripts

Quick Market-watch Launcher v1.1 - script for MetaTrader 5

Nelson Wanyama

Views:
2897
Rating:
votes: 20
Published:
2020.05.30 10:31
Updated:
2020.07.19 08:15

This is an updated and improved version, with an included updated of the license terms.

The spread parameter has been coded as a list of section variables, with an option to open all symbols on the market-watch. 


Usage is still simple.

//--- these are user input variables accessible from the terminal when launching the script
input ENUM_TIMEFRAMES Time_frame = NULL;
input spread Max_spread         = all_values;

//--- this is the SymbolInfo object(comes with the standard package) for ease of use of symbol properties.
CSymbolInfo m_symbol;


We loop through the market-watch and check symbol properties(spread and availability on the market-watch) while checking the spread suitability through a function of type int maxSpread(), which  processes the user inputs.

The loop:

for(int i = 0; i < SymbolsTotal(true); i++) {
          Pair = SymbolName(i, true);
          if(Pair == SymbolName(i, true)) {
               if(m_symbol.Name(Pair)) {
//--- check spread propertiex
                    int spread_limit = maxSpread(Max_spread);
                    //---
                    if(spread_limit == -1)
                         ChartOpen(Pair, Time_frame);
                    else if(m_symbol.Spread() < spread_limit)
                         ChartOpen(Pair, Time_frame);
               }
          }
//--- close the attached chart since another instance is opened.
          if(i == 0)
               ChartClose(0);
     }

Compile the file and launch it on any chart and select your preferred settings.

Your continued use of this product will serve as a confirmation of your agreement to the GNU license terms.

Enjoy your pips!

    Base64Encrypt Class Base64Encrypt Class

    This a library for a quick and easy encryption and decryption using base64. The usage is very simple and can be done in a few lines of code. <<< The return value of a method is the required output. <<< Feel free to use this library at your convenience.If it is helpful, please reward me by rating this item on mql5 site. >>From a developer, for developers.<<

    Alphabet structure Alphabet structure

    Sets of latin, russian characters, digits, punctuation, etc.

    Binary Flags Binary Flags

    How to minimize bool parameters in a function signature?

    EMA on RSI EMA on RSI

    Calculates a Exponential Moving Average based on RSI Data, instead of the regular Pricing data. Simple and and to the point.