Quote:
Originally Posted by iscuba11
How can use ObjectCreate on an indicator-separate-window versus the chart-window???? This would be handy!
Dave
<><<<
|
Hi iscuba11,
All you have to do is:
Code:
ObjectCreate("Object Name",OBJ_LABEL,1,0,0);
The "1" is the first window after "0" - Main chart window. So if you have 3 indicator windows open under the main chart window and you want your object to appear on the third indicator window, you would use a "3" instead of "0".
In this light I often use a "Blank" indicator window to place object labels in and often use these object labels to test my code "Live - as it happens" to confirm that my code is indeed operating correctly and things occur when and how they should.