Thread: Ask!
View Single Post
  #719 (permalink)  
Old 08-05-2007, 12:05 AM
SaxMan's Avatar
SaxMan SaxMan is offline
Member
 
Join Date: Mar 2006
Posts: 27
SaxMan is on a distinguished road
Quote:
Originally Posted by iscuba11 View Post
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.
Reply With Quote