NexusFi: Find Your Edge


Home Menu

 





Darvas Indicator to output to CSV


Discussion in NinjaTrader

Updated
    1. trending_up 1,753 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?
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
March Jobs Report Update: 178K Beat vs 59K Expected, Wag …
Traders Hideout
Iran Ceasefire Surges to 19.5% on US 15-Point Plan -- 82 …
Prediction Markets & Event Contracts
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
Eurex Eyes Prediction Markets -- Europes Biggest Derivat …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 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