Passing indicator parameters - NinjaTrader Programming | futures io social day trading
futures io futures trading


Passing indicator parameters
Updated: Views / Replies:2,955 / 7
Created: by hawks67 Attachments:1

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 90,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

Closed Thread
 
Thread Tools Search this Thread
 

Passing indicator parameters

  #1 (permalink)
Elite Member
Chicago, IL
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AGN/Rithmic
Favorite Futures: CL
 
Posts: 22 since Apr 2010
Thanks: 14 given, 1 received

Passing indicator parameters

Let's say I found a new indicator and want to incorporate it into my strategy...but it's a very basic indicator in terms of display, and the parameters available to me as I'm writing the strategy code are not sufficient to use in conditional statements. So I decide to tweak the indicator a little bit and create a boolean I can pass into my strategy. I know this has something to do with public classes and the like, but is there an example I can look at that illustrates in detail how to instantiate this variable in the indicator code and then have it be accessible by a strategy?

 
  #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
Singapore
 
Futures Experience: Beginner
Platform: Multicharts, R
Favorite Futures: EUR / USD
 
Posts: 185 since Feb 2010
Thanks: 106 given, 98 received


Moderator Note
Please wrap your code in the CODE tags when posting to prevent bad formatting by the forum. -- Big Mike



There a lots - just about every indicator does this.

As an example, check out the standard Darvas NT indicator (just the first one I opened). Taking the buySignal as an example, you need to declare a private instance (visible only within your class):

 
Code
                            
 public class Darvas Indicator
    
{
        
#region Variables
        
private double                boxTop                double.MinValue;
        private 
double                boxBottom            double.MaxValue;
[
B]        private bool                   buySignal            false;[/B]

You can then write you indicator to achieve what it needs to do.  To get (or setthe variableyou need to declare function in the properties section as below:

       
#region Properties
        
[Browsable(false)]  
        [
XmlIgnore()]        
        public 
bool BuySignal
        
{
            
get 
            

                
Update();
                return 
buySignal
            }
            
set buySignal value; }
        } 
As C## is case sensitive, the function BuySignal is different from the variable buySignal. Your strategy should be able to reference Darvas.BuySignal to return the value of the variable buySignal.

HTH

The following 3 users say Thank You to diverdan for this post:
 
  #4 (permalink)
Elite Member
Chicago, IL
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AGN/Rithmic
Favorite Futures: CL
 
Posts: 22 since Apr 2010
Thanks: 14 given, 1 received

Most excellent. I will give it a go! Thanks!

 
  #5 (permalink)
Trading Apprentice
london
 
Futures Experience: Master
Platform: NinjaTrader, ganntrader
Favorite Futures: beans
 
Posts: 9 since Nov 2012
Thanks: 2 given, 0 received

Passing indicator parameters

Hi Mike,

I am trying to use this indicator in a strategy, without much success. Would it be possible to take a look it for me?

Please see the attached file .

BW

Charlie

Attached Files
Register to download File Type: cs PriceActionSwing.cs (90.7 KB, 15 views)
 
  #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,240 since Jun 2009
Thanks: 29,353 given, 83,234 received


charllie1 View Post
Hi Mike,

I am trying to use this indicator in a strategy, without much success. Would it be possible to take a look it for me?

Please see the attached file .

BW

Charlie

Use the main thread that exists on that indicator to ask for help with it please:

https://futures.io/ninjatrader/1272-priceactionswing-discussion.html

The question has no doubt been already asked and answered before in that thread if you will read it.

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.

 
  #7 (permalink)
Trading Apprentice
london
 
Futures Experience: Master
Platform: NinjaTrader, ganntrader
Favorite Futures: beans
 
Posts: 9 since Nov 2012
Thanks: 2 given, 0 received

Thanks Mike for your reply,

I have tried this and also read all the threads related to PAS and have had no joy.

I used this thread as the problem i belive is the PASPro indicator is not public and the strategy can not pick up any values.

any help would be greatly aprecaiated

BW

C



Big Mike View Post
Use the main thread that exists on that indicator to ask for help with it please:

https://futures.io/ninjatrader/1272-priceactionswing-discussion.html

The question has no doubt been already asked and answered before in that thread if you will read it.

Mike


 
  #8 (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,240 since Jun 2009
Thanks: 29,353 given, 83,234 received


charllie1 View Post
Thanks Mike for your reply,

I have tried this and also read all the threads related to PAS and have had no joy.

I used this thread as the problem i belive is the PASPro indicator is not public and the strategy can not pick up any values.

any help would be greatly aprecaiated

BW

C

When you have a question about PriceActionSwing indicator, use the thread I quoted.

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.


Closed Thread



futures io > > > > > Passing indicator parameters

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tax Deal Seen Passing Senate, but Hurdles in House Quick Summary News and Current Events 0 December 13th, 2010 02:20 PM
Font Parameters for Text in TS/EL cbritton EasyLanguage Programming 3 August 8th, 2010 03:07 PM
Ninja file storing indicators' parameters SARdynamite NinjaTrader Programming 3 July 14th, 2010 04:31 PM
Public class, passing values between scripts tinkerz NinjaTrader Programming 2 May 11th, 2010 12:41 PM
Save parameters from one session to another bukkan NinjaTrader Programming 7 January 4th, 2010 05:54 AM


All times are GMT -4. The time now is 06:40 AM.

Copyright © 2017 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 2017-12-15 in 0.11 seconds with 20 queries on phoenix via your IP 107.20.115.174