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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

How To Make Repaint Indicator To Not Repaint? Need Help! 27 replies

Need an EA to close my trade when opposite colored candle appears 0 replies

What happened to my colored dots? 1 reply

Anyone have colored RSI histogram indicator? 0 replies

Pivot with colored range 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

Repaint colored candle

  • Post #1
  • Quote
  • First Post: Oct 27, 2009 11:33am Oct 27, 2009 11:33am
  •  Bertje
  • | Joined Oct 2009 | Status: Junior Member | 4 Posts
Not much of a programmer, but trying to fix something simple (but not for me).

I see a lot of people complaining about repainting indicators. I want mine to repaint but it doesn't.

I have an indicator that gives a bar a color when it's inside the range of the previous candle.

But what happens. EVERY bar starts inside the range of the previous bar. So every bar gets immediately a color. However I want to get rid of that color once the range of the previous bar is broken. Because then it can't be an INSIDE BAR anymore and has to be black like the other bars. But the color does not disappear and keeps colouring the bar.

How can fix this ? I was thinking of a refresh or reset option, but I could not find something like that tho...

Another option, give the bar the color at the close of the bar, but how ?

Anybody ? TIA.
  • Post #2
  • Quote
  • Oct 27, 2009 8:07pm Oct 27, 2009 8:07pm
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
I think I know what the problem is, but rather than taking a stab in the dark it would help me if I could see the code. You are new so you might not have that priviledge yet. If not try to isolate the code that you think is the problem and paste it in your reply. Also I need to see the declarations for your buffers and any properties.
 
 
  • Post #3
  • Quote
  • Last Post: Oct 28, 2009 9:10am Oct 28, 2009 9:10am
  •  Bertje
  • | Joined Oct 2009 | Status: Junior Member | 4 Posts
Problem solved. By coincidence I opened another mq4 file and there the open of the candle was checked by Time[0] and compared with a variable.

I have copied this in my mq4 file and it works, everything has the color it should have so I am happy.

Thanks.
 
 
  • Platform Tech
  • /
  • Repaint colored candle
  • Reply to Thread
0 traders viewing now
Top of Page
Forex Factory Blog Updated: Alerting All Members
  • 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 / ©2022