NexusFi: Find Your Edge


Home Menu

 





Help with simple Bar indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one cory with 1 posts (0 thanks)
    2. looks_two Fat Tails with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 cheva282 with 1 posts (0 thanks)
    1. trending_up 1,667 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?
Day 97: Israel-Lebanon Ceasefire Struck Overnight -- WTI …
Traders Hideout
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
The Great Rotation -- Small Caps Crushing Tech as Sectio …
Traders Hideout
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Expiration Day: Wall Street Rallies on Peace Hopes While …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
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,114


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
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093

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


Attached Thumbnails
Click image for larger version

Name:	ES 03-15 (5 Min)  12_17_2014.jpg
Views:	229
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