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




 
Search this Thread

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

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

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?
Increase in trading performance by 75%
The Elite Circle
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
My NQ Trading Journal
12 thanks
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599



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 Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


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)
Follow me on Twitter Reply With Quote
Thanked by:
  #5 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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:	225
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,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

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


© 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