NexusFi: Find Your Edge


Home Menu

 





indicator for distance from another indicator.


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 4 posts (4 thanks)
    2. looks_two Futuresnoob with 3 posts (0 thanks)
    3. looks_3 deandavis with 1 posts (0 thanks)
    4. looks_4 Ozquant with 1 posts (0 thanks)
    1. trending_up 2,223 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread

indicator for distance from another indicator.

  #1 (permalink)
 
deandavis's Avatar
 deandavis 
Poulsbo, Wa US
 
Experience: Intermediate
Platform: NinjaTrader Tradestation
Broker: Ninja Trader, Continuum
Trading: ES, CL
Posts: 30 since Jul 2010
Thanks Given: 109
Thanks Received: 6

Looking for an indicator that simply marks on a chart where you are at x tics from an indicator. Specifically I am interested in being able to see where x tics from the high or low of the current swing is located. Any ideas of help?? I'm not a programmer so for me that is not a solution but I can not imagine this is rocket science.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quant vue
Trading Reviews and Vendors
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
 
  #2 (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

There is no general answer.


If you take a standard indicator such as a moving average or an oscillator and define a distance in ticks and mark that distance, the result would be a fixed channel.

This can be easily coded.

However, if you talk about swing highs and lows the case is different. In this case you would first need to identify the swing high or swing low. You will need a set of rules how to determine a swing high or low (rules would include swing strength and/or minimum deviation). Once you have identified a swing high or low it is possible to draw a line n ticks above the last swing high and n ticks below the last swing low.

When a new swing high or low is detected you would start a new line and an abandon the prior line.

For a swing indicator it would be necessary to such a feature into that specific indicator. For a fixed channel indicator which plots a channel at a fixed distance around a moving average or oscillator it is possilbe to code one indicator and then select moving average / oscillator as input series.

Reply With Quote
  #3 (permalink)
 Futuresnoob 
San Antonio Texas
 
Experience: Intermediate
Platform: Sierra Charts, TOS
Broker: Edge Clear, Rithmic
Trading: ES and Treasury Spreads
Posts: 102 since Nov 2016
Thanks Given: 50
Thanks Received: 55


I'm looking for something just like this. If there is something on Futures.io . I use a 233 tic timeframe and a visualSMA 10 period from a higher timeframe. And in most cases the further away price action is the less effective my signal is. Right now I'm trying to determine what the tipping point is. I want avoid taking my signal after that tipping point. If there was a way to measure the distance from the close of the candle and that SMA I could begin to determine my rules. I would eventually like to try and automate the entry in ninjatrader. But that is way down the road.

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


Futuresnoob View Post
I'm looking for something just like this. If there is something on Futures.io . I use a 233 tic timeframe and a visualSMA 10 period from a higher timeframe. And in most cases the further away price action is the less effective my signal is. Right now I'm trying to determine what the tipping point is. I want avoid taking my signal after that tipping point. If there was a way to measure the distance from the close of the candle and that SMA I could begin to determine my rules. I would eventually like to try and automate the entry in ninjatrader. But that is way down the road.

What is your higher timeframe?

Is it a tick chart or a minute chart?

Reply With Quote
  #5 (permalink)
 Futuresnoob 
San Antonio Texas
 
Experience: Intermediate
Platform: Sierra Charts, TOS
Broker: Edge Clear, Rithmic
Trading: ES and Treasury Spreads
Posts: 102 since Nov 2016
Thanks Given: 50
Thanks Received: 55


Fat Tails View Post
What is your higher timeframe?

Is it a tick chart or a minute chart?

The indicator is a 30 minute 11 EMA. But instead of on a 30 minute chart it's displayed on my 233 tic chart. Thank you.

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

You would not want to measure the distance from the VisualSMA in ticks, but take into account volatility.

If you had a simple SMA - not the multi-timeframe VisualSMA - one of the best options would be to look at a Z-score indicator, which shows you how far away price is from the SMA in terms of standard deviations.

Alternatively you could simply use a Bollinger Band or Keltner Channel and adjust the channel width to suit your needs.

If you wish to filter your signals based on the VisualSMA, you would need to add a channel to the VisualSMA. I do not see a fast and simple solution here. Calling the VisualSMA from another indicator should work, as long as you stick with minute, tick or volume charts. I would probably try to call the VisualSMA from a Z-score or Keltner Universal indicator.

Reply With Quote
Thanked by:
  #7 (permalink)
 Futuresnoob 
San Antonio Texas
 
Experience: Intermediate
Platform: Sierra Charts, TOS
Broker: Edge Clear, Rithmic
Trading: ES and Treasury Spreads
Posts: 102 since Nov 2016
Thanks Given: 50
Thanks Received: 55


Fat Tails View Post
You would not want to measure the distance from the VisualSMA in ticks, but take into account volatility.

If you had a simple SMA - not the multi-timeframe VisualSMA - one of the best options would be to look at a Z-score indicator, which shows you how far away price is from the SMA in terms of standard deviations.

Alternatively you could simply use a Bollinger Band or Keltner Channel and adjust the channel width to suit your needs.

If you wish to filter your signals based on the VisualSMA, you would need to add a channel to the VisualSMA. I do not see a fast and simple solution here. Calling the VisualSMA from another indicator should work, as long as you stick with minute, tick or volume charts. I would probably try to call the VisualSMA from a Z-score or Keltner Universal indicator.

Mr Fat tails,

I'm trading a weaker low/weaker high indicator. I'm using the VisualEMA on the higher time frame to take only trades that are in line with that higher trend. I only take weaker low signals when the higher time frame shows bullish and vice versa. My problem is that as a trend indicator the EMA lags considerably and has no indication of choppy price action on that higher timeframe. Do you have any suggestions for a better filter to test? P.S I was confused the 233 tic trade uses a 10 minute EMA with 11 period look back.

Jason

Reply With Quote
  #8 (permalink)
Ozquant
Brisbane Queensland Australia
 
Posts: 220 since Aug 2017
Thanks Given: 167
Thanks Received: 380

Not sure if this helps but this my prorealtime code that plots distance from Average as a percentage of price

on second thoughts not really applicable so have deleted the code

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


Futuresnoob View Post
Mr Fat tails,

I'm trading a weaker low/weaker high indicator. I'm using the VisualEMA on the higher time frame to take only trades that are in line with that higher trend. I only take weaker low signals when the higher time frame shows bullish and vice versa. My problem is that as a trend indicator the EMA lags considerably and has no indication of choppy price action on that higher timeframe. Do you have any suggestions for a better filter to test? P.S I was confused the 233 tic trade uses a 10 minute EMA with 11 period look back.

Jason


Basically all trend filters are lagging indicators. This is linked to the definition of a trend. When the trend is down, and you observe a bullish bar, this will not immediately change the trend shown by any indicator. Even if this is the beginning of a new uptrend, you would not know. You will only know with hindsight knowledge.

Therefore when a new trend becomes obvious part of it is already over. You may use a model that divides the trend into three sections:

- early trend (the trend is not yet confirmed and may revert back to the old trend)
- middle chunk of a trend (professionals enter the trend)
- mature trend (when the trend is nearly over)

Your task is to find the sweet spot at the beginning of the middle chunk of the trend to make a profit. At that stage it is important that volatility is sufficiently high to drive prices further in the expected direction.

You may use moving averages, moving average crosses, trailing stop indicators like the SuperTrend, a swing indicator etc. to determine the current trend. The main difficulty is to select the correct higher timeframe for the trend filter.

I personally prefer the VWAP as a trend indication. I look at the VWAPs (average prices) of the last days. When price is above those VWAPs I call it an uptrend. When it is below I call it a downtrend.

Reply With Quote




Last Updated on September 8, 2017


© 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