Help using ZigZagUTCSwing in strategy - NinjaTrader Programming | futures io social day trading
futures io futures trading


Help using ZigZagUTCSwing in strategy
Updated: Views / Replies:1,645 / 1
Created: by Pepperdog 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 dont 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
 

Help using ZigZagUTCSwing in strategy

  #1 (permalink)
VIP Member
USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: NQ
 
Posts: 32 since Aug 2009
Thanks: 12 given, 54 received

Help using ZigZagUTCSwing in strategy

Hey guys, I think this should be an easy one, I hope, but I am somewhat of a hack with C# so I am having a bit of trouble.

I want to use a swing indicator (ZigZagUTCSwing at the moment, but open to suggestions if there is anything "better") to tell if the last swing high/low was higher or lower than the previous swing high/low. In the ZigZagUTCSwing indicator I see two DataSeries of hi and lo, presumably these are the swing high and low price values that are used by the indicator to determine how/what to plot? There is also a public int variable of direction, either 1 or -1, for the direction of the current zigzag trend. I have not reviewed the code in great detail, but this is how I currently understand it.

If I try to call the hi or lo DataSeries to compare the values in the strategy, I get an error "inaccessible due to its protection level". What does this error mean? So next I try to use the direction variable to determine the swing trend direction, but it appears to me that this variable is *always* 0. This doesn't make any sense, because the direction variable has to change 1/-1 in the ZigZagUTCSwing indicator for it to work!?

Maybe I am just going about this all wrong. All I want my strategy to do is only go long if both the last swing high and low were higher than the previous swing high and low, or go short if both the last swing high and low were lower than the previous swing high and low, excluding double bottoms and double tops (other entry criteria will also apply). Any ideas how I might approach this with ZigZagUTCSwing or some other similar indicator?

I've attached a quick example of what I mean, hopefully it makes sense. (The dots fire when my other entry criteria is met)

Thanks!

Attached Thumbnails
Help using ZigZagUTCSwing in strategy-6b-12-09-11_12_2009-sbsrenko-4-ticks-.png  

Last edited by Pepperdog; November 13th, 2009 at 11:15 PM.
Reply With Quote
 
  #2 (permalink)
Elite Member
Neubrandenburg, Germany
 
Futures Experience: Advanced
Platform: R
Favorite Futures: Stocks
 
wh's Avatar
 
Posts: 538 since Jun 2009
Thanks: 297 given, 480 received


Quoting 
If I try to call the hi or lo DataSeries to compare the values in the strategy, I get an error "inaccessible due to its protection level". What does this error mean? So next I try to use the direction variable to determine the swing trend direction, but it appears to me that this variable is *always* 0. This doesn't make any sense, because the direction variable has to change 1/-1 in the ZigZagUTCSwing indicator for it to work!?

your problem is "private method". there are serval approach to get data. do you know the concept of oo-programming. look for public, protected, private and look also in the ninja-api.

Reply With Quote

Reply



futures io > > > > > Help using ZigZagUTCSwing in 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
ZigZagUTCSwing Modifications hondo69 The Elite Circle 83 November 7th, 2016 09:57 AM
Call ATM Strategy on an automated strategy to control position jsengxx NinjaTrader Programming 7 May 31st, 2016 05:51 PM
Utility To Transpose Optimized Strategy Values From Excel Output to Actual Strategy mercuryfx NinjaTrader 5 April 7th, 2012 04:59 PM
Ninjatrader7 ATM Strategy combine with Strategy Wizard Ninja Script schuster21 NinjaTrader Programming 4 July 4th, 2011 05:39 PM


All times are GMT -4. The time now is 02:55 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-16 in 0.06 seconds with 20 queries on phoenix via your IP 54.163.209.109