Darvas Indicator - NinjaTrader | futures io social day trading
futures io futures trading


Darvas Indicator
Updated: Views / Replies:7,536 / 14
Created: by gretzkyless Attachments:16

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
 16  
 
Thread Tools Search this Thread
 

Darvas Indicator

  #1 (permalink)
Elite Member
Chicago, IL/USA
 
Futures Experience: Intermediate
Platform: Ninja Trader
Broker/Data: AMP Trading - CQG/ThinkorSwim
Favorite Futures: Futures
 
gretzkyless's Avatar
 
Posts: 29 since Jan 2013
Thanks: 11 given, 14 received

Darvas Indicator

This is a general question regarding indicators, but wanted to find out why someone couldn't just combine 2 of the indicators into one. For instance, I was trying to combine the Darvas and DynamicSRLines indicators into one indicator and wondering why it wouldn't be as simple as combining the code together into one. When I moved the 'variables' and 'properties' of one indicator over into the other indicator and compile, I get no errors, but when I move the 'OnBarUpdate' information over, I get errors, most pertaining to error code CS1519.

I'm new to coding and don't know how the syntax works well, but was trying to figure out why consolidating the code into one indicator doesn't work like I thought it would.

My rationale for trying to combine the 2 indicators was to figure out how to draw a Darvas box around a resting period to set-up for a possible trade up or down. I couldn't find an indicator that did this, and was trying to figure out a way to show this without the continuous drawing. I have included 2 examples of what I'm trying to accomplish.

I'm aware that more would need to be done to fine tune the indicator, but just trying to get this to draw boxes around resting periods, sideways areas. Any advice or help in pointing me in the direction to create this indicator would be greatly appreciated. Thanks.

Below are my parameters based on trading crude:

1) Once Equal or Lower highs are created, begin creating box at first equal or lower high if at least the next 3 bars are formed fit this criteria.
2) Minimum number of ticks to start creating box - 10 ticks
3) Maximum number of ticks to start creating box - 25 ticks
4) Mark the boxes high or low point if the next 3 bars make LH/HL
5) Once the next bar breaks above/below the box, signal long/short trade.

I'm just trying to make the Ninja Darvas indicator a little less noisy.

Attached Thumbnails
Darvas Indicator-cldarvas-indicator.jpg   Darvas Indicator-clindicator-i-want.jpg   Darvas Indicator-cldarvas-indicator2.jpg.png   Darvas Indicator-clindicator-i-want2.png  
Attached Files
Register to download File Type: docx Darvas Boxes per Ninja Indicator.docx (60.5 KB, 161 views)
Register to download File Type: docx Darvas Boxes per Ninja Indicator2.docx (67.2 KB, 114 views)
Reply With Quote
The following 3 users say Thank You to gretzkyless for this post:
 
  #2 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,218 since Jun 2009
Thanks: 628 given, 6,316 received
Forum Reputation: Legendary

sample of merging darvas with srline, you just need to remember to re-number value[0],value[1] so they don't use the same array.

Attached Files
Register to download File Type: cs DavasAndSRLines.cs (15.2 KB, 160 views)
Reply With Quote
The following 5 users say Thank You to cory for this post:
 
  #3 (permalink)
Elite Member
Chicago, IL/USA
 
Futures Experience: Intermediate
Platform: Ninja Trader
Broker/Data: AMP Trading - CQG/ThinkorSwim
Favorite Futures: Futures
 
gretzkyless's Avatar
 
Posts: 29 since Jan 2013
Thanks: 11 given, 14 received


Hey Cory. Thanks for the attachment. I just have one question about the attachment since I'm still trying to understand how to look at and create code Was I suppose to change the value portion of the code based on the indicator you attached or did you do that when you inputted the value [2] and value [3] sections to the region variable code? I'm just wondering if there was something still needing to be done since when I tried to compile the code to add to my indicators, I still got the CS1519 error for the bottom portion of the OnBarUpdate section. I have attached a screenprint so you can see what I'm referring to. Thanks again for helping me get started on what I'm trying to create.

Attached Thumbnails
Darvas Indicator-indicatorerror.jpg  
Reply With Quote
The following user says Thank You to gretzkyless for this post:
 
  #4 (permalink)
Elite Member
Chicago, IL/USA
 
Futures Experience: Intermediate
Platform: Ninja Trader
Broker/Data: AMP Trading - CQG/ThinkorSwim
Favorite Futures: Futures
 
gretzkyless's Avatar
 
Posts: 29 since Jan 2013
Thanks: 11 given, 14 received

My apologies. The indicator does work, but didn't plot the SR Lines. I will work on it tomorrow to see if I can get the SR Lines to show up when the indicator is running. Thanks again for your help and getting me started in what I'm trying to do.

Reply With Quote
 
  #5 (permalink)
Elite Member
New York City New York USA
 
Futures Experience: Intermediate
Platform: Think or Swim, Infinity Futures
Broker/Data: Thinkor Swim for Charts an Infinity Futures for Trading Dom
Favorite Futures: Oil
 
Posts: 51 since Jul 2012
Thanks: 448 given, 45 received

Gretzyless,

I feel your pain that he is not playing anymore he was the greatest I have ever seen....

I like your study...

Can anyone program this for TOS

Thanks

Hguru

Reply With Quote
 
  #6 (permalink)
Elite Member
Chicago, IL/USA
 
Futures Experience: Intermediate
Platform: Ninja Trader
Broker/Data: AMP Trading - CQG/ThinkorSwim
Favorite Futures: Futures
 
gretzkyless's Avatar
 
Posts: 29 since Jan 2013
Thanks: 11 given, 14 received

Ok. Now that I got some sleep, I can see what my confusion was last night in not seeing the indicator on my chart. I have attached a screenprint of the SRLines indicator I was trying to combine with the Darvas Box Indicator. I have also included the SRLines Indicator as well.

Attached Thumbnails
Darvas Indicator-crude-5-minute-chart.jpg  
Attached Files
Register to download File Type: zip DynamicSRLines.zip (3.5 KB, 125 views)
Reply With Quote
The following 3 users say Thank You to gretzkyless for this post:
 
  #7 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,218 since Jun 2009
Thanks: 628 given, 6,316 received
Forum Reputation: Legendary

daynamicSR is more complex so I copy darvas code to dynamicSR, the is no value[0]..etc in SR so I don't have to change any number. Only thing you have to pay attention is in copying the whole #region over make sure the structure still looks the same, use +/- sign next to #region to maximize/minimize them to see which is where.

Attached Files
Register to download File Type: cs DynamicSRandDarvas.cs (21.6 KB, 199 views)
Reply With Quote
The following 3 users say Thank You to cory for this post:
 
  #8 (permalink)
Elite Member
Chicago, IL/USA
 
Futures Experience: Intermediate
Platform: Ninja Trader
Broker/Data: AMP Trading - CQG/ThinkorSwim
Favorite Futures: Futures
 
gretzkyless's Avatar
 
Posts: 29 since Jan 2013
Thanks: 11 given, 14 received

Thank you very much for your help again. It looks great. Now I just have to get the Darmas Boxes to plot like the boxes I created. I took the 2 positions in CL in the SIM account based on the indicators I have included and got 50+ tick runs in both directions. I have included the screen print for everyone's review. Thanks again, you rock.

Attached Thumbnails
Darvas Indicator-cl-5-min-chart.jpg  
Reply With Quote
 
  #9 (permalink)
Elite Member
New Braunfels, TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Futures: futures
 
Posts: 127 since Aug 2009
Thanks: 932 given, 19 received

RePaint?


cory View Post
daynamicSR is more complex so I copy darvas code to dynamicSR, the is no value[0]..etc in SR so I don't have to change any number. Only thing you have to pay attention is in copying the whole #region over make sure the structure still looks the same, use +/- sign next to #region to maximize/minimize them to see which is where.

Hi Cory,

Thanks for the hard work you do. Is it possible to code the green and red S/R lines in this indicator to where they don't repaint?

Thanks again,
eensor

Reply With Quote
 
  #10 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,218 since Jun 2009
Thanks: 628 given, 6,316 received
Forum Reputation: Legendary



eensor View Post
Hi Cory,

Thanks for the hard work you do. Is it possible to code the green and red S/R lines in this indicator to where they don't repaint?

Thanks again,
eensor

in order to look like a fantastic indicator it has to adjust/repaint to accommodate new high, new low as market prints more and more bars, nothing to do.

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

Reply



futures io > > > > Darvas Indicator

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
How to call this indicator within the indicator/strategy zikonc NinjaTrader 2 July 26th, 2012 04:45 PM
Indicator Based Upon Other Indicator Colors ScorpioTravis NinjaTrader Programming 12 June 21st, 2012 07:29 PM
Adding Constant Line Indicator to Another Indicator ceramictilepro NinjaTrader Programming 9 September 22nd, 2011 11:43 PM


All times are GMT -4. The time now is 02:35 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-14 in 0.14 seconds with 20 queries on phoenix via your IP 54.221.76.68