Where does code debug get it's chart template from?

Back to topics list To post a new topic, please log in or register
avatar
865
fbj 2015.08.08 16:05
 

In MetaEditor on EA source I start debugger via F5

In ClientTerminal a new chart is displayed.

I need .tpl of my choice...

Same idea as when use StrategyTester, I name the .tpl of choice with the .ex4's <fname>.tpl 

I've done the renaming in all dirs having .tpl's but no joy.

I've searched total install tree for eg: "symbol=EURUSD" which would appear in the .tpl that ClientTerminal decided to use and no .tpl of any meaning to me has something that ClientTerminal would decide to use. I happens same .tpl each time too.

Any ideas how to use .tpl of my choice when debugging???

Thanks

 

avatar
2017
gooly 2015.08.08 17:48 #
 
create a template called debug.tpl
avatar
12995
WHRoeder 2015.08.08 20:59 #
 
<EAname>.tpl then debug.tpl then default.tpl are the defaults
avatar
865
fbj 2015.08.08 21:16 #
 
gooly:
create a template called debug.tpl

Thanks for reply but..... 

I created debug.tpl in templates from GBPUSD,M15 - totally clean chart. Beginning of debug.tpl is:

<chart>
id=130733356272852375
symbol=GBPUSD
period=15
...

Makes no difference, I had already tried this [just forgot to mention..]

So, I delete debug.tpl and get up the clean chart and 'save as' debug.tpl

I switch to ME and do F5 with a BP in place to suspend code..

Then, switch back to Terminal and USDCHF,H1 now showing/created - obviously when I hit F5.

If I re-enter ME and do shift-F5 the debug session stops and USDCHF,H1 removed.

debug.tpl still has above beginning - so not moded.

What now? 

 

avatar
2017
gooly 2015.08.08 21:42 #
 

The symbol and the time frame for debugging has to be set in the editor: Menu => Tools => Options => Debug.

The debug.tpl loads only the indicators and their setting you would like to see.


avatar
40
noobshow 2015.08.09 02:00 #
 
fbj:

Thanks for reply but..... 

I created debug.tpl in templates from GBPUSD,M15 - totally clean chart. Beginning of debug.tpl is:

<chart>
id=130733356272852375
symbol=GBPUSD
period=15
...

Makes no difference, I had already tried this [just forgot to mention..]

So, I delete debug.tpl and get up the clean chart and 'save as' debug.tpl

I switch to ME and do F5 with a BP in place to suspend code..

Then, switch back to Terminal and USDCHF,H1 now showing/created - obviously when I hit F5.

If I re-enter ME and do shift-F5 the debug session stops and USDCHF,H1 removed.

debug.tpl still has above beginning - so not moded.

What now? 

 


Creating debug.tpl is not in the form of a file..

Open a new chart load your templates (if any) and save templates again as debug.tpl using save template..
That's it.. You're done.
avatar
865
fbj 2015.08.09 09:05 #
 
gooly:

The symbol and the time frame for debugging has to be set in the editor: Menu => Tools => Options => Debug.

The debug.tpl loads only the indicators and their setting you would like to see.


The missing link. Thanks :)

Understand why picking up usdchf,h1 now. It was "..first symbol in the Market Watch window..".

Ref: "MetaEditor / MetaEditor Options / Debugging"
"If no symbol or chart period is specified in this tab, then the first symbol in the Market Watch window and period H1 will be used for debugging/profiling on default."

Regards debug.tpl, got that now too. I put whatever chart content  wanted such as special indicators, objects etc. via making copy of wanted .tpl and naming/save template as debug.tpl

Above combo of  "Menu => Tools => Options => Debug" + debug.tpl has sorted me out.

Many thanks to all. Been a long time since I've posted.

MT4 lives on ;)

 

Back to topics list  

To add comments, please log in or register