Announcement

Collapse
No announcement yet.

Stochastics ColorBar EFS

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

  • #16
    GM
    1. The easiest way is to apply the user defined parameters already defined for the bands. To do this replace the values 30 and 70 used in the conditions in lines 61 through 68 of the script with Lower and Upper respectively. This way changing the parameters Upper and Lower in Edit Studies will also change the thresholds for OB/OS used in the conditions to color the price bars.
    2. You would need to add a Function Parameter for each color you want to change. You can find an easy example on how to do this complete with comments in this post. For more information on Function Parameters see this article in the EFS KnowledgeBase
    3. As with the color you would need to add a Function Parameter that allows that selection.
    4. If you mean being able to run the study on intervals other than the one being charted then I would suggest that you wait for EFS2 to be available as it will make the task considerably easier.
    5. To do that you need to add a setPriceStudy(true); statement in preMain. Then replace the return statement ie return new Array (vStoch..etc etc); with return;
    If you are unfamiliar with efs I would suggest that you go through the EFS KnowledgeBase and in particular the Help Guides section that includes guides on using the Formula Wizard (which is a great learning tool BTW) and guides to creating indicators and graphics using EFS.
    Alex

    Comment


    • #17
      Thank you Alexis !

      gm

      Comment


      • #18
        Trouble with modification of StochColorbars

        Alex

        I've modified the original formula somewhat. I'm now trying to get it return colored bars for either up or down moves in the %D equation, but they're turning out all red? What am I doing wrong here?

        GM
        Attached Files

        Comment


        • #19
          GM
          You need to create a variable to which you assign the value of the Stochastic at the prior bar
          var Stoch2 = vStoch.getValue(StochStudy.SLOW,-1);
          Then you use that in your conditional statement
          Alex

          Comment

          Working...
          X