Announcement

Collapse
No announcement yet.

looking for stochastic that changes color depending upon direction

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

  • looking for stochastic that changes color depending upon direction

    is there a stochastic available that changes the color of the lines depending upon the direction?

    thank you,
    angela

  • #2
    angela
    I don't know if there is one available but you can very easily adapt the builtinStoch.efs that is in the Builtin folder. After the section "Insert your code..etc etc" add the following lines

    PHP Code:
    if(vStoch.getValue(StochStudy.FAST)>=vStoch.getValue(StochStudy.FAST,-1)){
            
    setBarFgColor(Color.lime,0)
        }
        if(
    vStoch.getValue(StochStudy.FAST)<vStoch.getValue(StochStudy.FAST,-1)){
            
    setBarFgColor(Color.red,0)
        } 
    Replace StochStudy.FAST with StochStudy.SLOW if you want to color the %D plot
    Alex

    Comment


    • #3
      thank you!

      Alexis,
      thank you so very much, yet again. you are always so helpful, so quickly.

      cheers,
      angela

      Comment


      • #4
        angela
        As always the pleasure is mine
        Alex

        Comment

        Working...
        X