AnaSupertrend minor modification possible? - NinjaTrader Programming | futures io social day trading
futures io futures trading


AnaSupertrend minor modification possible?
Updated: Views / Replies:639 / 8
Created: by Sufyan Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

AnaSupertrend minor modification possible?

  #1 (permalink)
Elite Member
toronto
 
Futures Experience: Intermediate
Platform: metatrader
Favorite Futures: forex
 
Posts: 22 since Oct 2013
Thanks: 0 given, 29 received

AnaSupertrend minor modification possible?

Hi guys, I was wondering if someone could make a minor tweak to FatTails anasupertrend indicator.

Is it possible to add "percent offset" to the offset types?

Right now the only offset types offered are;

1) Standard Deviation
2) True Range
3) Simple Range

I would like the ability to offset the supertrend using a "Percent offset" like the one found in the built NT indicator "MA envelopes"

See the picture below

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,652 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


Feasible, but it would change the characteristics of the indicator. Currently, the distance of the stop value depends on volatility. It goes further away when volatility is high and approaches price, when volatility is low.

With a percentage selection, the stop will be trailed at a fixed distance - well mostly fixed - of the moving average.

The modification requires a few changes, mostly in OnStartUp(). Also a new property has to be added for the percentage value.

Reply With Quote
 
  #4 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,218 since Jun 2009
Thanks: 628 given, 6,315 received
Forum Reputation: Legendary


Sufyan View Post
...

Is it possible to add "percent offset" to the offset types?

...

you may want to try TMFTtrailingstoppercent
https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free-261.html#post123063

Reply With Quote
 
  #5 (permalink)
Elite Member
toronto
 
Futures Experience: Intermediate
Platform: metatrader
Favorite Futures: forex
 
Posts: 22 since Oct 2013
Thanks: 0 given, 29 received



Thanks cory, but that indicator does not allow me to define the length of the moving average (nor the type of the moving average). Its simply a trailing stop (im assuming using 1 period)


Fat Tails View Post
Feasible, but it would change the characteristics of the indicator. Currently, the distance of the stop value depends on volatility. It goes further away when volatility is high and approaches price, when volatility is low.

With a percentage selection, the stop will be trailed at a fixed distance - well mostly fixed - of the moving average.

The modification requires a few changes, mostly in OnStartUp(). Also a new property has to be added for the percentage value.

Hi Fattails, yes that is what I'm interested in. I've never had much luck using ATR, I prefer a fixed amount. So far i've been using my MA-envelopes settings, and then adjusting the anaSupertrend using std deviation and attempting to line it up to the MA envelope settings, but because it is volatility based, the two bands slip apart over time.

I like the ana-supertrend for its versatility with paintbars and multitude of moving averages, But I would really love the ability to use a fixed percentage stop rather than basing it on volatility.

Any help would be appreciated greatly.

Reply With Quote
 
  #6 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,652 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


Sufyan View Post
Thanks cory, but that indicator does not allow me to define the length of the moving average (nor the type of the moving average). Its simply a trailing stop (im assuming using 1 period)



Hi Fattails, yes that is what I'm interested in. I've never had much luck using ATR, I prefer a fixed amount. So far i've been using my MA-envelopes settings, and then adjusting the anaSupertrend using std deviation and attempting to line it up to the MA envelope settings, but because it is volatility based, the two bands slip apart over time.

I like the ana-supertrend for its versatility with paintbars and multitude of moving averages, But I would really love the ability to use a fixed percentage stop rather than basing it on volatility.

Any help would be appreciated greatly.


You would also get a fixed percentage stop, if you use a long period for the offset period. For example, if you select an offset period of 255, this is basically a fixed stop.

I would even say that the solution with a slow offset is much better that a percentage offset. Unlike the percentage offset

- it adjusts to the beta of the instrument (volatility is not based on the absolute prices)
- the same setting can be used with all instruments and timeframes

In my opinion you do not gain anything, when the percentage offset is added.

Reply With Quote
 
  #7 (permalink)
Elite Member
toronto
 
Futures Experience: Intermediate
Platform: metatrader
Favorite Futures: forex
 
Posts: 22 since Oct 2013
Thanks: 0 given, 29 received


Fat Tails View Post
You would also get a fixed percentage stop, if you use a long period for the offset period. For example, if you select an offset period of 255, this is basically a fixed stop.

I would even say that the solution with a slow offset is much better that a percentage offset. Unlike the percentage offset

- it adjusts to the beta of the instrument (volatility is not based on the absolute prices)
- the same setting can be used with all instruments and timeframes

In my opinion you do not gain anything, when the percentage offset is added.

Indeed with a long MA it smooths out. Problem my trading system uses a 34 SMA period (along with some other indicators). That is what I have back-tested, and the few tick differences in the Volatility vs Fixed stop are enough to alter my results. I havent gotten a chance to properly backtest futures since I dont have access to that indicator, but on my forex account I was getting about 53-55% over almost 25,000 trials in backtest data (using 1,000 sample chunks on different pairs on different time frames)

I've been doing some manual testing on futures and its really time consuming lol. So far over 300 sample or so, I'm getting +61% using my normal strategy (using fixed stop) and getting 43% when I use the volatility based stop. Im still new to futures and Ninjatrader so I'm trying to figure out all the biases/problems involved with backtesting on ninjatrader before I backtest properly. But I really need help if someone can assist me in adding a "percent offset" feature to anaSuperTrend

I just dont have any experience using volatility stop, and all my testing and prior studies have been using fixed stops.

Maybe if fattails is busy, someone else can help (btw are we allowed to edit your indicators fattails?)

Thanks again

Reply With Quote
 
  #8 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,652 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


Sufyan View Post
Indeed with a long MA it smooths out. Problem my trading system uses a 34 SMA period (along with some other indicators). That is what I have back-tested, and the few tick differences in the Volatility vs Fixed stop are enough to alter my results. I havent gotten a chance to properly backtest futures since I dont have access to that indicator, but on my forex account I was getting about 53-55% over almost 25,000 trials in backtest data (using 1,000 sample chunks on different pairs on different time frames)

I've been doing some manual testing on futures and its really time consuming lol. So far over 300 sample or so, I'm getting +61% using my normal strategy (using fixed stop) and getting 43% when I use the volatility based stop. Im still new to futures and Ninjatrader so I'm trying to figure out all the biases/problems involved with backtesting on ninjatrader before I backtest properly. But I really need help if someone can assist me in adding a "percent offset" feature to anaSuperTrend

I just dont have any experience using volatility stop, and all my testing and prior studies have been using fixed stops.

Maybe if fattails is busy, someone else can help (btw are we allowed to edit your indicators fattails?)

Thanks again

Any one is allowed to edit the indicators. They come open source. If you modify them, please do not use the prefix "ana" but change it to something else to avoid confusion.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #9 (permalink)
Elite Member
toronto
 
Futures Experience: Intermediate
Platform: metatrader
Favorite Futures: forex
 
Posts: 22 since Oct 2013
Thanks: 0 given, 29 received

Okay will do

Reply With Quote

Reply



futures io > > > > > AnaSupertrend minor modification possible?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring anaSuperTrend gdstuart NinjaTrader Programming 30 November 10th, 2017 01:56 AM
anaSuperTrend vs. anaSuperTrendM11 marker NinjaTrader Programming 73 December 8th, 2014 09:02 PM
I would be grateful for some minor posting help Coast Beginners and Introductions 10 October 6th, 2012 03:40 AM
anaSuperTrend - enter the pull shortski Elite Automated Trading 15 August 25th, 2012 12:25 PM
My First MTF Strategy .. need some minor error fixes Trader.Jon The Elite Circle 4 May 14th, 2010 09:58 PM


All times are GMT -4. The time now is 03:09 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-13 in 0.15 seconds with 20 queries on phoenix via your IP 54.163.209.109