NexusFi: Find Your Edge


Home Menu

 





overloaded method


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one exCaliberNinja with 2 posts (0 thanks)
    2. looks_two Big Mike with 1 posts (2 thanks)
    3. looks_3 NinjaTrader with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 3,509 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 exCaliberNinja 
New York
 
Experience: Advanced
Platform: NinjaTrader
Broker: Velocity Futures/Trading Technologies
Trading: ES
Posts: 3 since Feb 2011
Thanks Given: 1
Thanks Received: 1

Hi, I need some help in figuring out what I'm doing wrong here. It is just a mental programming block that is causing me some problems in my code. Here is what I'm trying to do:

For:

WMA(BarsArray[1],Typical, 30)[0]

I'm trying get the value for the Typical Weighted moving avg for 30 periods but I keep getting an overload error. I understand that this is because there can only be 2 properties within the WMA method.

But if I just use:

WMA(BarsArray[1], 30)[0]

That's not really giving me the value I want since it is not using the Typical calculation for the WMA, jsut the default which is the Close[0].

How can I go about having this extra property be included in the calculations when using BarsArray[1] in a method that only accepts 2 properties? Is there a way around this ?

Thanks in advance.
-Brian


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
CME Group Fee Schedule Changes Hit All Four Exchanges -- …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,715 since May 2010
Thanks Given: 203
Thanks Received: 2,688



exCaliberNinja View Post
Hi, I need some help in figuring out what I'm doing wrong here. It is just a mental programming block that is causing me some problems in my code. Here is what I'm trying to do:

For:

WMA(BarsArray[1],Typical, 30)[0]

I'm trying get the value for the Typical Weighted moving avg for 30 periods but I keep getting an overload error. I understand that this is because there can only be 2 properties within the WMA method.

But if I just use:

WMA(BarsArray[1], 30)[0]

That's not really giving me the value I want since it is not using the Typical calculation for the WMA, jsut the default which is the Close[0].

How can I go about having this extra property be included in the calculations when using BarsArray[1] in a method that only accepts 2 properties? Is there a way around this ?

Thanks in advance.
-Brian


Try

WMA(Typicals[1], 30)[0]

More info - Typicals


Follow me on X Reply With Quote
  #4 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090

try WMA(Typicals[1], 30)[0] similar issue was here BarsArray versus PriceType - NinjaTrader Support Forum

PS

Ray was faster than me


Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 exCaliberNinja 
New York
 
Experience: Advanced
Platform: NinjaTrader
Broker: Velocity Futures/Trading Technologies
Trading: ES
Posts: 3 since Feb 2011
Thanks Given: 1
Thanks Received: 1


NinjaTrader View Post
Try

WMA(Typicals[1], 30)[0]

More info - Typicals


Awesome, thanks Ray and redratsal !!


Started this thread Reply With Quote
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557


exCaliberNinja View Post
Awesome, thanks Ray and redratsal !!

to the forum!

Please use the Thanks Button



https://nexusfi.com/help-tutorials-how-tos/6661-how-use-thanks-button.html

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on May 19, 2011


© 2026 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 - Downloads - Top
no new posts