NexusFi: Find Your Edge


Home Menu

 





Help with simple Bar indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two cheva282 with 1 posts (0 thanks)
    3. looks_3 cory with 1 posts (0 thanks)
    4. looks_4 Fat Tails with 1 posts (0 thanks)
    1. trending_up 1,748 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 3 attachments




 
Search this Thread
  #1 (permalink)
cheva282
Montevideo Uruguay
 
Posts: 5 since Nov 2013
Thanks Given: 0
Thanks Received: 0

Hi I need some help with coding an indicator (I know nothing about programming)

but what I need is really simple:


I need the indicator that paint a bar on each candlestick bar that has a body (difference between Open and Close) larger than the bodies of each of the prior three bars (each bar individually compared to the big body bar).


could somebody help me with this?

thanks


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran and Israel Stand Down: What $9M in Peace Contracts …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


I have coded something like that. For some reason it is not yet available in the downloads. Maybe I have simply forgotten to post it.

It detects the following bar types:

- WB7 = wide body bar with a body that is the largest of the last 7 bars (larger than the preceding 6 bars)
- ENG7 = wide body bar WB7 that engulfs the prior bar
- ENG4 = wide body bar WB4 that engulfs the prior bar
- NB7 = narrow body bar with a body that is the smallest of the last 7 bar (smaller than the preceding 6 bars)
- IB7 = narrow body bar NB7 which is an inside body bar
- IB4 = narrow body bar NB4 which is an inside body bar
- DI4 = narrow body bar NB4 which is a double inside body bar (two consecutive inside body bars)

The parameters of the indicator (4,7,4,7) can be changed.

What you look for is a simple WB4 bar.

Attached is a sample chart.



Reply With Quote
  #4 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098

..................


Attached Thumbnails
Click image for larger version

Name:	ES 03-15 (5 Min)  12_17_2014.jpg
Views:	243
Size:	62.2 KB
ID:	169413  
Attached Files
Elite Membership required to download: Bar3.cs
Reply With Quote




Last Updated on December 17, 2014


© 2026 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 - Downloads - Top
no new posts