NexusFi: Find Your Edge


Home Menu

 





Expose indicator plot on VitVWAP for strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one stoicbuddha with 3 posts (0 thanks)
    2. looks_two TheWizard with 1 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 tr8d3r with 1 posts (0 thanks)
    1. trending_up 2,501 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 
stoicbuddha's Avatar
 stoicbuddha 
Seattle, WA
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: AMP/CQG
Trading: S&P, Nasdaq
Frequency: Every few days
Duration: Minutes
Posts: 103 since Feb 2012
Thanks Given: 1,189
Thanks Received: 101

I am creating a strategy that uses the value of the plot from Vitalij's VWAP ( here or see attached). I am having trouble figuring out how to expose (if not exposed already) the plot. Can someone take a look at this and tell me if i need to either change the code in the Indicator itself or what parameter I need to use in my strategy?

Thanks!


Attached Files
Elite Membership required to download: VitVWAP.cs
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Synapse Pro - Trade Copier with topstep and MT5 integrat …
NinjaTrader
SEC and CFTC Unlock Customer Cross-Margining for Treasur …
Treasury Notes and Bonds
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Prop Firms Are Banning Gold Trading as Record Prices Mak …
Funded Trading Evaluation Firms
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 tr8d3r 
Sydney+Australia
 
Experience: Beginner
Platform: NinjaTrader + daytradr
Trading: futures
Posts: 121 since Feb 2014
Thanks Given: 104
Thanks Received: 173


There you go.

It was mention in NinjaTrader forum.

Import the .CS files into NinjaTrader.

To do this copy the .CS files and then paste them into the following directory: My Documents\NinjaTrader 7\bin\Custom\Strategy
If they are Indicators it will need to be the following directory: My Documents\NinjaTrader 7\bin\Custom\Indicator

Once complete, go to Tools > Edit NinjaScript > Indicator > select any indicator > OK > once the NinjaScript Editor window opens press F5 on your keyboard to compile your NinjaScript files.


I hope it helps


Reply With Quote
  #4 (permalink)
 
stoicbuddha's Avatar
 stoicbuddha 
Seattle, WA
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: AMP/CQG
Trading: S&P, Nasdaq
Frequency: Every few days
Duration: Minutes
Posts: 103 since Feb 2012
Thanks Given: 1,189
Thanks Received: 101

I didn't explain my problem properly, sorry. I have the Indicator working on my chart. I am creating a strategy that lets me know when price hits the vwap value from that indicator, so I need the plot value from that indicator as a reference in my strategy. My problem is referencing the plot from the indicator in my strategy. For instance, I get an error with CrossAbove(Close, VitVWAP, 1) because it says I am calling a method.


Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 
TheWizard's Avatar
 TheWizard 
Houston, TX
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
Posts: 1,731 since Jun 2009
Thanks Given: 517
Thanks Received: 4,224


happyrenko View Post
I didn't explain my problem properly, sorry. I have the Indicator working on my chart. I am creating a strategy that lets me know when price hits the vwap value from that indicator, so I need the plot value from that indicator as a reference in my strategy. My problem is referencing the plot from the indicator in my strategy. For instance, I get an error with CrossAbove(Close, VitVWAP, 1) because it says I am calling a method.

@happyrenko,

Try:

if (CrossAbove(Close, VitVWAP(), 1))

then....do something

and

if(CrossBelow(Close,VitVWAP(),1))

then...do something


After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
Thanked by:
  #6 (permalink)
 
stoicbuddha's Avatar
 stoicbuddha 
Seattle, WA
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: AMP/CQG
Trading: S&P, Nasdaq
Frequency: Every few days
Duration: Minutes
Posts: 103 since Feb 2012
Thanks Given: 1,189
Thanks Received: 101


TheWizard View Post
@happyrenko,

Try:

if (CrossAbove(Close, VitVWAP(), 1))

then....do something

and

if(CrossBelow(Close,VitVWAP(),1))

then...do something

That did it, thanks!


Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on January 20, 2016


© 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