Summary of problem:
"worksheet_change" doesn't acknowledge changes in my cells that get their data from a broker through DDE. They told me "worksheet_calculate" could do the job, but how and what else may work?
Details:
I have developed an excel sheet that takes live data from the broker and uses it to calculate Support and Resistance on two cells, which should change as the data from the broker changes.
In order to calculate Support and Resistance (D2 and D4) my sheet uses C2 and C4 (today's High & Low) and I thought I told my vb code (through worksheet_change) that if it saw any changes in those two cells within the time C3 (US market open, CET), it would have to change D2 and D4, automatically.
It does it only if I paste different values on C2 and C4 - not if such values get changed by the source live data (from Interactive Brokers). How do I make the sheet react to the data changing other than by pasting it each time on the cell?
Other system traders told me that "worksheet_change" doesn't do the job, and that "worksheet_calculate" would do it, except that I don't know exactly how.
I posted the file here in case anyone wants to help me modify it:
http://www.elitetrader.com/vb/showthread.php?s=&postid=975544
"worksheet_change" doesn't acknowledge changes in my cells that get their data from a broker through DDE. They told me "worksheet_calculate" could do the job, but how and what else may work?
Details:
I have developed an excel sheet that takes live data from the broker and uses it to calculate Support and Resistance on two cells, which should change as the data from the broker changes.
In order to calculate Support and Resistance (D2 and D4) my sheet uses C2 and C4 (today's High & Low) and I thought I told my vb code (through worksheet_change) that if it saw any changes in those two cells within the time C3 (US market open, CET), it would have to change D2 and D4, automatically.
It does it only if I paste different values on C2 and C4 - not if such values get changed by the source live data (from Interactive Brokers). How do I make the sheet react to the data changing other than by pasting it each time on the cell?
Other system traders told me that "worksheet_change" doesn't do the job, and that "worksheet_calculate" would do it, except that I don't know exactly how.
I posted the file here in case anyone wants to help me modify it:
http://www.elitetrader.com/vb/showthread.php?s=&postid=975544