Tools, Techniques, and Training for Nirvana Platforms |
OmniTrader, VisualTrader, OmniFunds & OmniVest |
| ||
| ||
|
|
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. |
Post Requests for ColorCharts here ... | |||
|
JimDean |
| ||
Owner/Admin Posts: 3925 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 ... | ||
DonSchuman |
| ||
Veteran Posts: 212 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 ... | ||
JimDean |
| ||
Owner/Admin Posts: 3925 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 ... | ||
DonSchuman |
| ||
Veteran Posts: 212 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 ColorChart.png (18KB - 2 downloads) | ||
JimDean |
| ||
Owner/Admin Posts: 3925 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 ... | ||
|
Owner of site: Jim Dean -- Forum content is confidential, and may not be distributed without written permission. | |