NexusFi: Find Your Edge


Home Menu

 





Highest high less than upper bollinger band


Discussion in NinjaTrader

Updated
    1. trending_up 1,544 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Highest high less than upper bollinger band

  #1 (permalink)
 
toddma's Avatar
 toddma 
vancouver canada
 
Experience: Intermediate
Platform: multicharts, ninjatrader
Trading: forex
Posts: 53 since Jul 2012
Thanks Given: 14
Thanks Received: 6

This is very basic question - apologies -
But how do I use the "highest bar" function in the condition builder? I would like to say something like if the highest bar (high of that bar) over the last 10 days is outside of an upper bollinger band then do not enter this trade.

So the condition to be met should just be:
highest bar (high, ideally) < upper bollinger band

Is that correct? It's not working for me for some reason.
Thanks in advance.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #2 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844

You need to identify the bar index where the highest bar occured, then identify the high and bollinger value at that bar. I am pretty sure that you can't do this in the wizard, will probably have to manually edit.

use

High[HighestBar(High, int period)]

Bollinger(double numStdDev, int period).Upper[HighestBar(High, int period)]

for example

if(High[HighestBar(High, int period)] < Bollinger(double numStdDev, int period).Upper[HighestBar(High, int period)])
{do this super secret magical thing that is going to make me rich and everyone else will still be broke}

Reply With Quote
Thanked by:
  #3 (permalink)
 
toddma's Avatar
 toddma 
vancouver canada
 
Experience: Intermediate
Platform: multicharts, ninjatrader
Trading: forex
Posts: 53 since Jul 2012
Thanks Given: 14
Thanks Received: 6


Great thanks, I think it is working - but I was hoping for something that could look at a range of bars - for example "is there a bar that is outside of the bollinger within the last 20 periods?" rather than just "is the 10th bar back outside of the bollinger?"
I could definitely just repeat the formula, but I would imagine there is a better way... ? Any ideas?
Thanks again.

Started this thread Reply With Quote




Last Updated on July 17, 2012


© 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