Discussion of article "Calculator of signals" - page 2

 
How do I install and run the signal calculator?
 
michel1982:
How to install and run the signal calculator?

Кто нибудь переведите на русский. Не могу уловить смысл.

 
Vladimir Karputov:

Кто нибудь переведите на русский. Не могу уловить смысл.

@Vladimir Karputov, Пользователь не пытался установить и уже спрашивал, как это сделать. Отсутствие воли с его стороны.


@Michel Angelo Xavier download the material and install it on your meta trader, if there are any compilation errors you can post them here!

 
Jonathan Pereira :

@Vladimir Karputov, Пользователь не пытался установить и уже спрашивал, как это сделать. Отсутствие воли с его стороны.


@Michel Angelo Xavier download the material and install it on your meta trader, in case of any compilation errors you'll post here again!

Thanks. Now it's clear :)

 
I'm fine too, THANK YOU.
 

On the topic of FAQ on the Signals service.

There is a point 13:

I have invented a script that searches the first six characters and prints out the information: whether there is a limit or not.

An example of such printout:

--- START ---
XAUUSD -> нет ограничений на торговые операции, mode Forex
--- END ---
--- START ---
USDRUR -> есть ограничения на торговые операции, mode NO Forex
USDRUR_i -> есть ограничения на торговые операции, mode NO Forex
--- END ---


Scripts:

//+------------------------------------------------------------------+
//|SymbolsTotal.mq5 |
//|| Copyright © 2016-2019, Vladimir Karputov |
//| http://wmua.ru/slesar/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2016-2019, Vladimir Karputov"
#property link      "http://wmua.ru/slesar/"
#property version   "1.005"
#property script_show_inputs
//--- input parameters
input string InpSearched = "XAUUSD"; // What is searched
//+------------------------------------------------------------------+
//| Script programme start function|
//+------------------------------------------------------------------+
void OnStart()
  {
   string no_rest=(TerminalInfoString(TERMINAL_LANGUAGE)=="Russian")?
                  "no restrictions on trading operations":
                  "no trade restrictions";
   string rest=(TerminalInfoString(TERMINAL_LANGUAGE)=="Russian")?
               "there are restrictions on trading operations.":
               "there are trade restrictions";
//---
   int symbols_total=SymbolsTotal(false);
   Print("--- START ---");
   for(int i=0; i<symbols_total; i++)
     {
      string name=SymbolName(i,false);
      if(StringFind(name,InpSearched,0)>=0)
        {
         //--- trading mode is checked
         long trade_mode=SymbolInfoInteger(name,SYMBOL_TRADE_MODE);
         string text="";
         if(trade_mode==SYMBOL_TRADE_MODE_FULL)
            text=no_rest;
         else
            text=rest;
         if(SymbolInfoInteger(name,SYMBOL_TRADE_CALC_MODE)==0)
            text=text+", mode Forex";
         else
            text=text+", mode NO Forex";
         //---
         Print(name," -> ",text);
        }
     }
   Print("--- END ---");
  }
//+------------------------------------------------------------------+

и

//+------------------------------------------------------------------+
//|SymbolsTotal.mq4 |
//|| Copyright © 2016-2019, Vladimir Karputov |
//| http://wmua.ru/slesar/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2016-2019, Vladimir Karputov"
#property link      "http://wmua.ru/slesar/"
#property version   "1.005"
#property script_show_inputs
//--- input parameters
input string InpSearched = "XAUUSD"; // What is searched
//+------------------------------------------------------------------+
//| Script programme start function|
//+------------------------------------------------------------------+
void OnStart()
  {
   string no_rest=(TerminalInfoString(TERMINAL_LANGUAGE)=="Russian")?
                  "no restrictions on trading operations":
                  "no trade restrictions";
   string rest=(TerminalInfoString(TERMINAL_LANGUAGE)=="Russian")?
               "there are restrictions on trading operations.":
               "there are trade restrictions";
//---
   int symbols_total=SymbolsTotal(false);
   Print("--- START ---");
   for(int i=0; i<symbols_total; i++)
     {
      string name=SymbolName(i,false);
      if(StringFind(name,InpSearched,0)>=0)
        {
         //--- trading mode is checked
         long trade_mode=SymbolInfoInteger(name,SYMBOL_TRADE_MODE);
         string text="";
         if(trade_mode==SYMBOL_TRADE_MODE_FULL)
            text=no_rest;
         else
            text=rest;
         if(SymbolInfoInteger(name,SYMBOL_TRADE_CALC_MODE)==0)
            text=text+", mode Forex";
         else
            text=text+", mode NO Forex";
         //---
         Print(name," -> ",text);
        }
     }
   Print("--- END ---");
  }
//+------------------------------------------------------------------+
Files:
 

Related topic Frequently Asked Questions about the Signals service .

There is item 13:

I came up with a script that searches the first six characters and displays information: they say there is a limitation or not.

An example of such a listing:

--- START ---
XAUUSD -> no trade restrictions, mode Forex
--- END ---
--- START ---
USDRUR -> there are trade restrictions, mode NO Forex
USDRUR_i -> there are trade restrictions, mode NO Forex
--- END ---


Code:

//+------------------------------------------------------------------+
//|                                                 SymbolsTotal.mq5 |
//|                         Copyright © 2016-2019, Vladimir Karputov |
//|                                           http://wmua.ru/slesar/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2016-2019, Vladimir Karputov"
#property link      "http://wmua.ru/slesar/"
#property version   "1.005"
#property script_show_inputs
//--- input parameters
input string InpSearched = "XAUUSD"; // What is searched
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
   string no_rest=(TerminalInfoString(TERMINAL_LANGUAGE)=="Russian")?
                  "нет ограничений на торговые операции":
                  "no trade restrictions";
   string rest=(TerminalInfoString(TERMINAL_LANGUAGE)=="Russian")?
               "есть ограничения на торговые операции":
               "there are trade restrictions";
//---
   int symbols_total=SymbolsTotal(false);
   Print("--- START ---");
   for(int i=0; i<symbols_total; i++)
     {
      string name=SymbolName(i,false);
      if(StringFind(name,InpSearched,0)>=0)
        {
         //--- trading mode is checked
         long trade_mode=SymbolInfoInteger(name,SYMBOL_TRADE_MODE);
         string text="";
         if(trade_mode==SYMBOL_TRADE_MODE_FULL)
            text=no_rest;
         else
            text=rest;
         if(SymbolInfoInteger(name,SYMBOL_TRADE_CALC_MODE)==0)
            text=text+", mode Forex";
         else
            text=text+", mode NO Forex";
         //---
         Print(name," -> ",text);
        }
     }
   Print("--- END ---");
  }
//+------------------------------------------------------------------+

and

//+------------------------------------------------------------------+
//|                                                 SymbolsTotal.mq4 |
//|                         Copyright © 2016-2019, Vladimir Karputov |
//|                                           http://wmua.ru/slesar/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2016-2019, Vladimir Karputov"
#property link      "http://wmua.ru/slesar/"
#property version   "1.005"
#property script_show_inputs
//--- input parameters
input string InpSearched = "XAUUSD"; // What is searched
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
   string no_rest=(TerminalInfoString(TERMINAL_LANGUAGE)=="Russian")?
                  "нет ограничений на торговые операции":
                  "no trade restrictions";
   string rest=(TerminalInfoString(TERMINAL_LANGUAGE)=="Russian")?
               "есть ограничения на торговые операции":
               "there are trade restrictions";
//---
   int symbols_total=SymbolsTotal(false);
   Print("--- START ---");
   for(int i=0; i<symbols_total; i++)
     {
      string name=SymbolName(i,false);
      if(StringFind(name,InpSearched,0)>=0)
        {
         //--- trading mode is checked
         long trade_mode=SymbolInfoInteger(name,SYMBOL_TRADE_MODE);
         string text="";
         if(trade_mode==SYMBOL_TRADE_MODE_FULL)
            text=no_rest;
         else
            text=rest;
         if(SymbolInfoInteger(name,SYMBOL_TRADE_CALC_MODE)==0)
            text=text+", mode Forex";
         else
            text=text+", mode NO Forex";
         //---
         Print(name," -> ",text);
        }
     }
   Print("--- END ---");
  }
//+------------------------------------------------------------------+
Files:
 
Vladimir Karputov:

Related topic Frequently Asked Questions about the Signals service .

There is item 13:

I came up with a script that searches the first six characters and displays information: they say there is a limitation or not.

...

Thanks a lot.
I think - those scripts (for Metatrader 4 and Metatrader 5) will be very usefull for the traders, especially for the users who are looking to subscribe to the signal.