Page 1 of 1

Function to detect the Hidden Recaluclate

Posted: 01 May 2010
by bowlesj3
Update: I created a 2nd post for this thread that has an attached indicator which explains how the maxbarsback works and shows what can trip the hidden recalculate. It write out two fileappend statements that help with the explaination.

The attached zip file contains the A_HiddenRecalculate function and a calling study example (both compile clean).

It takes a while to set it up but when it is complete you can be immediately notified if any of your studies it is installed in experiences the hidden recalculate due to whatever (changes you made, etc). I have included it in two of my studies only so far. Eventually I will have it in all of them.

Most of the documentation is in the top of the function itself as comments.

Most of what I am doing could be done using MC's EL if you know it well and if you also use the EL collection commands. You would have to set up a special interactive study for this which uses Text_GetActive. About the only thing I figure can not be done using a special study is opening the output file for display. I can do that directly from my notification popup. Without a special DLL or external program such as some sort of basic or database program you pretty much have to open that file with the standard windows commands.

Note that if you have to do a reload it will restart your studies and execute the currentbar=1 code again. This function will report it.

John.

Re: Function to detect the Hidden Recaluclate

Posted: 08 Oct 2017
by bowlesj3
I created this post (that has an attached indicator) to explain properly how the maxbarsback works and to explain what can trip the hidden recalculate. The script writes out two fileappend statements that help with the explanation. Two global variable functions are included in the PLA file. Normally the hidden recalculate is not a problem but if you are writing file append statements and you do not want duplicate writes you need to make sure you set your maxbarsback setting large enough to prevent the hidden recalculate.