A little programming help plz (Page 4) - NinjaTrader Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

A little programming help plz
Started:August 28th, 2010 (06:42 AM) by mpe66 Views / Replies:4,715 / 31
Last Reply:July 27th, 2011 (09:16 AM) Attachments:6

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

A little programming help plz

Old August 30th, 2010, 09:21 AM   #31 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: NinjaTrader
Posts: 48 since Mar 2010
Thanks: 29 given, 12 received

Thanks Zondor. Looks real good. How would you go about changing from rising/falling to positive/negative colors?

if (denom != 0)
Values[0].Set((Close[0] - vwap) / denom);
if(Values[0] > 0)PlotColors[0][0]=upColor; //oscillator up color if oscillator is positive
if(Values[0] < 0)PlotColors[0][0]=downColor;//oscillator down color if oscillator is negative




Reply With Quote

Old July 27th, 2011, 09:16 AM   #32 (permalink)
Elite Member
Chicago, Illinois
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/ZENFIRE
Favorite Futures: 6E
Posts: 134 since Mar 2011
Thanks: 431 given, 64 received

Zondor and VWAP Oscillator


Thought this was from you.

Zondor View Post
Made some changes. Note that this is for NT7 ONLY.

Incorporated Cvax's version of VWAP, the one that MooreTech used. Renamed it so that it won't get confused with the other versions of VWAP that are floating around out there.

Added the ability to change the start time and end time; they are now user settings of the VWAP oscillator.

Added a zero line so you can tell at a glance whether price is above or below VWAP. It plots two different colors depending on whether VWAP is rising or falling.

Added multi color plotting to the oscillator line, different colors for rising and falling.

Retained correct implementation of calls to external indicator using predefined instances.

You will note that in addition to the enhanced features, this runs much faster than the MooreTech version, which uses the incorrect "newbie" method of calling VWAP. Try both versions on a 10,000 bar chart with calculate on bar close set to false and see which one loads faster.

Attached Files
Register to download File Type: zip VwapOscillator.zip (9.8 KB, 46 views)
Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > A little programming help plz

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Programming (programming without coding) LukeGeniol Platforms and Indicators 11 September 16th, 2016 12:49 PM
Help with programming concept r3algood NinjaTrader Programming 3 July 30th, 2011 03:21 AM
Indicator programming Mondrakete NinjaTrader Programming 3 April 3rd, 2011 01:02 PM
HELP with understanding this FORMULA plz.... mdsvtr Currency Futures 1 February 11th, 2011 09:11 PM
HELP with RECOMMENDING a Ninja Script Consultant plz... mdsvtr Vendors and Product Reviews 3 November 6th, 2010 10:12 AM

All times are GMT -4. The time now is 10:05 PM.

Copyright © 2016 by 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 2016-10-21 in 0.09 seconds with 20 queries on phoenix via your IP