NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

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




 
Search this Thread

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

  #1 (permalink)
 
firecan's Avatar
 firecan 
sevilla
 
Experience: Intermediate
Platform: Ninja Trader
Trading: futures
Posts: 28 since Nov 2010
Thanks Given: 9
Thanks Received: 3

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
Elite Membership required to download: AutoTrendHforRad.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Deepmoney LLM
Elite Quantitative GenAI/LLM
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
36 thanks
NexusFi site changelog and issues/problem reporting
22 thanks
The Program
20 thanks
GFIs1 1 DAX trade per day journal
19 thanks
  #2 (permalink)
 
SodyTexas's Avatar
 SodyTexas 
Austin TX
 
Experience: Advanced
Platform: Ninjatrader, Python, & R
Broker: RJO
Trading: Futures, Spreads
Posts: 421 since Sep 2013
Thanks Given: 117
Thanks Received: 1,085


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 NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
firecan's Avatar
 firecan 
sevilla
 
Experience: Intermediate
Platform: Ninja Trader
Trading: futures
Posts: 28 since Nov 2010
Thanks Given: 9
Thanks Received: 3


Thank you for your answer, it is in nt7.

Regards.

Started this thread Reply With Quote
  #4 (permalink)
 
firecan's Avatar
 firecan 
sevilla
 
Experience: Intermediate
Platform: Ninja Trader
Trading: futures
Posts: 28 since Nov 2010
Thanks Given: 9
Thanks Received: 3

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
  #5 (permalink)
 MrTrader 
ITAJAI SC/BRAZIL
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Clear Corretora
Trading: DOLFUT, WINFUT
Posts: 332 since Jun 2014
Thanks Given: 1,314
Thanks Received: 225


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 NexusFi mobile app

Reply With Quote
  #6 (permalink)
 
firecan's Avatar
 firecan 
sevilla
 
Experience: Intermediate
Platform: Ninja Trader
Trading: futures
Posts: 28 since Nov 2010
Thanks Given: 9
Thanks Received: 3

Ok. Thanks.

Started this thread Reply With Quote




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