NexusFi: Find Your Edge


Home Menu

 





adding plots in strategy builder


Discussion in NinjaTrader

Updated
    1. trending_up 1,862 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 2 posts
    2. attach_file 4 attachments




 
Search this Thread
  #1 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
Posts: 76 since Oct 2020
Thanks Given: 57
Thanks Received: 60

Hey everyone,

Can someone help me add plots in strategy builder to an indicator? I would like to able to choose the green shaded area and the red shaded area from the plots in the strategy builder. I have attached photos of what I need help with and the indicator as well.

Thank you
Abdus


Attached Thumbnails
Click image for larger version

Name:	Screenshot (165).png
Views:	161
Size:	140.4 KB
ID:	319462   Click image for larger version

Name:	Screenshot (166).png
Views:	158
Size:	219.2 KB
ID:	319463  
Attached Files
Elite Membership required to download: gbAvgHiLoPivot.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
ATFX Suspends Prop Trading Unit ATFunded -- Full Review …
Funded Trading Evaluation Firms
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
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
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 TraderGB 
Dallas, TX
 
Experience: Intermediate
Platform: NinjaTrader8
Trading: ES, CL
Posts: 183 since Mar 2012
Thanks Given: 1
Thanks Received: 413

Abusamjad91,

You cannot directly choose the shaded area from gbAvgHiLoPivot. But, you can follow the code below to see if the trend is up (shaded Green) or down (shaded Red).

TraderGB

 
Code
bool trendUp = true;   // defined in strategy

if (!trendUp && Low[0] > AvgPivotHi[0] && Low[1] > AvgPivotHi[0])            // the trend just changed to up (GREEN)
{
   trendUp = true;
   GO_LONG_OR_WHATEVER_ELSE_YOU_WANT_TO_DO
}
else if (trendUp && High[0] < AvgPivotLo[0] && High[1] < AvgPivotLo[0])    // the trend just changed to down (RED)
{
   trendUp = false;
   GO_SHORT_OR_WHATEVER_ELSE_YOU_WANT_TO_DO
}

// You may also want to use the code below as well...only works if you have the above code.

if (trendUp)   // trend is up
{
    DO_SOMETHING
}
else // trend is down
{
    DO_SOMETHING
}

Abusamjad91 View Post
Hey everyone,

Can someone help me add plots in strategy builder to an indicator? I would like to able to choose the green shaded area and the red shaded area from the plots in the strategy builder. I have attached photos of what I need help with and the indicator as well.

Thank you
Abdus


Reply With Quote
Thanked by:
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


Just activate the option "plot on chart", see screenshot attached.


Strategy Builder - Conditions


Reply With Quote
Thanked by:




Last Updated on November 21, 2021


© 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