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 Quick Summary with 1 posts (0 thanks)
    4. looks_4 DELTA007 with 1 posts (0 thanks)
    1. trending_up 2,219 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

anaSuperTrendU11 used in separate indicator

  #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?
REcommedations for programming help
Sierra Chart
Strategy stop orders partially filled
EasyLanguage Programming
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Quantum physics & Trading dynamics
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
Funded Trader platforms
16 thanks
ApexTraderFunding.com experience and review
13 thanks
Trading with Intuition
12 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #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


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


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


© 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