NexusFi: Find Your Edge


Home Menu

 





Standard Deviation ( Indicator ) Help please!!


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one vpd1952 with 6 posts (3 thanks)
    2. looks_two bobwest with 5 posts (12 thanks)
    3. looks_3 trendisyourfriend with 4 posts (13 thanks)
    4. looks_4 mwf2220 with 3 posts (0 thanks)
      Best Posters
    1. looks_one trendisyourfriend with 3.3 thanks per post
    2. looks_two bobwest with 2.4 thanks per post
    3. looks_3 ZB23 with 1 thanks per post
    4. looks_4 vpd1952 with 0.5 thanks per post
    1. trending_up 4,861 views
    2. thumb_up 30 thanks given
    3. group 10 followers
    1. forum 19 posts
    2. attach_file 5 attachments




 
Search this Thread

Standard Deviation ( Indicator ) Help please!!

  #11 (permalink)
vpd1952
memphis
 
Posts: 77 since Mar 2020
Thanks Given: 211
Thanks Received: 23

trendisyourfriend,
I went in and did what you mentioned regarding the BollingerBands
This too is something I never thought to try - thank you for mentioning it

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Quant vue
Trading Reviews and Vendors
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #12 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


vpd1952 View Post
bobwest,
Your reply was super super helpful - Thank you so much for going in depth and explaining the way(s) to calculate Standard Deviation and the "why" behind it.
I learned a lot from reading it, and Thank you again for taking the time to go over it

You could also use another indicator to explore other possibilities too. For example using the Formula Indicator, you could do the following:


Settings:
Band above/below the EMA(50) at 2 ATR(13) distance from it
VALUE(EMA(50),0)+VALUE(ATR(13),0) *2
VALUE(EMA(50),0)-VALUE(ATR(13),0) *2

Band above/below the EMA(50) at 3 ATR(13) distance from it
VALUE(EMA(50),0)+VALUE(ATR(13),0) *3
VALUE(EMA(50),0)-VALUE(ATR(13),0) *3



The formula indicator can be found here:

Reply With Quote
Thanked by:
  #13 (permalink)
vpd1952
memphis
 
Posts: 77 since Mar 2020
Thanks Given: 211
Thanks Received: 23


trendisyourfriend,
Thank you so much for posting the Indicator with the settings/parameters - I'm going to apply the Indicator during today's Trading Session

Reply With Quote
Thanked by:
  #14 (permalink)
 
mwf2220's Avatar
 mwf2220 
Abu Dhabi United Arab Emirates
 
Experience: None
Platform: NinjaTrader
Broker: Philip Capital
Trading: futures
Posts: 173 since Sep 2020
Thanks Given: 1,555
Thanks Received: 392


trendisyourfriend View Post
You could also use another indicator to explore other possibilities too. For example using the Formula Indicator, you could do the following:


Settings:
Band above/below the EMA(50) at 2 ATR(13) distance from it
VALUE(EMA(50),0)+VALUE(ATR(13),0) *2
VALUE(EMA(50),0)-VALUE(ATR(13),0) *2

Band above/below the EMA(50) at 3 ATR(13) distance from it
VALUE(EMA(50),0)+VALUE(ATR(13),0) *3
VALUE(EMA(50),0)-VALUE(ATR(13),0) *3



The formula indicator can be found here:

Hi @trendisyourfriend, do you know if there is any documentation for this indicator anywhere? I've looked over the examples on the indicator download page, but the syntax is a bit confusing for me.

For example, something I'd like to do is divide volume by the bar duration (for non-time based bars), or divide the range of the current bar by the average range over the last 20, but my attempts haven't worked out.

Cheers.

Visit my NexusFi Trade Journal Reply With Quote
  #15 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


mwf2220 View Post
Hi @trendisyourfriend, do you know if there is any documentation for this indicator anywhere? I've looked over the examples on the indicator download page, but the syntax is a bit confusing for me.

For example, something I'd like to do is divide volume by the bar duration (for non-time based bars), or divide the range of the current bar by the average range over the last 20, but my attempts haven't worked out.

Cheers.

Post your "atempts", maybe i can help or not :-)

Reply With Quote
Thanked by:
  #16 (permalink)
 ZB23 
Atlanta Metro Area
 
Experience: Intermediate
Platform: Rithmic API
Broker: Ironbeam
Trading: Futures: CL spreads, IR outright.
Frequency: Never
Duration: Never
Posts: 145 since Feb 2017
Thanks Given: 60
Thanks Received: 198

When I hear the term "standard deviation," I immediately think market profile, volume profile, and TPO, which are pretty standard charting tools on any given platform.

Reply With Quote
Thanked by:
  #17 (permalink)
 
mwf2220's Avatar
 mwf2220 
Abu Dhabi United Arab Emirates
 
Experience: None
Platform: NinjaTrader
Broker: Philip Capital
Trading: futures
Posts: 173 since Sep 2020
Thanks Given: 1,555
Thanks Received: 392


trendisyourfriend View Post
Post your "atempts", maybe i can help or not :-)

Hi, thanks for responding. I figured out the second one - I was only using one "VALUE" and then trying to do the math:

VALUE(ATR(1), 0)/VALUE(ATR(20),0)*100 = percentage range of the current bar compared to the last 20.

I think I also figured out what was wrong with the first - the BarTimes indicator I was using to determine the bar duration isn't supported:


Quoting 
Supported Indicators:
ADL, ADX, ADXR, AroonOscillator, ATR, BOP, CCI, CMO, DEMA, DisparityIndex, DM, EMA, FOSC, HMA, KAMA, LinReg, LinRegIntercept, LinRegSlope, MACD, MAMA, MAX, MFI, MIN, Momentum, OBV, ParabolicSAR, PFE, Range, RIND, ROC, RSI, RSquared, StdDev, SMA, StochRSI, SUM, TEMA, TMA, TSF, TSI, UltimateOscillator, VMA, VOL, WilliamsR, WMA, ZLEMA

I tried to add it to the indicator but I get the following errors. This might be a post for another section - like coding help - but any thoughts would be welcome:




@BA 21 - I'm not necessarily looking for the standard deviation, that's just the thread where I first saw this indicator. I'm not actually looking for anything specific - I just want to try and gain different perspectives on some of what I see in the market, and this indicator seems like an interesting way to do it. I'm sure there are probably easier ways to go about it, but learning is often in the doing and not the having. Thanks, though.

Visit my NexusFi Trade Journal Reply With Quote
  #18 (permalink)
 TigerStripes   is a Vendor
 
Posts: 109 since Mar 2021
Thanks Given: 33
Thanks Received: 56


mwf2220 View Post
Hi, thanks for responding. I figured out the second one - I was only using one "VALUE" and then trying to do the math:

VALUE(ATR(1), 0)/VALUE(ATR(20),0)*100 = percentage range of the current bar compared to the last 20.

I think I also figured out what was wrong with the first - the BarTimes indicator I was using to determine the bar duration isn't supported:



I tried to add it to the indicator but I get the following errors. This might be a post for another section - like coding help - but any thoughts would be welcome:




@BA 21 - I'm not necessarily looking for the standard deviation, that's just the thread where I first saw this indicator. I'm not actually looking for anything specific - I just want to try and gain different perspectives on some of what I see in the market, and this indicator seems like an interesting way to do it. I'm sure there are probably easier ways to go about it, but learning is often in the doing and not the having. Thanks, though.

Can you upload a copy of the indie I will take a look and try to correct these lines.

Reply With Quote
  #19 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,513
Thanks Received: 26,292


mwf2220 View Post
Sure, thanks. The code for what I'm trying to add is on lines 287-290 (BarTimes indicator - attached). The original formula indicator is here:



The BarTimes indicator has a drop down menu for seconds, milliseconds, etc. so that might be the problem, but my knowledge of ninjascript (or coding in general) is extremely limited.

I'd appreciate anything you can do.



 
Code
#region Using declarations
...
#endregion

Sorry @mwf2220, I know you meant no harm, but I have had to delete your post, because it contained a listing in a code window of the code for an indicator, "Formula Indicator", that is in the Downloads section. The Downloads section is exclusively for Elite members and should not be shared with anyone who is not Elite or made available in non-Elite areas of the forum.

I hope you can find someone else who can give you a hand with this, (and any exchange of code will need to be in an Elite thread, obviously) but we do need to keep Elite materials limited to Elite members.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:
  #20 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,513
Thanks Received: 26,292



TigerStripes View Post
Can you upload a copy of it here, I do not have premier membership and all archived files required a premium membership to download.

Sorry @TigerStripes, I have had to delete your post, which contains a code window you quoted from a prior post by @mwf2220, where he inadvertently shared the code for an Elite indicator, "Formula Indicator."

If someone makes Elite-only code available in non-Elite areas, we will just have to delete it, and caution the Elite member not to repeat it, which I have done already for his post.

I am not doing this because we are control freaks or would-be dictators. The Elite membership is something that is not free (one lifetime payment, I think about a hundred bucks now, but still not free), and Elite members have paid to get something in exchange for it. One of those things is access to the library of contributed indicator and strategy code. Sharing that code outside of the Elite membership reduces the value to the other Elite members. Being able to offer exclusive perks for Elite membership is also, obviously, of value to the business, and the forum has to run as a business.

Anyone is welcome to not be an Elite member, if they accept the restrictions that this involves (which includes not being able to read Elite threads as well as not having access to the Downloads.) It's a simple choice, but we do insist on it.

Sorry about all this. There's nothing really wrong with your question, and it's a natural one. But the answer is that we don't allow sharing of Elite material outside of the Elite members.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:




Last Updated on February 13, 2023


© 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