NexusFi: Find Your Edge


Home Menu

 





A little programming help plz


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one mpe66 with 15 posts (1 thanks)
    2. looks_two gregid with 5 posts (1 thanks)
    3. looks_3 MooreTech with 5 posts (1 thanks)
    4. looks_4 Zondor with 3 posts (8 thanks)
      Best Posters
    1. looks_one Zondor with 2.7 thanks per post
    2. looks_two gregid with 0.2 thanks per post
    3. looks_3 MooreTech with 0.2 thanks per post
    4. looks_4 mpe66 with 0.1 thanks per post
    1. trending_up 10,559 views
    2. thumb_up 11 thanks given
    3. group 5 followers
    1. forum 31 posts
    2. attach_file 6 attachments




 
Search this Thread

A little programming help plz

  #31 (permalink)
 mpe66 
Sweden
 
Experience: Intermediate
Platform: NinjaTrader
Posts: 49 since Mar 2010
Thanks Given: 29
Thanks Received: 12

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

}
else
Value.Set(0);

Thanks,

Mpe

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Build trailing stop for micro index(s)
Psychology and Money Management
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Better Renko Gaps
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
  #32 (permalink)
 wireford 
Chicago, Illinois
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/ZENFIRE
Trading: 6E
Posts: 134 since Mar 2011
Thanks Given: 431
Thanks Received: 68

Zondor-

Thought this was from you.

Wireford
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
Elite Membership required to download: VwapOscillator.zip
Reply With Quote




Last Updated on July 27, 2011


© 2024 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 - Privacy Policy - Downloads - Top
no new posts