• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 11:41pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:41pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

turn Synergy_APB into subwindow indicator (willing to pay) 6 replies

indicator in subwindow and dialog class 0 replies

Indicator drawing candlestick chart of any instrument in subwindow 2 replies

fix unknown subwindow number -1 for ObjectCreate function 4 replies

journal:unknown subwindow objectcreate function 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 2
Attachments: How do I remove Indicator Comments in a subwindow?
Exit Attachments
Tags: How do I remove Indicator Comments in a subwindow?
Cancel

How do I remove Indicator Comments in a subwindow?

  • Post #1
  • Quote
  • First Post: Aug 27, 2009 2:37am Aug 27, 2009 2:37am
  •  Royston
  • | Joined Nov 2008 | Status: Member | 280 Posts
How do I remove the Indicator Comments, both Indicator ShortName and Indicator Digits that are automatically present in the top left corner of a subwindow ?
Attached Image (click to enlarge)
Click to Enlarge

Name: 0908270727 indicator subwindow.jpg
Size: 99 KB
  • Post #2
  • Quote
  • Aug 27, 2009 2:47am Aug 27, 2009 2:47am
  •  Royston
  • | Joined Nov 2008 | Status: Member | 280 Posts
How do I add text into the subwindow? I want to put a text character at the end of the line that indicates the particular time period, say M5. As this is a bit more involved, I guess what I am looking for is an example in another indicator that I can work through to figure out the general method. I have added this indicator at the bottom.
Attached File(s)
File Type: mq4 MACD_CCI_K.mq4   2 KB | 233 downloads
 
 
  • Post #3
  • Quote
  • Aug 27, 2009 3:02am Aug 27, 2009 3:02am
  •  magnumfreak
  • Joined Nov 2007 | Status: Trying manual mode again | 2,210 Posts
Quoting Royston
Disliked
How do I remove the Indicator Comments, both Indicator ShortName and Indicator Digits that are automatically present in the top left corner of a subwindow ?
Ignored
set the indicatorshortname to "" must be done in the indicator code itself.
 
 
  • Post #4
  • Quote
  • Aug 27, 2009 3:05am Aug 27, 2009 3:05am
  •  magnumfreak
  • Joined Nov 2007 | Status: Trying manual mode again | 2,210 Posts
Quoting Royston
Disliked
How do I add text into the subwindow? I want to put a text character at the end of the line that indicates the particular time period, say M5. As this is a bit more involved, I guess what I am looking for is an example in another indicator that I can work through to figure out the general method. I have added this indicator at the bottom.
Ignored
Inserted Code
ObjectCreate("TSR", OBJ_LABEL, WindowFind("TSR"), 0, 0);
        ObjectSetText("TSR",StringSubstr(Symbol(),0),12, "Arial Bold", Blue);
        ObjectSet("TSR", OBJPROP_CORNER, 0);
        ObjectSet("TSR", OBJPROP_XDISTANCE, 25);
        ObjectSet("TSR", OBJPROP_YDISTANCE, 2);


This will create and object and place it in the window, you just need to edit the xdistance and ydistance to place it wherever you need.
 
 
  • Post #5
  • Quote
  • Aug 27, 2009 3:34am Aug 27, 2009 3:34am
  •  Royston
  • | Joined Nov 2008 | Status: Member | 280 Posts
Quoting magnumfreak
Disliked
set the indicatorshortname to "" must be done in the indicator code itself.
Ignored
thanks for the replies, magnum. I have tried that, and it works, but does not remove the digits. Although I haven't tried it yet, I think it may also cause problems with the WindowFind function. I can also alter the number of places after the decimal point, but cannot get rid of the digits themselves. I have seen charts without those numbers on them, so it must be possible somehow
 
 
  • Post #6
  • Quote
  • Edited 10:08am Aug 28, 2009 10:08am | Edited 10:08am
  •  Royston
  • | Joined Nov 2008 | Status: Member | 280 Posts
anybody else have an idea how to go about this?
 
 
  • Post #7
  • Quote
  • Aug 28, 2009 10:40am Aug 28, 2009 10:40am
  •  Zen_Leow
  • Joined Jun 2008 | Status: Programming for a better future. | 649 Posts
try putting these inside the init() function

Inserted Code
SetIndexLabel(0,NULL);
SetIndexLabel(1,NULL);
SetIndexLabel(2,NULL);
IndicatorShortName("");

regards,
Zen
Programming for a better future.
 
 
  • Post #8
  • Quote
  • Last Post: Aug 28, 2009 11:32am Aug 28, 2009 11:32am
  •  Royston
  • | Joined Nov 2008 | Status: Member | 280 Posts
so simple,
so Zen,
Zen

thank you
 
 
  • Platform Tech
  • /
  • How do I remove Indicator Comments in a subwindow?
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023