NexusFi: Find Your Edge


Home Menu

 





Programing indicator, close line if it has been touched


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one matevisky with 9 posts (2 thanks)
    2. looks_two Fat Tails with 5 posts (5 thanks)
    3. looks_3 cory with 2 posts (0 thanks)
    4. looks_4 erk707 with 1 posts (0 thanks)
    1. trending_up 4,638 views
    2. thumb_up 7 thanks given
    3. group 4 followers
    1. forum 16 posts
    2. attach_file 5 attachments




 
Search this Thread

Programing indicator, close line if it has been touched

  #1 (permalink)
 
matevisky's Avatar
 matevisky 
Nelson, New Zealand
 
Experience: Beginner
Posts: 470 since May 2013
Thanks Given: 633
Thanks Received: 1,533

I have some programing skill, but it is getting rusty, so it would be great, if someone can help me out. I am using different S/R levels. All these levels based on highs/lows etc... but all these levels are negated, if it has been touched by the price action. I dont know is there any indicator which is doing like this (I do remember gomi using lines for naked levels like this). So the question is that, is someone has a template to do this, or has simular thing to do this?

Thank you in advance!

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
Quant vue
Trading Reviews and Vendors
 
  #2 (permalink)
 erk707 
Irvine, CA
 
Experience: Intermediate
Platform: Ninjatrader
Trading: Piano, ES, GC, CL, NQ, 6E
Posts: 21 since Feb 2011
Thanks Given: 5
Thanks Received: 4

You could loop through the last x number of bars and compar the high and low of those bars and see if your price falls inbetween. This way you can control how far back you want to check it tye line has been touched or not

Reply With Quote
  #3 (permalink)
 
matevisky's Avatar
 matevisky 
Nelson, New Zealand
 
Experience: Beginner
Posts: 470 since May 2013
Thanks Given: 633
Thanks Received: 1,533


Yesterday I have been checked almost every indicator on the site, and I have not find any of these requirment. So I have been started to do it alone. If I am ready I will do the upload ofcourse on the site, till that finger crossed

Máté
Full time trader Live journal here
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (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


matevisky View Post
Yesterday I have been checked almost every indicator on the site, and I have not find any of these requirment. So I have been started to do it alone. If I am ready I will do the upload ofcourse on the site, till that finger crossed


Your description is not very clear. Actually I do not understand what you look for. Best you attach a chart, as the picture might help to decipher your ideas.

I have an indicator that plots naked highs and lows. Those highs and lows are either ETH or RTH highs and lows from prior trading days. The highs and lows are plotted until they are touched and will disappear at the end of the trading day during which they were taken out.

Is that what you look for, or do you plot intraday levels?

Reply With Quote
  #5 (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


matevisky View Post
I have some programing skill, but it is getting rusty, so it would be great, if someone can help me out. I am using different S/R levels. All these levels based on highs/lows etc... but all these levels are negated, if it has been touched by the price action. I dont know is there any indicator which is doing like this (I do remember gomi using lines for naked levels like this). So the question is that, is someone has a template to do this, or has simular thing to do this?

Thank you in advance!

you will find the code you need in this one

Reply With Quote
  #6 (permalink)
 
matevisky's Avatar
 matevisky 
Nelson, New Zealand
 
Experience: Beginner
Posts: 470 since May 2013
Thanks Given: 633
Thanks Received: 1,533


Fat Tails View Post
Your description is not very clear. Actually I do not understand what you look for. Best you attach a chart, as the picture might help to decipher your ideas.

I have an indicator that plots naked highs and lows. Those highs and lows are either ETH or RTH highs and lows from prior trading days. The highs and lows are plotted until they are touched and will disappear at the end of the trading day during which they were taken out.

Is that what you look for, or do you plot intraday levels?

Thank you for jumping in. I am looking for All the Lows, and Highs, from previus days, till it is not broken. Why? you can ask. I was using a lots of fibs tool, session pivots, and all the stuff to plot areas. Sometimes these are working sometimes not. But I have been realized, most of the cases, the previus days highs and lows are most likely going to be broken. Ofc you can always point out it was a fib level, you can always point out, that was a trading pit pivot, that was a volume profile PointOfControll.

But I would like to have clarity. I dont need too much levels, only the highs, lows, and closes (naked GAPs) till it is not broken. Valhalla future indicator has a simular stuff, with a lots of other stuff together, what I dont really need:
Valhalla Futures - Software

Opening Range bar is a usefull stuff as well.

The second problem which is comming is the session time ofc. You are not able to plot the globex H/L if that is not in the session template. I have seen your indicators, and my biggest issue (i dont know is that solveable or not) to have a globex high and low without showing it in the session. I believe there is no possibility to do this (only with workarounds, to getting information from another chart)

Hope it has been clarified

Máté
Full time trader Live journal here
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #7 (permalink)
 
matevisky's Avatar
 matevisky 
Nelson, New Zealand
 
Experience: Beginner
Posts: 470 since May 2013
Thanks Given: 633
Thanks Received: 1,533


cory View Post
you will find the code you need in this one

Yip, thx, it is a great start! Not fully what I need, but a very nicely down thing, to start! Thank you!

Máté
Full time trader Live journal here
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (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


matevisky View Post
Thank you for jumping in. I am looking for All the Lows, and Highs, from previus days, till it is not broken. Why? you can ask. I was using a lots of fibs tool, session pivots, and all the stuff to plot areas. Sometimes these are working sometimes not. But I have been realized, most of the cases, the previus days highs and lows are most likely going to be broken. Ofc you can always point out it was a fib level, you can always point out, that was a trading pit pivot, that was a volume profile PointOfControll.

But I would like to have clarity. I dont need too much levels, only the highs, lows, and closes (naked GAPs) till it is not broken. Valhalla future indicator has a simular stuff, with a lots of other stuff together, what I dont really need:
Valhalla Futures - Software

Opening Range bar is a usefull stuff as well.

The second problem which is comming is the session time ofc. You are not able to plot the globex H/L if that is not in the session template. I have seen your indicators, and my biggest issue (i dont know is that solveable or not) to have a globex high and low without showing it in the session. I believe there is no possibility to do this (only with workarounds, to getting information from another chart)

Hope it has been clarified


If you look back over a longer period, naked highs and lows will be affected by rollover gaps. Therefore the question is whether

-> you use a merged backadjusted chart (which shows readjusted naked highs and lows)
-> or whether you use a merged, non-backadjusted chart (which shows the original values for highs and lows from the old contract months)

If you look at ES 12-14 today, you will find

-> a naked gap from May 21, if you use a backadjusted chart
-> naked lows from May 15, 16 and 20, if you use a merged chart, which is not backadjusted





Reply With Quote
Thanked by:
  #9 (permalink)
 
matevisky's Avatar
 matevisky 
Nelson, New Zealand
 
Experience: Beginner
Posts: 470 since May 2013
Thanks Given: 633
Thanks Received: 1,533


Fat Tails View Post
If you look back over a longer period, naked highs and lows will be affected by rollover gaps. Therefore the question is whether

-> you use a merged backadjusted chart (which shows readjusted naked highs and lows)
-> or whether you use a merged, non-backadjusted chart (which shows the original values for highs and lows from the old contract months)

Yip, make sense. Didnt consider this question at to to speaking frankly. I am using tick data, and it is automatically merged by ninja (guessing backadjusted by default).

But as I said! planing to use Minute chart, with clean RTH only data, to spotting different time levels, in case of tranding. My beliefe is more people using backadjusted data by default, so makes more sense for me to use that. Ofc there is no black or white answer never, and would be nice to analyse it, but not now

Do you have any observation on this topic?

What is the indicator here what you are using? It is very nicly spotting the important level as I see. And speaking frankly, for intraday trading these levels are comfirmations and not signals

Máté
Full time trader Live journal here
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #10 (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



matevisky View Post
Yip, make sense. Didnt consider this question at to to speaking frankly. I am using tick data, and it is automatically merged by ninja (guessing backadjusted by default).

But as I said! planing to use Minute chart, with clean RTH only data, to spotting different time levels, in case of tranding. My beliefe is more people using backadjusted data by default, so makes more sense for me to use that. Ofc there is no black or white answer never, and would be nice to analyse it, but not now

Do you have any observation on this topic?

What is the indicator here what you are using? It is very nicly spotting the important level as I see. And speaking frankly, for intraday trading these levels are comfirmations and not signals

Not sure whether a naked high or low from May is observed by many traders. Maybe the index close is more important here than the futures, as it is not affected by rollover gaps.

The indicator uses RTH data only - although it is added to an ETH chart. You will note that if a naked high or low is broken during the night session, is is still considered as a naked high and the indicator continues to plot that high until it is taken out during the regular session. In case that price gaps up above a naked high without a retest during the following regular session, the naked high is shown as support and not as resistance (color change from green to red).

Prior day's close and open (the pair that forms a gap) is displayed until taken out on one of the following days. The indicator even displays them, if the gap has been immediately closed during the regular session.

Reply With Quote
Thanked by:




Last Updated on October 16, 2014


© 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