Convert PriceSwing Indicator to Strategy - NinjaTrader Programming | futures io social day trading
futures io futures trading


Convert PriceSwing Indicator to Strategy
Updated: Views / Replies:5,087 / 28
Created: by marcelo_s Attachments:11

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

Reply
 11  
 
Thread Tools Search this Thread
 

Convert PriceSwing Indicator to Strategy

  #1 (permalink)
Elite Member
BUENOS AIRES
 
Futures Experience: Intermediate
Platform: ninja
Broker/Data: AMP
Favorite Futures: ES
 
Posts: 34 since Nov 2009
Thanks: 0 given, 13 received

Convert PriceSwing Indicator to Strategy

HI, I converted the Swing indicator to strategy, but have error message on Log Tab .
Need help to know what to do
Tks for Help

Attached Files
Register to download File Type: cs SwingTrendX.cs (4.8 KB, 38 views)
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)
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



marcelo_s View Post
HI, I converted the Swing indicator to strategy, but have error message on Log Tab .
Need help to know what to do
Tks for Help

What is the error message?

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
 
  #4 (permalink)
Elite Member
BUENOS AIRES
 
Futures Experience: Intermediate
Platform: ninja
Broker/Data: AMP
Favorite Futures: ES
 
Posts: 34 since Nov 2009
Thanks: 0 given, 13 received


Big Mike View Post
What is the error message?

Mike

The error is : " Error on calling 'OnBarUpdate' method for indicator 'swingTrendX' on bar 0: " Reference to object non...."
My NT shows me the error in spanish " Error on calling 'OnBarUpdate' method for indicator 'swingTrendX' on bar 0: Referencia a objeto no establecida como instancia de un objeto.

Reply With Quote
 
  #5 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received


marcelo_s View Post
I asked support to NT, and they answered as follow

" The issue likely is that indicator and strategies work different with your assignment of the data series return of the SwingRelation indicator as an object.
I would suggest working with the supported .Set approach here to add doubles to a series. You can likely just call the indicator plot directly in the strategy without needed to create additional series here first. "

Do you know how to do what is suggested ?

tks for help

Saw your post in the OTHER thread. I figured I'd post here just in case someone in the other thread knows.

I'm a bit confused as to what they mean. I wonder if they could expound a bit on that explanation?

I'm thinking about it and I'm not sure what they mean? I'm not sure if they're saying it's a 'plotting' issue. Or just that the data from the PriceActionSwing needs to be referenced FIRST as a double, THEN put into a dataSeries or what?

Seems like they also may be suggesting to NOT need to create an additional data series like what worked for the indicator. And we can just reference the indicator directly...... I'll see if I can try that at some point today.

Reply With Quote
 
  #6 (permalink)
Elite Member
BUENOS AIRES
 
Futures Experience: Intermediate
Platform: ninja
Broker/Data: AMP
Favorite Futures: ES
 
Posts: 34 since Nov 2009
Thanks: 0 given, 13 received


forrestang View Post
Saw your post in the OTHER thread. I figured I'd post here just in case someone in the other thread knows.

I'm a bit confused as to what they mean. I wonder if they could expound a bit on that explanation?

I'm thinking about it and I'm not sure what they mean? I'm not sure if they're saying it's a 'plotting' issue. Or just that the data from the PriceActionSwing needs to be referenced FIRST as a double, THEN put into a dataSeries or what?

Seems like they also may be suggesting to NOT need to create an additional data series like what worked for the indicator. And we can just reference the indicator directly...... I'll see if I can try that at some point today.

NT Support sent the solution. Find attach file . It works

Attached Files
Register to download File Type: cs SwingTrendX.cs (4.8 KB, 111 views)
Reply With Quote
 
  #7 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received


forrestang View Post

.......Seems like they also may be suggesting to NOT need to create an additional data series like what worked for the indicator. And we can just reference the indicator directly...... I'll see if I can try that at some point today.



Haha, well I'll be damned.

Learn something new everyday I suppose.....

Reply With Quote
 
  #8 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received


marcelo_s View Post
NT Support sent the solution. Find attach file . It works

SwingTrendX.cs file is asking for the PriceActionSwing.Utility when compiling.

Anyone have that file?

Reply With Quote
 
  #9 (permalink)
Elite Member
BUENOS AIRES
 
Futures Experience: Intermediate
Platform: ninja
Broker/Data: AMP
Favorite Futures: ES
 
Posts: 34 since Nov 2009
Thanks: 0 given, 13 received


RJay View Post
SwingTrendX.cs file is asking for the PriceActionSwing.Utility when compiling.

Anyone have that file?

Use attached file as a base to future code. It worked to me

Attached Files
Register to download File Type: cs SwingTrendX.cs (4.8 KB, 109 views)
Reply With Quote
 
  #10 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received



RJay View Post
SwingTrendX.cs file is asking for the PriceActionSwing.Utility when compiling.

Anyone have that file?

It was looking for this line in your declaration block.

Attached Thumbnails
Convert PriceSwing Indicator to Strategy-prime2011-08-01_153257.png  
Reply With Quote

Reply



futures io > > > > > Convert PriceSwing Indicator to Strategy

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
Simple template to convert NT Strategy to NT IUndicator visounds NinjaTrader Programming 4 March 31st, 2011 08:16 AM
Anybody can convert this indicator from NT7 to SierraChart (MACDVOL) redpilot Sierra Chart Programming 3 February 25th, 2011 08:47 PM
Convert MT4- Indicator-Help : Easy Trend Visualizer Rickb The Elite Circle 4 May 31st, 2010 08:18 AM
Ninja Strategy multi-timeframe issue/Strategy to indicator nw123 NinjaTrader Programming 2 December 20th, 2009 07:24 PM


All times are GMT -4. The time now is 06:01 PM.

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.15 seconds with 20 queries on phoenix via your IP 54.145.16.43