NexusFi: Find Your Edge


Home Menu

 





Convert PriceSwing Indicator to Strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one marcelo_s with 12 posts (6 thanks)
    2. looks_two skann with 8 posts (1 thanks)
    3. looks_3 forrestang with 3 posts (0 thanks)
    4. looks_4 RJay with 1 posts (0 thanks)
    1. trending_up 11,416 views
    2. thumb_up 7 thanks given
    3. group 7 followers
    1. forum 28 posts
    2. attach_file 11 attachments




 
Search this Thread

Convert PriceSwing Indicator to Strategy

  #1 (permalink)
 marcelo_s 
BUENOS AIRES
 
Experience: Intermediate
Platform: ninja
Broker: AMP
Trading: ES
Posts: 34 since Nov 2009
Thanks Given: 0
Thanks Received: 13

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
Elite Membership required to download: SwingTrendX.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
22 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #3 (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,440 since Jun 2009
Thanks Given: 33,207
Thanks Received: 101,599



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

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
  #4 (permalink)
 marcelo_s 
BUENOS AIRES
 
Experience: Intermediate
Platform: ninja
Broker: AMP
Trading: ES
Posts: 34 since Nov 2009
Thanks Given: 0
Thanks Received: 13


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.

Started this thread Reply With Quote
  #5 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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)
 marcelo_s 
BUENOS AIRES
 
Experience: Intermediate
Platform: ninja
Broker: AMP
Trading: ES
Posts: 34 since Nov 2009
Thanks Given: 0
Thanks Received: 13


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
Elite Membership required to download: SwingTrendX.cs
Started this thread Reply With Quote
  #7 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787


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)
 marcelo_s 
BUENOS AIRES
 
Experience: Intermediate
Platform: ninja
Broker: AMP
Trading: ES
Posts: 34 since Nov 2009
Thanks Given: 0
Thanks Received: 13


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
Elite Membership required to download: SwingTrendX.cs
Started this thread Reply With Quote
  #10 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047



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
Click image for larger version

Name:	Prime2011-08-01_153257.png
Views:	369
Size:	20.8 KB
ID:	45203  
Reply With Quote




Last Updated on September 12, 2013


© 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