Announcement

Collapse
No announcement yet.

Histogram

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Histogram

    How can I show CCI study as a histogram instead of a line?

    TomB

  • #2
    This plots a cci histogram

    var study = new CCIStudy(20, "Close");

    function preMain() {
    setPriceStudy(false);
    setDefaultBarStyle(PS_SOLID, 0);
    setDefaultBarFgColor(Color.red, 0);
    setDefaultBarThickness(1, 0);
    setPlotType(PLOTTYPE_HISTOGRAM, 0);
    }

    function main() {
    return study.getValue(CCIStudy.CCI);
    }

    Comment


    • #3
      Many tx

      Comment

      Working...
      X