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 2,942 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

overloaded method

  #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?
MC PL editor upgrade
MultiCharts
About a successful futures trader who didnt know anythin …
Psychology and Money Management
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
What broker to use for trading palladium futures
Commodities
 
  #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,714 since May 2010
Thanks Given: 203
Thanks Received: 2,686



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 Twitter 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 - [AUTOLINK]NinjaTrader[/AUTOLINK] 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,465 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,665


exCaliberNinja View Post
Awesome, thanks Ray and redratsal !!

to the forum!

Please use the Thanks Button





Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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 Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on May 19, 2011


© 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