- You get your "Odd text conversion message" because you are not using notepad or equivalent. You are converting Unicode to ANSI, thus the warning.
- Saved templates are ANSI. Your code is creating Unicode. If you open your PairChart and save as ANSI, it probably will work.
fileHandle=FileOpen(fileName,FILE_TXT|FILE_READ,"\t");
Change your code to output ANSI.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, I have spent hours trying to fix this.
I have Created a .tpl file which when I apply to a chart doesnt seem to apply correctly. I have narrowed the problem down to the Format Type of the file itself I beleive. Although it is saved as a .tpl file and is clearly so in window explorer, when I apply a different template with the exact same contents (after copying and pasting) the Template loads correctly.
I have attached the 'PairChart.tpl which doesn't work properly and the 'TemplateBLANKtplFile.tpl which does work. When I load the PairChart one, the Inputs (Leg1 and Leg2) do not update to what is in the file. You will see that the two are idetical in contents. I noticed that if I copy and Paste All from TemplateBLANKtplFile to PairChart (using Wordpad), and hit Save As it asks me some weird question about a changing the Text Format??
I have tried a whole variety of things in the code where I actually create the Text file but I cannot seem to get it to worlk and I know almost certainly is to do the way the .tpl is encooded.
Perhaps I need to use a certain set of FLAGS and/or Code Pages maybe??
Any help really is appreciated.
Here is the code that generates my custom tpl file
The above spits out the Attached PairCharts.tpl file.
This is the main body and I genuinely don't believe the problem is here: