AutoTrendHforRad indicator in a strategy "direction" and "signal" - futures io
futures io



AutoTrendHforRad indicator in a strategy "direction" and "signal"


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

AutoTrendHforRad indicator in a strategy "direction" and "signal"

(login for full post details)
  #1 (permalink)
 firecan 
sevilla
 
Experience: Intermediate
Platform: Ninja Trader
Trading: futures
 
firecan's Avatar
 
Posts: 22 since Nov 2010
Thanks: 7 given, 3 received

Good morning, Iím trying to use the AutoTrendHforRad indicator in a strategy, but I canít find a way to access to "direction" and "signal" value. Someone could help me with the code, thank you.

Attached Files
Register to download File Type: cs AutoTrendHforRad.cs (21.1 KB, 6 views)
Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
TradingView help in improving Anchored Vwap
Platforms and Indicators
For the experts of Metastock
Platforms and Indicators
Eurex Denali vs dxFeed
Sierra Chart
1 min chart v-shape scan help please
ThinkOrSwim
Experience with AGN (Introducing Broker)
Brokers
 
 
(login for full post details)
  #2 (permalink)
 SodyTexas 
Austin TX
 
Experience: Advanced
Platform: Ninjatrader, Python, & R
Broker: RJO
Trading: Futures, Spreads
 
SodyTexas's Avatar
 
Posts: 395 since Sep 2013
Thanks: 113 given, 1,034 received


firecan View Post
Good morning, Iím trying to use the AutoTrendHforRad indicator in a strategy, but I canít find a way to access to "direction" and "signal" value. Someone could help me with the code, thank you.

It looks like this is NT7, in that case, how are you calling the indicator in your strategy? Are you calling it in your Initialize void?

For example, this is a simple NT7 strat:

 
Code
protected override void Initialize()
        {
            CalculateOnBarClose = true;
			Add(Instrument.MasterInstrument.Name.ToString()+" "+ContractDate,PeriodType.Minute,BIP1);
			
			Add(MovAvg(period1));
			Add(MovAvg(period2));
			
			ExitOnClose = false;
        }
If you are calling it correctly, then you need to make sure that the indicator itself is outputting the data series. Sometimes lazy coders don't bother doing this because they may not want to use it in a strategy. Make sure that the indicator is setting the values you want as public, otherwise, a strategy won't be able to access the data.

it looks like this:
 
Code
public DataSeries data_series_name
        {
            get { return Values[0]; }
        }
If you would like more support, you will need to send some examples of the strategy. Hard to correct code when I can't see it.

FYI I do not have NT7 installed, and am doing this from memory, so code snips would help.

Cheers,
Sody

"The great Traders have always been humbled by the market early on in their careers creating a deep respect for the market. Until one has this respect indelibly engraved in their makeup, the concept of money management and discipline will never be treated seriously."
Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to SodyTexas for this post:
 
(login for full post details)
  #3 (permalink)
 firecan 
sevilla
 
Experience: Intermediate
Platform: Ninja Trader
Trading: futures
 
firecan's Avatar
 
Posts: 22 since Nov 2010
Thanks: 7 given, 3 received


Thank you for your answer, it is in nt7.

Regards.

Started this thread Reply With Quote
 
(login for full post details)
  #4 (permalink)
 firecan 
sevilla
 
Experience: Intermediate
Platform: Ninja Trader
Trading: futures
 
firecan's Avatar
 
Posts: 22 since Nov 2010
Thanks: 7 given, 3 received

Good morning, the indicator has an int and doubles in the middle of the code. I have passed them to Variables and the problem is solved, thanks to everyone.

Started this thread Reply With Quote
 
(login for full post details)
  #5 (permalink)
 MrTrader 
ITAJAI SC/BRAZIL
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Clear Corretora
Trading: DOLFUT, WINFUT
 
Posts: 264 since Jun 2014
Thanks: 1,040 given, 187 received


firecan View Post
Good morning, the indicator has an int and doubles in the middle of the code. I have passed them to Variables and the problem is solved, thanks to everyone.

For future references of viewers of this thread would be nice if you could attach the version that is working.. just an idea.. have a good weekend!

Sent using the futures.io mobile app

Reply With Quote
 
(login for full post details)
  #6 (permalink)
 firecan 
sevilla
 
Experience: Intermediate
Platform: Ninja Trader
Trading: futures
 
firecan's Avatar
 
Posts: 22 since Nov 2010
Thanks: 7 given, 3 received

Ok. Thanks.

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > AutoTrendHforRad indicator in a strategy "direction" and "signal"


Last Updated on May 18, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

August
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts