| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Colour Bar EL Code The basic idea is if Current Bar H > last bar High then colour green if Current bar L < last bar low then colour red If CB H>LB H and CB L< LB L then colour black. It would be good if it updated intrabar as the black changing to green or black would be a great alert to a move away from value. Thanks VT | ||
| |
|
| | #2 | ||
![]() | Re: Colour Bar EL Code Quote:
once a bar turned black... it cannot turn green again. because it is an OUTSIDE BAR
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #3 | ||
![]() | Re: Colour Bar EL Code [code]Inputs: UpColor (Green), DnColor (red), UnCngColor (black); Variables: BarColor (0); If Close > Close[1] then BarColor = UpColor else If Close < Close[1] then BarColor = DnColor else BarColor = UnCngColor; Plot1(BarColor); [code] But it plots like a line and doesnt change the colour of the bar. TAMS, I enjoy the cryptic nature of your replys. There was a typo in my original post...you didnt spot it...too quick to react! lol. "It would be good if it updated intrabar as the black changing to green or RED would be a great alert to a move away from value" Last edited by ValueTrader; 02-10-2011 at 12:26 PM. | ||
| |
|
| | #4 | |||
![]() | Re: Colour Bar EL Code Quote:
Quote:
I have highlighted the OUTSIDE BAR for you. unless you have something else in mind, if a bar is "outside" and colored black, the other conditions no longer apply. Maybe you can draw a mock up chart to explore all the color permutations? Quote:
__________________ Only an idiot would reply to a stupid post | |||
| |
|
| | #5 | ||
![]() | Re: Colour Bar EL Code Quote:
Close > Close[1] is not the same as CB H > LB H
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #6 | ||
![]() | Re: Colour Bar EL Code Quote:
you have to plot ALL the data points. ie. Code: plot1( High, "High", barcolor); plot2( Low, "Low", barcolor); plot3( Open, "Open", barcolor); plot4( Close, "Close", barcolor); PlotPaintBar PlotPB
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #7 | ||
![]() | Re: Colour Bar EL Code Quote:
http://traderslaboratory.com/forums/...1&postcount=93 I tried the addtional code you suggested but ended up with four lines. I will soldier on and post the developments. Thanks VT | ||
| |
|
| | #8 | ||
![]() | Re: Colour Bar EL Code Quote:
I would suggest you to invest a few minutes of your precious time with the manual. It will pay big dividends. Getting Started with EasyLanguage is the book you need if you're thinking about using EasyLanguage but don't know where to start. It is a easy to read primer, with plenty of examples and illustrations. After reading this book, you should be able to whip up any indicators at will. Regarding the 4 lines, you need to format the plots as Bar High, Bar Low, etc.
__________________ Only an idiot would reply to a stupid post Last edited by Tams; 02-10-2011 at 02:57 PM. | ||
| |
|
![]() |
| Tags |
| paintbar |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multicharts Colour Question | nuno-online | Coding Forum | 3 | 12-18-2009 02:46 PM |
| What EL Code Should I Use ? | emptyvault | Coding Forum | 4 | 07-01-2009 10:08 AM |
| Looking For LUA Code Help | Dudewanarace | Coding Forum | 0 | 03-10-2009 11:57 PM |
| ADE Code | karsat | Coding Forum | 0 | 03-08-2009 08:06 PM |
| P&F Code | point-figure | Coding Forum | 0 | 02-17-2009 06:24 AM |