NexusFi: Find Your Edge


Home Menu

 





anaSuperTrendU11 used in separate indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one KrazyTrader with 3 posts (0 thanks)
    2. looks_two Fat Tails with 2 posts (2 thanks)
    3. looks_3 DELTA007 with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 2,969 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 KrazyTrader 
Dallas, TX/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, CL
Posts: 51 since Aug 2013
Thanks Given: 56
Thanks Received: 9

Hello All,

I'm referencing @Fat Tails anaSuperTrendU11 in a separate indicator and looking for some kinda short cut or a simpler way. My current coding ability has me writing anaSuperTrendU11(1,1,1,false, anaSuperTrendU11BaseType.Median, etc, etc, UpTrend== true/false or StopLine. Is there a better way?? Something like ST1 = anaSuperTrendU11(1,1,1,false, anaSuperTrendU11BaseType.Median, etc, etc, UpTrend== true/false or StopLine. Or ST1.UpTrend or ST1.StopLine = anaSuperTrendU11(1,1,1,false, anaSuperTrendU11BaseType.Median, etc, etc, UpTrend== true/false or StopLine. Then i can code ST1. ??


Thanks in advance.


Difference between discomfort and pain = 1 tick
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
Double Deadlock: Rubio Calls Hormuz Tolls "Unfeasib …
Traders Hideout
400 Million Barrels to Address Middle East Supply Disruption
Commodities
Energy Futures Shatter All-Time Daily Volume: 8.3 Millio …
Commodities
 
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)
 
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


You can basically declare a new instance of the SuperTrend in the variables section and then once set the parameters for this instance in OnStartUp().

In that case you do not need to list all the parameters more than once.


Reply With Quote
Thanked by:
  #4 (permalink)
 KrazyTrader 
Dallas, TX/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, CL
Posts: 51 since Aug 2013
Thanks Given: 56
Thanks Received: 9


Fat Tails View Post
You can basically declare a new instance of the SuperTrend in the variables section and then once set the parameters for this instance in OnStartUp().

In that case you do not need to list all the parameters more than once.

I think i understand the variables part. How do i set parameters in OnStartUp()?

Thanks so much.


Difference between discomfort and pain = 1 tick
Started this thread Reply With Quote
  #5 (permalink)
 
DELTA007's Avatar
 DELTA007 
NewDelhi ,India
 
Experience: Intermediate
Platform: NT7
Trading: crudeoil
Posts: 161 since Oct 2014

How about adding adaptive supertrend option to it?


Reply With Quote
  #6 (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


KrazyTrader View Post
I think i understand the variables part. How do i set parameters in OnStartUp()?

Thanks so much.


Variables:
 
Code
private  anaSuperTrendU11  STU;

OnStartUp:
 
Code
protected override void OnStartUp()
{
     STU = anaSuperTrendU11(basePeriod, multiplier, rangePeriod, false, thisBaseType, thisOffsetType, thisVolaType);
}

If you want to display the SuperTrendU11 via your indicator, you will need to add a plot for this purpose.


Reply With Quote
Thanked by:
  #7 (permalink)
 KrazyTrader 
Dallas, TX/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, CL
Posts: 51 since Aug 2013
Thanks Given: 56
Thanks Received: 9


Fat Tails View Post
Variables:
 
Code
private  anaSuperTrendU11  STU;

OnStartUp:
 
Code
protected override void OnStartUp()
{
     STU = anaSuperTrendU11(basePeriod, multiplier, rangePeriod, false, thisBaseType, thisOffsetType, thisVolaType);
}

If you want to display the SuperTrendU11 via your indicator, you will need to add a plot for this purpose.

@ Fat Tails that's a breakthrough for me. Thanks so much!!!!


Difference between discomfort and pain = 1 tick
Started this thread Reply With Quote




Last Updated on May 22, 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