NexusFi: Find Your Edge


Home Menu

 





adding plots in strategy builder


Discussion in NinjaTrader

Updated
    1. trending_up 1,795 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:	152
Size:	140.4 KB
ID:	319462   Click image for larger version

Name:	Screenshot (166).png
Views:	148
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?
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Iran War Prediction Markets: Ceasefire 16%, Ground Invas …
Prediction Markets & Event Contracts
Iran Ceasefire Surges to 19.5% on US 15-Point Plan -- 82 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 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
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,114


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