NexusFi: Find Your Edge


Home Menu

 





how to get value(s) from a indi to a strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one cory with 2 posts (0 thanks)
    2. looks_two Big Mike with 1 posts (1 thanks)
    3. looks_3 nanobiotech with 1 posts (1 thanks)
    4. looks_4 bukkan with 1 posts (1 thanks)
      Best Posters
    1. looks_one Big Mike with 1 thanks per post
    2. looks_two nanobiotech with 1 thanks per post
    3. looks_3 sam028 with 1 thanks per post
    4. looks_4 bukkan with 1 thanks per post
    1. trending_up 3,659 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098

I look at Hurly strategy and it gets 2 value from APZ indicator by

APZ apzuv = APZ (High, APZstddev, APZlength);
APZ apzlv = APZ(Low, APZstddev, APZlength);

then I open APZ but i dont see High, Low mention inside APZ ???

anyway what I am after is High, Low of HiLoOfTimeRange indi

so my code would be ??? what should I code here???


APZ apzuv = HiLoOfTimeRange (9,30,9,45);
APZ apzllv = HiLoOfTimeRange (9,30,9,45);


Attached Files
Elite Membership required to download: HiLoOfTimeRange.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Datafeed for Atas
Platforms and Indicators
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Thanks Mike. Godspeed.
The Elite Circle
Daytrading to swingtrading
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 R.I.P. 1977-2026 
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,586



cory View Post
I look at Hurly strategy and it gets 2 value from APZ indicator by

APZ apzuv = APZ (High, APZstddev, APZlength);
APZ apzlv = APZ(Low, APZstddev, APZlength);

then I open APZ but i dont see High, Low mention inside APZ ???

anyway what I am after is High, Low of HiLoOfTimeRange indi

so my code would be ??? what should I code here???


APZ apzuv = HiLoOfTimeRange (9,30,9,45);
APZ apzllv = HiLoOfTimeRange (9,30,9,45);

High and Low is the dataseries being passed to APZ instead of the normal Close. Can't comment beyond that, no longer using NT.

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
sam028's Avatar
 sam028 
Site Administrator
 
Posts: 3,767 since Jun 2009
Thanks Given: 3,836
Thanks Received: 4,690


cory View Post
I look at Hurly strategy and it gets 2 value from APZ indicator by

APZ apzuv = APZ (High, APZstddev, APZlength);
APZ apzlv = APZ(Low, APZstddev, APZlength);

then I open APZ but i dont see High, Low mention inside APZ ???

anyway what I am after is High, Low of HiLoOfTimeRange indi

so my code would be ??? what should I code here???


APZ apzuv = HiLoOfTimeRange (9,30,9,45);
APZ apzllv = HiLoOfTimeRange (9,30,9,45);

The High and Low are the high/low of the current bar. So the APZ take different parameters, and may return different values.
For the HiLo.. indic, it use TheHigh and TheLow dataSeries, so you can get the needed values there.


edit: oops, Mike was faster


Success requires no deodorant! (Sun Tzu)
Reply With Quote
Thanked by:
  #5 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 279 since Jun 2009
Thanks Given: 161
Thanks Received: 272


cory View Post
I look at Hurly strategy and it gets 2 value from APZ indicator by

APZ apzuv = APZ (High, APZstddev, APZlength);
APZ apzlv = APZ(Low, APZstddev, APZlength);

then I open APZ but i dont see High, Low mention inside APZ ???

anyway what I am after is High, Low of HiLoOfTimeRange indi

so my code would be ??? what should I code here???


APZ apzuv = HiLoOfTimeRange (9,30,9,45);
APZ apzllv = HiLoOfTimeRange (9,30,9,45);

havent tested it on NT but will be something on this line
 
Code
DataSeries high = HiLoOfTimeRange(9,30,9,45).TheHigh


Reply With Quote
Thanked by:
  #6 (permalink)
 
nanobiotech's Avatar
 nanobiotech 
Brisbane, Australia
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus/Zen-Fire
Trading: CL
Posts: 670 since Jun 2009
Thanks Given: 134
Thanks Received: 430

In some of the Hurley strategies there is a need to avoid entries when the _ADXVMA_Alerts_v01_5 indicators show neutral, whether or not they also show rising or falling.

For a long the following is in the Entry Condition code (I have changed the indicator names a bit as it is from the Elite section):

&& (_ADXVMA_Alerts_v01_5(periodlength1, true).Signal[0] != 0)
&& (_ADXVMA_Alerts_v01_5_diff_colors(periodlength2, true).Signal[0] != 0)
&& Close[0] > _ADXVMA_Alerts_v01_5(adxvmalength1, true).Rising[0]
&& Close[0] > _ADXVMA_Alerts_v01_5_diff_colors(periodlength2, true).Rising[0]
&& _ADXVMA_Alerts_v01_5(periodlength1, true).Rising[0] > _ADXVMA_Alerts_v01_5_diff_colors(periodlength2, true).Rising[0]

Note there are 2 versions of _ADXVMA_Alerts_v01_5 used where the difference is limited to the colours of the Rising & Falling lines on the chart.

@gregid suggested the && (_ADXVMA_Alerts_v01_5_diff_colors(periodlength2, true).Signal[0] != 0) code but it doesn't appear to prevent entries as you can see on the attached chart.

Anyone have some suggestions how I can code to prevent entries when the _ADXVMA_Alerts_v01_5 is showing yellow (neutral) even if it is also rising (green and dark green) or falling (red or orange)?

In the attached chart segment, the circled _ADXVMA_Alerts_v01_5's show both rising and neutral, therefore I don't want to enter, but it still enters the trade.

Cheers,
Nano


Attached Thumbnails
Click image for larger version

Name:	Chart.jpg
Views:	334
Size:	101.7 KB
ID:	22297  
Reply With Quote
Thanked by:
  #7 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098

I am looking for a simple strategy to learn, the basic code is if close > open range high, short and stop at 5 ticks profit or stop at 5 ticks loss done for the day. If close < low of open range long for 5 ticks target or 5 ticks stop done for the day. Strategies here are too advance for my learning.


Started this thread Reply With Quote




Last Updated on October 10, 2010


© 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