1 (edited by AnarchoTrader 2016-12-26 00:02:18)

Topic: Some restrict in Control Panel - Symbols

On Control Panel - Symbols, I can't add or modificate imported via FSB-MT4 Brige symbols with postfix ".m", ".e" etc., used my brocker on some type of accounts. e - ECN, m - micro.
EURUSD.e, EURUSD.m, EURUSD.m1, ...

If it possible, fix it, please. Thx.

Re: Some restrict in Control Panel - Symbols

control panel > symbols

at the bottom enter your symbols with the suffix

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

3 (edited by AnarchoTrader 2016-12-26 02:27:25)

Re: Some restrict in Control Panel - Symbols

Blaiserboy wrote:

control panel > symbols

at the bottom enter your symbols with the suffix

Application prohibits to use as a Symbol of all but six letters. No more then six, and no dots.

I can import that symbols only via FSB MT4 Bridge. But than I can't edit properties of it.

Re: Some restrict in Control Panel - Symbols

in the meantime use the data supplied..... it is good data
I am sure that Popov has seen this in the past and has a fix, but I do not know it
sorry

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

Re: Some restrict in Control Panel - Symbols

Why do you need symbols with dots in FSB?
Set is with 6 capital letters and change the base file name in order to load files from MT. A data file doesn't contain the symbol name inside.

For example if your MT symbol is .AUDUSD, make an AUDUSD symbol in your Data Source and set base data file name ".AUDUSD".

If you want to manage both kind of symbols - with dots and without, use different Data Sources for them.

6 (edited by AnarchoTrader 2016-12-26 15:50:56)

Re: Some restrict in Control Panel - Symbols

Popov wrote:

Why do you need symbols with dots in FSB?
Set is with 6 capital letters and change the base file name in order to load files from MT. A data file doesn't contain the symbol name inside.

For example if your MT symbol is .AUDUSD, make an AUDUSD symbol in your Data Source and set base data file name ".AUDUSD".

If you want to manage both kind of symbols - with dots and without, use different Data Sources for them.

Now I simply save CSV data files from MT4 with deleted postixed from file names. "EURUSD.e1.csv" -> "EURUSD1.csv".
Add both those tickers EURUSD and EURUSD.e. In EURUSD.e automatically imported swops and spread from bridge MT4. Then I copypaste it to EURUSD and edit spred and comission. Then I use EURUSD for work.
But this method don't endable auto load hst-data form data directory, because MT4 create filenames with postfixed and that data downloading to symbols with postfixes.

And I tried you advice, if I correctly understand it. I edit symbol EURUSD - base file name - on ControlPanel - Symbols. But unfortunelly, Base filename don't enable dot too.

UPD. Now i edit base filenames of postfixed symbols to without dots. I think now data form csv filed will downloading to all of it.

7 (edited by GD 2016-12-27 06:53:38)

Re: Some restrict in Control Panel - Symbols

I preferred to make these changes inside EXPORT Data to CSV in MT5

My symbols are USDCAD_i etc. Simple!

//| Copyright:  (C) 2015 Forex Software Ltd.                           |
//| Website:    http://forexsb.com/                                    |
//| Support:    http://forexsb.com/forum/                              |
//| License:    Proprietary under the following circumstances:         |
//|                                                                    |
//| This code is a part of Forex Strategy Builder. It is free for      |
//| use as an integral part of Forex Strategy Builder.                 |
//| One can modify it in order to improve the code or to fit it for    |
//| personal use. This code or any part of it cannot be used in        |
//| other applications without a permission.                           |
//| The contact information cannot be changed.                         |
//|                                                                    |
//| NO LIABILITY FOR CONSEQUENTIAL DAMAGES                             |
//|                                                                    |
//| In no event shall the author be liable for any damages whatsoever  |
//| (including, without limitation, incidental, direct, indirect and   |
//| consequential damages, damages for loss of business profits,       |
//| business interruption, loss of business information, or other      |
//| pecuniary loss) arising out of the use or inability to use this    |
//| product, even if advised of the possibility of such damages.       |
//+--------------------------------------------------------------------+

#property copyright "Copyright 2015, Forex Software Ltd."
#property link      "http://forexsb.com"
#property version   "2.00"
string finalsymbol1=Symbol();
string finalsymbol=StringSubstr(finalsymbol1,0,6);
   

void  OnStart()
  {
   Comment("Loading...");
   int maxBars= MathMin(TerminalInfoInteger(TERMINAL_MAXBARS),100000);
   string comment="";
   ENUM_TIMEFRAMES periods[] = {PERIOD_M1, PERIOD_M5, PERIOD_M15, PERIOD_M30, PERIOD_H1, PERIOD_H4, PERIOD_D1, PERIOD_W1};
   for(int p=0;p<ArraySize(periods);p++)
     {
      comment+=ExportBars(periods[p], maxBars)+"\n";
      Comment(comment);
     }
   comment+="Ready";
   Comment(comment);
  }
  
string ExportBars(ENUM_TIMEFRAMES period, int maxBars)
{
   MqlRates  rates_array[];
   ArraySetAsSeries(rates_array,true);
   int bars=CopyRates(_Symbol,period,0,maxBars,rates_array);
   string fileName=finalsymbol+PeriodToStr(period)+".csv";
   string comment="";
   if(bars>1)
     {
      int filehandle=FileOpen(fileName,FILE_WRITE|FILE_CSV);
      for(int i=bars-1; i>=0; i--)
        {
         FileWrite(filehandle,
            TimeToString(rates_array[i].time,TIME_DATE),
            TimeToString(rates_array[i].time,TIME_MINUTES),
            rates_array[i].open,
            rates_array[i].high,
            rates_array[i].low,
            rates_array[i].close,
            rates_array[i].tick_volume);
        }
      FileFlush(filehandle);
      FileClose(filehandle);
      comment="File exported: "+fileName+", "+IntegerToString(bars)+" bars";
     }
   else
     {
      comment="Error with exporting: "+fileName;
     }
   return (comment);
}

string PeriodToStr(ENUM_TIMEFRAMES period)
  {
   string strper;
   switch(period)
     {
      case PERIOD_M1  : strper="1";      break;
      case PERIOD_M5  : strper="5";      break;
      case PERIOD_M15 : strper="15";     break;
      case PERIOD_M30 : strper="30";     break;
      case PERIOD_H1  : strper="60";     break;
      case PERIOD_H4  : strper="240";    break;
      case PERIOD_D1  : strper="1440";   break;
      case PERIOD_W1  : strper="10080";  break;
      case PERIOD_MN1 : strper="302400"; break;
      default : strper="";
     }
   return (strper);
  }
//+------------------------------------------------------------------+

8 (edited by kukreknecmi 2017-06-06 18:27:26)

Re: Some restrict in Control Panel - Symbols

AnarchoTrader wrote:

On Control Panel - Symbols, I can't add or modificate imported via FSB-MT4 Brige symbols with postfix ".m", ".e" etc., used my brocker on some type of accounts. e - ECN, m - micro.
EURUSD.e, EURUSD.m, EURUSD.m1, ...

If it possible, fix it, please. Thx.


For MT4, use attached EA to export to csv. It will remove .m's from filename so FSB can import it automatically (and continously i guess).

Found it somewhere, modified a bit. Have been using it for a long time.

Post's attachments

Cur_Loader.mq4 56.62 kb, 3 downloads since 2017-06-06 

You don't have the permssions to download the attachments of this post.