Jump to content

Recommended Posts

Posted
soundfx, great job. thank you. i would add CurrencySuffix to support different brokers.

 

extern string CurrencySuffix = "";

 

//+------------------------------------------------------------------+
//| Creates the array of pair symbols to check                       |
//+------------------------------------------------------------------+   
string CreateSymbolList()
 {
  string allsyms;
  string Currencies[] = {"AED", "AUD", "BHD", "BRL", "CAD", "CHF", "CNY", "CYP", "CZK", "DKK", "DZD", "EEK", "EGP", "EUR", "GBP", "HKD", "HRK", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JOD", "JPY", "KRW", "KWD", "LBP", "LTL", "LVL", "LYD", "MAD", "MXN", "MYR", "NOK", "NZD", "OMR", "PHP", "PLN", "QAR", "RON", "RUB", "SAR", "SEK", "SGD", "SKK", "SYP", "THB", "TND", "TRY", "TWD", "USD", "VEB", "XAG", "XAU", "YER", "ZAR"};
  int CurrencyCount = ArrayRange(Currencies, 0);
  int Loop, SubLoop;
  string TempSymbol;
  for(Loop = 0; Loop < CurrencyCount; Loop++)
      for(SubLoop = 0; SubLoop < CurrencyCount; SubLoop++)
        {
          TempSymbol = Currencies[Loop] + Currencies[subLoop] + CurrencySuffix;
          if(MarketInfo(TempSymbol, MODE_BID) > 0)
            {
              ArrayResize(Symbols, SymbolCount + 1);
              Symbols[symbolCount] = TempSymbol;
              allsyms = allsyms + TempSymbol +"n";
              SymbolCount++;
            }
        }
  return(allsyms);
 }
 

 

just use first six symbols, instead of adding suffixes...

  • Replies 621
  • Created
  • Last Reply

Top Posters In This Topic

Posted

I think what is being said is to replace

 

string Currencies[] = {"AED", "AUD", "BHD", "BRL", "CAD", "CHF", "CNY", "CYP", "CZK", "DKK", "DZD", "EEK", "EGP", "EUR", "GBP", "HKD", "HRK", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JOD", "JPY", "KRW", "KWD", "LBP", "LTL", "LVL", "LYD", "MAD", "MXN", "MYR", "NOK", "NZD", "OMR", "PHP", "PLN", "QAR", "RON", "RUB", "SAR", "SEK", "SGD", "SKK", "SYP", "THB", "TND", "TRY", "TWD", "USD", "VEB", "XAG", "XAU", "YER", "ZAR"};

 

with just 6 or say 8 major currencies

 

string Currencies[] = {"AUD", "CAD", "CHF", "EUR", "GBP", "JPY", "NZD", "USD"};

 

there exists internally code within which makes all possible currency pairs automatically

Posted

Hi Guys,

 

I've changed the code on miksa's recommendation to handle obscure broker suffixes (for example some ECNs put "cx" on the end of pair names etc.):

 

http://www.multiupload.com/05OWQWR5T5

 

All currencies are hardcoded, however a pair will only be processed if the broker has a price for it. If your broker allows you to trade SEK or SGD, though you'll never be interested in trading them, then by all means just reduce the currency codes in that list to the main 8 as wilson suggested.

Posted
Hi Guys,

 

I've changed the code on miksa's recommendation to handle obscure broker suffixes (for example some ECNs put "cx" on the end of pair names etc.):

 

http://www.multiupload.com/05OWQWR5T5

 

All currencies are hardcoded, however a pair will only be processed if the broker has a price for it. If your broker allows you to trade SEK or SGD, though you'll never be interested in trading them, then by all means just reduce the currency codes in that list to the main 8 as wilson suggested.

 

Thanks for adding stuff, but I'm a bit lost now. My broker has this kind of code: GBPUSDSB. How do I modifify the indi? This one works ok with other brokers but not with mine.

Posted
Thanks for adding stuff, but I'm a bit lost now. My broker has this kind of code: GBPUSDSB. How do I modifify the indi? This one works ok with other brokers but not with mine.

 

try to change extern string CurrencySuffix = ""; to

extern string CurrencySuffix = "SB";

Posted

I'm posting what the indi looks like on 2 different brokers

http://i52.tinypic.com/kb40f5.jpg

The left one has more pairs yet the right one shows more exotical ones. Is it possible the different time, which is only only 1 hour between the 2, makes all this difference?

Posted
try to change extern string CurrencySuffix = ""; to

extern string CurrencySuffix = "SB";

another way is it to change value of CurrencySuffix parameter on Input tab of the Indicator.
Posted
I'm posting what the indi looks like on 2 different brokers

The left one has more pairs yet the right one shows more exotical ones. Is it possible the different time, which is only only 1 hour between the 2, makes all this difference?

most likely not all pairs were shown (enabled) in Market Watch of broker #2.
Posted

alright,

 

Given that we're right at the cut-off point for the new week, then an hour can make all the difference, though only around this time each week.

 

Broker 1 could still be looking last weeks data whereas broker 2 could now be in a new week and will use that in the trending calculations.

Posted
I am sorry all.

When I loaded the 5 indi plus 1 tpl, the chart does not look like the chart of waterskiguy.

Please anybody advice me. What's happpend?

thanks

 

Did you place the template files within the template directory? Please explain your install procedure.

Posted

write2kc,

thanks for your kind response.

I put 4 ex4 and 1 mql file in indicator folder. And 1 tpl file in template folder.

Please advice.

Regards,

Anton

 

 

Did you place the template files within the template directory? Please explain your install procedure.
Posted

Did you install the template in the corrcet template folder ?

There are 2 template folders within MT4. The one you want for windows XP is: C:\ Program Files \Metatrader\templates, not the template folder within the experts folder.

If you have windows 7 or Vista, they will be in a slightly different place. You must specify what OP you have.

The template folder should appear in the dropdown list, called "mtf rsi arrows clock".

There loads of videos on you tube of how to load indicators & templates in Mt4.

Posted
I am sorry all.

When I loaded the 5 indi plus 1 tpl, the chart does not look like the chart of waterskiguy.

Please anybody advice me. What's happpend?

thanks

 

I believe in the file I uploaded there are two templates - one with color coded bars and one with out - to have the one with color coded bars use indo-invest template

Posted

Hi waterskiguy, write2kc and shabz,

 

Thanks for your kind advices.

I use windows XP. I have downloaded file at #138. It consists of 4 ex4, 1 mql and 2 tpl.

I copy all ex4 plus 1 mql in indi folder. I copy 2 tpl in template folder. In my H4 chart appears no arrow and only 1 histoalert.

please advice.

I am sorry for my lack of knowledge question.

Thanks,

Anton

Posted
Hi waterskiguy, write2kc and shabz,

 

Thanks for your kind advices.

I use windows XP. I have downloaded file at #138. It consists of 4 ex4, 1 mql and 2 tpl.

I copy all ex4 plus 1 mql in indi folder. I copy 2 tpl in template folder. In my H4 chart appears no arrow and only 1 histoalert.

please advice.

I am sorry for my lack of knowledge question.

Thanks,

Anton

 

http://www.alpari-us.com/en/mt4_templates.html

Posted
Hi Guys,

 

I've changed the code on miksa's recommendation to handle obscure broker suffixes (for example some ECNs put "cx" on the end of pair names etc.):

 

http://www.multiupload.com/05OWQWR5T5

 

All currencies are hardcoded, however a pair will only be processed if the broker has a price for it. If your broker allows you to trade SEK or SGD, though you'll never be interested in trading them, then by all means just reduce the currency codes in that list to the main 8 as wilson suggested.

 

pliz make alert indicator

Posted
Thanks, I've just downloaded it. Ill take a look at it tomorrow if I can find a broker in my MT4 terminal collection without the annoying weekend spreads set to 50 odd pips.

 

You can Manupulate the spreads in MT4 for backtesting purposes by using this file from Post #7 here : http://www.forexfactory.com/showthread.php?t=234441

 

please be noted that your internet has to be disconnected during using mt4 over the weekend. otherwise the spread will be automatically changed by broker to odd numbers.

Posted

anton:

If you have already followed shabz explanation of the right directory structure for installing the template files and have watched the video posted by musketeer and still are unable to resolve this, I'm afraid I'm at a loss to explain why you are having this problem...unless perhaps there is something wrong with your MT4 installation to begin with. If you are successfully displaying other templates then I really am at a loss. MT4 is MT4 with usually some minor broker customizations. What works for mine should work for yours if it is installed correctly and there is nothing wrong with the MT4 application itself. If none of the aforementioned solutions work for you try to do a fresh install, make sure that you have sufficient system resources such as memory which could also impact your display ( thought I'm not sure that's the issue here ).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...