NexusFi: Find Your Edge


Home Menu

 





Williams Acc Dist indicator not plotting


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one buzzsaw with 4 posts (1 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 pte97 with 1 posts (0 thanks)
    4. looks_4 vegasfoster with 1 posts (0 thanks)
    1. trending_up 4,379 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 3 attachments




 
Search this Thread

Williams Acc Dist indicator not plotting

  #1 (permalink)
 buzzsaw 
Leesburg, VA
 
Experience: Advanced
Platform: NinjaTrader
Posts: 80 since Aug 2010
Thanks Given: 78
Thanks Received: 35

I haven't programmed in a decade or so. Thought I would give NT a try with what I thought was a simple indicator that I couldn't find, Larry Williams Accumulation Distribution.

Attached is the code for the Williams AD with a ZLEMA. The code compiles but it won't plot. I'm sure there's something simple that I'm missing.

Any assistance is appreciated with the simple task that has turned into a challenge.

Attached Files
Elite Membership required to download: WilliamsAD_with_ZLEMA.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #3 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844


You don't want to define a data series for the plots in the variables or initialize section, so you can delete lines 29, 30, 49, 50. For the most part you only need to define a dataseries in these sections for calculations where you want to reference a prior period for that calculation. The plots and input parameters are defined in a properties region inserted after the initialize region. For this one you would need to add:

 
Code
 
   #region Properties
 
   [Browsable(false)]
   [XmlIgnore()]
   public DataSeries AD
   {
       get { return Values[0]; }
   }
 
   [Browsable(false)]
   [XmlIgnore()]
   public DataSeries ADMA
   {
       get { return Values[1]; }
   }

   [Description("Period")]
   [GridCategory("Parameters")]
   public int Period
   {
       get { return period; }
       set { period = Math.Max(1, value); }
   }
   #endregion
I don't really know why it's this way, I just know that's how you do it.

Reply With Quote
  #4 (permalink)
 buzzsaw 
Leesburg, VA
 
Experience: Advanced
Platform: NinjaTrader
Posts: 80 since Aug 2010
Thanks Given: 78
Thanks Received: 35

That produced errors, attached, with updated code.

Attached Thumbnails
Click image for larger version

Name:	NT Error.png
Views:	226
Size:	14.9 KB
ID:	40784  
Attached Files
Elite Membership required to download: WilliamsADwithZLEMA.cs
Started this thread Reply With Quote
  #5 (permalink)
 buzzsaw 
Leesburg, VA
 
Experience: Advanced
Platform: NinjaTrader
Posts: 80 since Aug 2010
Thanks Given: 78
Thanks Received: 35

All fixed and posted in the indicators section.

Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
 pte97 
Massachusetts,USA
 
Experience: Intermediate
Platform: Ninja Trader
Broker: Barcharts
Trading: stocks
Posts: 7 since Aug 2009
Thanks Given: 0
Thanks Received: 1

Does anyone know where this indicator is located ?
I did a search but could not find it.
Thanks

Reply With Quote
  #7 (permalink)
 buzzsaw 
Leesburg, VA
 
Experience: Advanced
Platform: NinjaTrader
Posts: 80 since Aug 2010
Thanks Given: 78
Thanks Received: 35

Try a different search parameter in the indicators. I believe I labeled it starting with "Larry Williams ......."

Started this thread Reply With Quote




Last Updated on March 16, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts