NexusFi: Find Your Edge


Home Menu

 





adding plots in strategy builder


Discussion in NinjaTrader

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




 
Search this Thread

adding plots in strategy builder

  #1 (permalink)
 Abusamjad91 
San Francisco California
 
Experience: None
Platform: NinjaTrader
Trading: futures
Posts: 70 since Oct 2020
Thanks Given: 56
Thanks Received: 59

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:	93
Size:	140.4 KB
ID:	319462   Click image for larger version

Name:	Screenshot (166).png
Views:	93
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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
70 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
20 thanks
  #2 (permalink)
 TraderGB 
Dallas, TX
 
Experience: Intermediate
Platform: NinjaTrader8
Trading: ES, CL
Posts: 183 since Mar 2012
Thanks Given: 1
Thanks Received: 411

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, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


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


Strategy Builder - Conditions

Reply With Quote
Thanked by:




Last Updated on November 21, 2021


© 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