Search | User Listing Vidsite | Calendars | Quotes
Home Page ->  OLang, OScript & OPilot -> Writing OScript Color Charts -> View ThreadLogon (or Register, or Join TradeTight)

You are logged in as a limited-access Guest.To join TradeTight, first read the info in the Organization & Content room, then click the link above. 

1 Timothy 6:6-7 (NKJV) ... Now godliness with contentment is great gain. For we brought nothing into this world, and it is certain we can carry nothing out.


Sticky Post Requests for ColorCharts here ...
Jump to page : 1
Now viewing page 1 [50 msgs/pg]
Jump to room :
JimDean
Posted 7/18/2011 2:17 PM (#2542)
Subject: Post Requests for ColorCharts here ...



Owner/Admin

Posts: 3925
2000100050010010010010025
Location:
USA: GA, Lawrenceville
In order to try to keep things organized, so that others can find them in the future and so that threads do not get mixed up, this Thread is dedicated just to COLORCHARTS. "Extended" responses will often be put in other threads, which will be dedicated to the creation of the requested OmniScript.

So, if a thread does not already exist that deals with your desired ColorChart, just post your question here. Please DON'T post requests for help with Syntax or Indicators or Systems or Filters/Scans or Stops or Setups or Measurements or Transforms in this Thread (or this Room) - there are other Threads dedicated for those requests.

If there is a "fast answer" pointing out an existing solution, it will be given in this Thread. Otherwise, if someone creates a solution for that request, it should be provided in SEPARATE Thread with an appropriate name, in the appropriate Room that's dedicated for that kind of function. Ideally, you should put a single response-post in THIS thread, with a URL-link pointing to the new Thread with the response.

Thanks!

Thread moved by JimDean on 7/18/2011 2:26 PM from OLang, OScript & OPilot > Post Requests Here > Post Requests for ColorCharts here ...

Top of the page Bottom of the page
DonSchuman
Posted 12/8/2015 5:17 PM (#6587 - in reply to #2542)
Subject: Post Requests for ColorCharts here ...



Veteran

Posts: 212
100100
Location:
USA: TX, Mansfield
Is it possible to programmatically color the background of indicators - much as you would do directly in chart options, but doing so using omnilanguage?

Thread moved by JimDean on 7/18/2011 2:26 PM from OLang, OScript & OPilot > Post Requests Here > Post Requests for ColorCharts here ...

Top of the page Bottom of the page
JimDean
Posted 12/8/2015 5:36 PM (#6588 - in reply to #6587)
Subject: Post Requests for ColorCharts here ...



Owner/Admin

Posts: 3925
2000100050010010010010025
Location:
USA: GA, Lawrenceville
You only can change (true) background color via color charts ... unless you want to do a trick that really slows things down, painting the background by a continuous series of vertical lines, one on every bar, then painting the indicator on top of that. This can't be used on the price pane since the candles would be covered up.

Let's say that your indicator chart scale went from 0 to 100, via the setscales command. You could paint your background using:
plottrendline("GrnBk",bar,0,bar,100,darkgreen,10) ... note the final 10 is important since you don't want gaps.
... then plot your indicator value on top of it ...
plot("Ind",Value,yellow,1)

You can wrap an if/else around the background plot to paint it different different colors depending on conditions.

If you don't have a fixed "y" axis scale then it gets messier. Again, beware of the potential for slow down, esp with lots of history loaded.

Thread moved by JimDean on 7/18/2011 2:26 PM from OLang, OScript & OPilot > Post Requests Here > Post Requests for ColorCharts here ...

Top of the page Bottom of the page
DonSchuman
Posted 12/8/2015 6:33 PM (#6589 - in reply to #2542)
Subject: Post Requests for ColorCharts here ...



Veteran

Posts: 212
100100
Location:
USA: TX, Mansfield
Thanks Jim: How about the option of creating a custom indicator and having the colors changes based on [criteria] and then change colors using a histogram (or something)?

I want to get the look of a color chart using an indicator. The plot (or indicator) would be the colors. I would like for it to cover the pane like a color chart does.

(ColorChart.png)




Thread moved by JimDean on 7/18/2011 2:26 PM from OLang, OScript & OPilot > Post Requests Here > Post Requests for ColorCharts here ...


Attachments
Attachments ColorChart.png (18KB - 2 downloads)
Top of the page Bottom of the page
JimDean
Posted 12/8/2015 6:51 PM (#6590 - in reply to #6589)
Subject: Post Requests for ColorCharts here ...



Owner/Admin

Posts: 3925
2000100050010010010010025
Location:
USA: GA, Lawrenceville
I just described something like that. Using a histogram is possible but has some obscure issues, that's why I gave plottrendline as the mechanism.

Use histo to paint alternating values of died heights. Use vert lines to create "striped wallpaper"

Thread moved by JimDean on 7/18/2011 2:26 PM from OLang, OScript & OPilot > Post Requests Here > Post Requests for ColorCharts here ...

Top of the page Bottom of the page
Jump to page : 1
Now viewing page 1 [50 msgs/pg]
( E-mail a Link | Printer Version | Search Room )

Owner of site: Jim Dean -- Forum content is confidential, and may not be distributed without written permission.