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 3,095 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?
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
 
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)
 
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


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


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