I got a warning that my code folders were getting full. I used the 'Indicator Maintenance' and deleted unused files.
I have changed the code in the chart and clicked 'Apply' but no changes are reflected in the chart. If I open the same .AFL again the changes are there.
What I thought I said was that after, " I got a warning that my code folders were getting full. I used the 'Indicator Maintenance' and deleted unused files.", then apply no longer worked.
I can be reasonably sure it was the correct file, but have no proof. I have already fooled myself by having the wrong file so am aware of that mistake.
My concern is what happened when Maintenance was used seemed to break the connection.
I guess I am asking how do you use Maintenance correctly to prevent problems. I believe I followed the procedures correctly. I probably did something wrong. I wanted to know what might cause this.
I decided, after my months of work and making many mistakes to start fresh with a new installation of Amibroker and copy in the Amibroker folder as instructed. That has fixed all mismatched references and now works as expected.
Another symptom of a mismatch was, when using ApplyStop() with bars, it lost a bar. As I understand it a trade that lasts two days actually involves 3 EOD bars. The first is EOD 5/1, the second is the first day of trading 5/2 and the second bar, and the close is 5/3, the next day and third bar. It takes 3 bars to define two full days EOD to EOD. This makes sense to me.
What happened after about 2000 backtests was the stop day parameter changed. If I used '4' instead of '3' it now opened and closed on the correct dates.
What happened when i used the same code in the new installation was Amibroker gave me 3 day trades as would be expected when using '4', when I changed it back to '3' it again worked as expected.
ApplyStop does not lose any bars. It all depends on the settings you use. If you copy some of the files, and some not, you might be using different settings that you were using on old computer. In this case "pad and align" setting might have been different on old vs new computer.
You might have data holes in some symbols or extra bars in some of them. Generally it is advised to use "Pad and align" option in the settings to make sure all symbols are padded to same reference symbol. That way you would have "all bars".
And, for what it is worth, it has no connection with Indicator Maintenance.
This was not a new computer. This was is single installation on one machine. Yes I believe data may be missing or settings were corrupted. I try and follow all suggested procedures. I use AmiQuote to update Yahoo EOD data.
What I noticed was something changed. ApplyStop() now need 4 instead of 3 to operate properly.
I do not know why it changed. If the value 4 worked on all symbols I find it hard to believe it is data issues. If it only occurred on specific symbols then perhaps it was data.
I report these things to either learn what I may have done wrong and to better understand how to properly use Amibroker.
Thanks
I do not deal with enough data to choose a good reference symbol for pad and align. I understand the principle is to make up for data holes. My assumption is a large volume, heavily traded symbol such as SPY may work. Is there a resource to use to find good reference symbols?
Don't believe I am ready for using an .apx file yet.
Yes, SPY is good choice. Or market index. Trading volume doesn't matter for reference symbol. What matters is that it never gets suspended from trading.