Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

STOCH Williams % R

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

    STOCH Williams % R

    Hi

    I am trying to build a simple histogram

    Stoch %D - Williams %R (Stoch D Minus W%R)

    Seems simple enough .....I have spent hours reviewing your Indicator on Indicator help section but still can not get the required result. Oscillator should be from +100 to -100. Your help will be appreciated

    tregards

    the hound
    Last edited by profithound; 11-10-2008, 10:12 PM.

    #2
    Hello,

    Give it a try and post your code so we can assist you.

    To get you started:

    Put this in your Initialize() block:
    Add(new Plot(Color.Blue, "myPlot"));

    Then for your OnBarUpdate() block:

    You could use this for the stoch. D:
    double stoch = Stochastics(3, 14, 7).D[0];

    This link will help:



    You could use this for Williams %R:
    double will = WilliamsR(20)[0];

    Then plot it:
    Plot0.Set(stoch - will);

    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    579 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X