Announcement

Collapse
No announcement yet.

Stochastic Histogram

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

  • Stochastic Histogram

    I wrote this code using the EFS Wizard and wanted to display it in histogram form with Blue Bars above 50 and Red bars below 50 like a MACD histogram. The wizard won't let me plot it like a MACD. Or I just don't know how to do it.

    I did a search but didn't find anything that plots it with blue above 50 and red below 50.

    Below is a line version of the above.

    Thanks,
    Russ
    Attached Files
    Last edited by trader123; 03-11-2006, 03:28 PM.

  • #2
    Russ
    Open the efs with the Editor and in preMain replace
    setPlotType(PLOTTYPE_INSTANTCOLORLINE, 0); with setPlotType(PLOTTYPE_HISTOGRAM, 0);
    Then in the empty line that follows //}}EFSWizard_PreMain (which is right after the plot type statement) add the following statement setHistogramBase(50);
    This will make the stochastic histogram display like the MACD histogram.
    The reason for adding it where I suggested is that in this way the Formula Wizard will not remove that line if you later want to edit the efs using the Formula Wizard
    Alex

    Comment


    • #3
      Alex,
      Many thanks.
      Works perfect.
      Russ

      Comment


      • #4
        Russ
        You are most welcome
        Alex

        Comment

        Working...
        X