Changing the source code does not change the executable until you compile. Why does that surprise you?
Changing the source code does not change the executable until you compile. Why does that surprise you?
It looks like the problem occurs when one takes the following steps:
Create a chart template with a custom indicator.
Make a code change to said indicator and compile. The chart now has the latest, code.
Re-apply the chart template. Now the chart has reverted to the custom indicator as it existed when the chart template was saved.
Grateful for comments and insight. Luck all :)
- jepper #: The code *is* compiled (over and over, and then over). The time stamp however *unchanged*.
If the time stamp did not change you didn't compile that file.
- jepper #:
Make a code change to said indicator and compile. The chart now has the latest, code.
Re-apply the chart template. Now the chart has reverted to the custom indicator as it existed when the chart template was saved.
No. It has not reverted; there are no saved versions to revert to. Applying the template just reset the indicator's parameters to what is in the template.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
A bit of a weird issue here. I write a lot of EA's and indicators, and I compile all the time of course. Sometimes, I apply the EA and indicators to a chart using a template. Now what I see is that the previous version of said code is running, until I hit recompile - until I apply the template that is! I noticed that the time stamp on the ex4 does not change after recompile, so clearly this is connected.
One way I found around it, is to insert a blank space in the source, and then recompile, after which the ex4 time stamp is, as expected, updated, the change is persistent, and applying the template produces the correct result. Anyone seen this?