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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Mt4 shortcut or hotkey for drawing objects like lines etc 4 replies

Drawing Objects in MQL 6 replies

drawing objects problem 0 replies

lines and objects dissapear 5 replies

Drawing MT4 S&R and trend lines 8 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: Drawing Objects vs Drawing lines
Cancel

Drawing Objects vs Drawing lines

  • Post #1
  • Quote
  • First Post: Jun 6, 2007 11:53am Jun 6, 2007 11:53am
  •  sergiu
  • | Joined May 2006 | Status: Least Qualified Poster | 444 Posts
I would like to create an indicator that would draw a set of lines on the chart. The lines are not continuous and only need to be drawn when certain conditions are met. In this regard i have a couple of questions:

I am thinking that the way to do that would be by using objects instead of drawing with a Buffer if this makes sense.Am i correct in my assumption?
If so than by studying the ObjectCreate function from the dictionary it seems that every object needs to have an unique name assigned to it which is a bit of a problem since there are going to be hundreds of this objects to do what i need? Does anyone have any suggestions?
Stubbornly persistent
  • Post #2
  • Quote
  • Last Post: Jun 6, 2007 12:01pm Jun 6, 2007 12:01pm
  •  tesla
  • | Joined Oct 2006 | Status: Friendly Neighborhood Programmer | 533 Posts
You can do this with a buffer as well. When there's a line to draw, set the price as usual. When you want nothing, set buffer to EMPTY_VALUE.
 
 
  • Platform Tech
  • /
  • Drawing Objects vs Drawing lines
  • 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