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 Quick Summary with 1 posts (0 thanks)
    3. looks_3 tr8d3r with 1 posts (0 thanks)
    4. looks_4 TheWizard with 1 posts (1 thanks)
    1. trending_up 2,598 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,191
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?
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 tr8d3r 
Sydney+Australia
 
Experience: Beginner
Platform: NinjaTrader + daytradr
Trading: futures
Posts: 122 since Feb 2014
Thanks Given: 104
Thanks Received: 174


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,191
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,191
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