Author Topic: MT4 number of templates in folder  (Read 2472 times)

domana

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
MT4 number of templates in folder
« on: February 07, 2017, 04:08:16 PM »
HP says in one of his posts that BDM is template driven.
I have installed 1.34 and 1.42 in two different demos. In both demos when I click on Templates I can only see about half the number of templates that have been installed.

Is there a limit to the number of templates in the template folder? If not how can I see the rest of the templates that are not showing up in the template folder?

Also how can I keep the classified folders in the zipped installation files. They do not show up after installing them in the template folder.

Thanks

Hotpotato

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
  • Karma: +15/-0
Re: MT4 number of templates in folder
« Reply #1 on: February 07, 2017, 05:23:01 PM »
No, there is no limit to the total number of templates on MT4.

BDM has the limit of 8 templates you can specify in the BDM presets or you can tell BDM where it can find a template definition file.
You have to create that file yourself with the templates you think you need.

Hold on, i am just looking where i specified the place and layout of that template file.
(i know i explained it somewhere, just can't find it)

What do you mean by "classified folders in the installation file" ?
« Last Edit: February 07, 2017, 06:18:29 PM by Hotpotato »

Hotpotato

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
  • Karma: +15/-0
Re: MT4 number of templates in folder
« Reply #2 on: February 07, 2017, 10:31:20 PM »
Domana.

From this post for the next 4 or 5 post handle the BDMtemplate.txt file.
http://metacharttools.com/index.php?topic=14.msg44#msg44

domana

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: MT4 number of templates in folder
« Reply #3 on: February 08, 2017, 04:12:51 AM »
No, there is no limit to the total number of templates on MT4.

BDM has the limit of 8 templates you can specify in the BDM presets or you can tell BDM where it can find a template definition file.
You have to create that file yourself with the templates you think you need.

Hold on, i am just looking where i specified the place and layout of that template file.
(i know i explained it somewhere, just can't find it)

What do you mean by "classified folders in the installation file" ?

Hi HP

"classified folders in the installation file"
In the download zipped installation file there are folders MQL4, Sounds, Templates. In the templates folder are sub folders- BDMAHA, BDMDEFAULT etc each containing a number of .tpl files. The BDMxxxx sub-folders are what I mean by "classified folders" for lack of a better term.
Sorry if this may not be the correct way to describe the situation.
Meantime my brain is having a hard time trying to figure out how to go about setting up BDMtemplate.txt file. However I will persevere, have a whisky, and re-read your messages, bang my head against the wall until they make sense - just kidding!
Thanks HP

Hotpotato

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
  • Karma: +15/-0
Re: MT4 number of templates in folder
« Reply #4 on: February 08, 2017, 09:51:52 AM »
Did you load one of the preset examples like BDM~AHA and had a look at the settings ?

If you load BDM you can define up to 8 templates you want to use.
Those templates appear under the Templates tab and you can use the buttons to switch templates on "normal" charts (after you clicked fi. the EUR button) or on dashboards (another story).

If you need more than 8 templates you have to create a BDMtemplates.txt file in MQL4/Files/BDM and tell BDM in the startup settings that you want to use a file instead of using the 8 in the startup settings.
The layout of the file is described in the topic (link posted before).

maintemplates.PNG
 
 Ps. just spotted an error in the startup settings.
The BDMtemplates.txt file is not in MQL4/Files/BDMTEMPLATES but in MQL4/Files/BDM
« Last Edit: February 08, 2017, 09:54:36 AM by Hotpotato »

Hotpotato

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
  • Karma: +15/-0
Re: MT4 number of templates in folder
« Reply #5 on: February 08, 2017, 10:01:53 AM »
To be complete the definition of the BDMtemplates.txt file

bdmtemplates3.PNG

Button name=[directory]template name

Button name is the text in the button under the template tab in the main BDM menu.
Template name is the name of the corresponding template.

Without a [directory] BDM uses templates/BDMDEFAULT to find the template otherwise it uses the [directory\] first but if the template is not there
it will try to find it in BDMDEFAULT.

Example:

BDMTRADE=BDMTRADER\BDMTRDv1

Button will say BDMTRADE and when you click on it BDM will first look in the BDMTRADER directory for the template named BDMTRDv1 and load it on all open charts if it finds it.
If it isn't in BDMTRADER it will look in BDMDEFAULT to see if it there and load it on open charts.

You should want to keep your templates organized so in the startup settings you can set a default template directory to search for that specific setup you are loading.

templatedirectory.PNG

« Last Edit: February 08, 2017, 10:13:29 AM by Hotpotato »

Pax

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 319
  • Karma: +3/-0
Re: MT4 number of templates in folder
« Reply #6 on: February 08, 2017, 11:35:39 PM »
Quote
I am sorry HP you have lost me completely here- X
Where can I find this illustration of the 'Main Template'?
The image between the line beginning 8 templates what..... and the words 'O wait, you don't...

Hope this message turns out understandable!!!

As HP already mentioned, there are 2 ways that I know of to list out the templates

1- set max of 8 templates in the BDM EA settings
1-8 templates in EA settings.png

2- when i have more than 8 templates, I'd use the text file BDMtemplates.txt located in

2-location of the template list.png

- the format of BDMtemplates.txt

3-format of text file.png

- so the templates folder looks like

4-template folder.png

- then the BDM header will show 8 templates per tab

5-fist set of templates.png
6-second set of templates.png

« Last Edit: February 08, 2017, 11:39:56 PM by Pax »

Hotpotato

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
  • Karma: +15/-0
Re: MT4 number of templates in folder
« Reply #7 on: February 09, 2017, 12:01:32 AM »
You are way,way better with images than i am.... :o

domana

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: MT4 number of templates in folder
« Reply #8 on: February 09, 2017, 06:30:45 AM »
Quote
I am sorry HP you have lost me completely here- X
Where can I find this illustration of the 'Main Template'?
The image between the line beginning 8 templates what..... and the words 'O wait, you don't...

Hope this message turns out understandable!!!

As HP already mentioned, there are 2 ways that I know of to list out the templates

1- set max of 8 templates in the BDM EA settings
 [ Invalid Attachment ]

2- when i have more than 8 templates, I'd use the text file BDMtemplates.txt located in

 [ Invalid Attachment ]

- the format of BDMtemplates.txt

 [ Invalid Attachment ]

- so the templates folder looks like

 [ Invalid Attachment ]

- then the BDM header will show 8 templates per tab

 [ Invalid Attachment ]
 [ Invalid Attachment ]

Hi Pax

Thanks for the information. I will use the info to fix the templates problems.  :)

domana

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: MT4 number of templates in folder
« Reply #9 on: February 09, 2017, 04:19:22 PM »
Quote
I am sorry HP you have lost me completely here- X
Where can I find this illustration of the 'Main Template'?
The image between the line beginning 8 templates what..... and the words 'O wait, you don't...

Hope this message turns out understandable!!!

As HP already mentioned, there are 2 ways that I know of to list out the templates

1- set max of 8 templates in the BDM EA settings
 [ Invalid Attachment ]

2- when i have more than 8 templates, I'd use the text file BDMtemplates.txt located in

 [ Invalid Attachment ]

- the format of BDMtemplates.txt

 [ Invalid Attachment ]

- so the templates folder looks like

 [ Invalid Attachment ]

- then the BDM header will show 8 templates per tab

 [ Invalid Attachment ]
 [ Invalid Attachment ]

Hi Pax
I am trying to fix problems with your post- only partially working
Quick question:
How do I get to the BDMtemplates.txt? I don't seem to be able to see it.
So far BDM is not freezing up but BDM header is not coming up.

Sorry to keep troubling you
ThanksBDM templates.txt.png

Hotpotato

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
  • Karma: +15/-0
Re: MT4 number of templates in folder
« Reply #10 on: February 09, 2017, 04:42:25 PM »
A .txt is just a notepad editable file.
In MT4 go to File->Open data folder  and go to the folder MQL4/Files/BDMtemplates.txt and double click on it.
« Last Edit: February 09, 2017, 04:44:19 PM by Hotpotato »

domana

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: MT4 number of templates in folder
« Reply #11 on: February 09, 2017, 04:50:34 PM »
A .txt is just a notepad editable file.
In MT4 go to File->Open data folder  and go to the folder MQL4/Files/BDMtemplates.txt and double click on it.

Hi HP

I did say I am a dumb a*. Sure thing there is a lot more study time to be paid for.
The first hurdle is to get BDM working. The next million hurdles is to learn how to trade
Thanks - might get it right one of these days  :'(

Hotpotato

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
  • Karma: +15/-0
Re: MT4 number of templates in folder
« Reply #12 on: February 09, 2017, 04:57:27 PM »
A .txt is just a notepad editable file.
In MT4 go to File->Open data folder  and go to the folder MQL4/Files/BDMtemplates.txt and double click on it.

Hi HP

I did say I am a dumb a*. Sure thing there is a lot more study time to be paid for.
The first hurdle is to get BDM working. The next million hurdles is to learn how to trade
Thanks - might get it right one of these days  :'(

Just make sure that you are not on MT4 build 1045 - you will never get BDM working correctly -
Perhaps your broker already has an update to 1048, try to close and restart MT4 to see if there is an update.

domana

  • Newbie
  • *
  • Posts: 41
  • Karma: +0/-0
Re: MT4 number of templates in folder
« Reply #13 on: February 16, 2017, 05:40:13 AM »


As HP already mentioned, there are 2 ways that I know of to list out the templates

1- set max of 8 templates in the BDM EA settings
 [ Invalid Attachment ]

2- when i have more than 8 templates, I'd use the text file BDMtemplates.txt located in

 [ Invalid Attachment ]

- the format of BDMtemplates.txt

 [ Invalid Attachment ]

- so the templates folder looks like

 [ Invalid Attachment ]

- then the BDM header will show 8 templates per tab

 [ Invalid Attachment ]
 [ Invalid Attachment ]


[/quote]

Hi Pax

I am very confused with this BDMtemplates.txt process.

I can find the file and have no problem to open it for input of details.

If your inputs shown are saved with the same name as BDMtemplates.txt would this over-write the original .txt file? If so I assume the new file will be found in the original location of BDM “files”. What happens if you need to use the file again

However you show that this BDMtemplates file is in C:\TRADING\MT BDM\templates|PAX and this is also seen in the properties screen shot. I can understand PAX as a folder for your working templates but do not quite understand the use for C:\TRADING etc
 

This is where I am even more confused because I don’t get this on my BDMv1.42. The installation is not working because it is on MT4 1045. However I managed to get a screen shot of the .txt screen.

Can you please explain if your time permits the reason for the location C:\TRADING\MT BDM\MQL4\files\BDM

Did you create a folder TRADING with sub-folders with the path MT BDM\MQL4\files\BDM

I am going to download a generic MT4 as suggested by HP on Post#260 in FF. Hopefully this will enable me to get to see the workings of your earlier reply to my queries.

Thanks for your time in trying to help - very much appreciated

Pax

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 319
  • Karma: +3/-0
Re: MT4 number of templates in folder
« Reply #14 on: February 16, 2017, 06:38:06 AM »
hi Domana:

yes
C:\TRADING is the folder that I created to install my MT4... just my choice instead of the usual
C:\Program Files (x86)\...

I've created 15 templates, that's why you saw 15.
that's how we users build and store our own templates.

If you have less than 8 templates then you would declare them in the EA settings
and would not have to concern with the text file BDMtemplates.txt at all.

You know that BDM is template-driven right.
« Last Edit: February 16, 2017, 06:45:40 AM by Pax »