NexusFi: Find Your Edge


Home Menu

 





Darvas Indicator to output to CSV


Discussion in NinjaTrader

Updated
    1. trending_up 1,961 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 BBAbility 
Manchester, United Kingdom
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
Posts: 3 since Jun 2019
Thanks Given: 1
Thanks Received: 4

Hello,

The Darvas indicator is a free open source indicator that comes with Ninjatrader 8. I would some help to modify it so that it does the following;

Output to csv the following:
Value of Upper line
Value of Lower Line
Number of times so far that the Upper line has changed
Number of times so far that the Lower line has changed
Number of times the Upper line has moved UP successively (counter resets when the Upper line makes a move downwards)
Number of times the Upper line has moved DOWN successively (counter resets when the Upper line makes a move upwards)
Number of times the Lower line has moved UP successively (counter resets when the Lower line makes a move downwards)
Number of times the Lower line has moved DOWN successively (counter resets when the Lower line makes a move upwards)

Please find attached the Darvas cs file and a screenshot.
I would like the source code of the final indicator please.

Thank you for your kind assistance.

BBAbility.


Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Would a node-based workflow for automated trading be useful?
Traders Hideout
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
No book, only a stair: journaling fills where price move …
Cryptocurrency
Daytrading to swingtrading
Traders Hideout
Datafeed for Atas
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
  #2 (permalink)
 inter 
Newtown Pennsylvania/USA
 
Experience: Intermediate
Platform: TWS NinjaTrader MATLAB
Posts: 14 since May 2019
Thanks Given: 5
Thanks Received: 4

there is no attach


Reply With Quote
  #3 (permalink)
 BBAbility 
Manchester, United Kingdom
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
Posts: 3 since Jun 2019
Thanks Given: 1
Thanks Received: 4


Hello Inter,
Please see the attached.

Thank you for your interest.

Many thanks




Darvas indicator


Attached Files
Elite Membership required to download: @Darvas.cs
Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 
Blash's Avatar
 Blash 
Chicago, IL
Legendary Market Chamois
 
Experience: None
Platform: NT8,NT7,TWS
Broker: InteractiveBrokers, S5T, IQFeed
Trading: The one I'm creating in the present....Index Futures mini/micro, ZF
Posts: 2,307 since Nov 2011
Thanks Given: 7,341
Thanks Received: 4,511

Great place to start https://ninjatrader.com/support/helpGuides/nt8/using_streamwriter_to_write_to.htm works great and easy for writing data to a file. Follow this link for info and download & install sample change to your liking.

Ron




BBAbility View Post
Hello,

The Darvas indicator is a free open source indicator that comes with Ninjatrader 8. I would some help to modify it so that it does the following;

Output to csv the following:
Value of Upper line
Value of Lower Line
Number of times so far that the Upper line has changed
Number of times so far that the Lower line has changed
Number of times the Upper line has moved UP successively (counter resets when the Upper line makes a move downwards)
Number of times the Upper line has moved DOWN successively (counter resets when the Upper line makes a move upwards)
Number of times the Lower line has moved UP successively (counter resets when the Lower line makes a move downwards)
Number of times the Lower line has moved DOWN successively (counter resets when the Lower line makes a move upwards)

Please find attached the Darvas cs file and a screenshot.
I would like the source code of the final indicator please.

Thank you for your kind assistance.

BBAbility.


...My calamity is My providence, outwardly it is fire and vengeance, but inwardly it is light and mercy...
The steed of this Valley is pain; and if there be no pain this journey will never end.
Buy Low And Sell High (read left to right or right to left....lol)
Follow me on X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on July 25, 2022


© 2026 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 - Downloads - Top
no new posts