overloaded method - NinjaTrader Programming | futures io social day trading
futures io futures trading


overloaded method
Updated: Views / Replies:1,446 / 5
Created: by exCaliberNinja Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

overloaded method

  #1 (permalink)
Elite Member
New York
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Velocity Futures/Trading Technologies
Favorite Futures: ES
 
Posts: 3 since Feb 2011
Thanks: 1 given, 1 received

overloaded method

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

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Denver, CO
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
 
NinjaTrader's Avatar
 
Posts: 1,313 since May 2010
Thanks: 159 given, 1,961 received



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

Reply With Quote
 
  #4 (permalink)
Elite Member
Milan (I)
 
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,073 received

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

PS

Ray was faster than me

Reply With Quote
 
  #5 (permalink)
Elite Member
New York
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Velocity Futures/Trading Technologies
Favorite Futures: ES
 
Posts: 3 since Feb 2011
Thanks: 1 given, 1 received


NinjaTrader View Post
Try

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

More info - Typicals


Awesome, thanks Ray and redratsal !!

Reply With Quote
 
  #6 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,440 since Jun 2009
Thanks: 29,519 given, 84,450 received


exCaliberNinja View Post
Awesome, thanks Ray and redratsal !!

to the forum!

Please use the Thanks Button



https://futures.io/help-tutorials-how-tos/6661-how-use-thanks-button.html

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 2 users say Thank You to Big Mike for this post:

Reply



futures io > > > > > overloaded method

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

July Journal Challenge - $500 in Amazon Gift Cards!

July

Battlestations: $750 in prizes - Show us your trading desk!

August

TBA: FuturesTrader71 w/Morad Askar

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Hurley Method (automated) Big Mike Elite Automated NinjaTrader Trading 1323 July 1st, 2012 07:48 PM
The Faber Method (systematic) MXASJ Elite Automated NinjaTrader Trading 4 September 28th, 2011 07:28 PM
AA vs SA. Which method do I use? rca420 EasyLanguage Programming 3 October 29th, 2010 05:39 PM
Help : Method + Switch wkmetal NinjaTrader Programming 3 October 25th, 2010 04:51 AM
The Langford Method fallout Traders Hideout 3 September 5th, 2010 11:17 PM


All times are GMT -4. The time now is 06:58 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2018-07-22 in 0.11 seconds with 14 queries on phoenix