Join our fan page
- Views:
- 5128
- Rating:
- Published:
- 2020.05.30 10:31
- Updated:
- 2020.07.19 08:15
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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](https://c.mql5.com/i/code/library.png)
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](https://c.mql5.com/i/code/script.png)
Sets of latin, russian characters, digits, punctuation, etc.
![Binary Flags](https://c.mql5.com/i/code/library.png)
How to minimize bool parameters in a function signature?
![EMA on RSI](https://c.mql5.com/i/code/indicator.png)
Calculates a Exponential Moving Average based on RSI Data, instead of the regular Pricing data. Simple and and to the point.