NexusFi: Find Your Edge


Home Menu

 





I need help with code to add color to candles/bars ?? -- Ninjatrader 8


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one SJunior with 6 posts (0 thanks)
    2. looks_two zt379 with 3 posts (2 thanks)
    3. looks_3 EDGE with 2 posts (2 thanks)
    4. looks_4 DavidHP with 1 posts (0 thanks)
    1. trending_up 4,417 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 10 posts
    2. attach_file 1 attachments




 
Search this Thread
  #11 (permalink)
 zt379 
UK London
 
Platform: NT
Posts: 2,795 since Sep 2009
Thanks Given: 1,633
Thanks Received: 2,419


SJunior View Post
Thank you for your help.

So that I understand, why does [0] have to be used and when do I have to change it to [1] or [2] or [3]......?

See EDGE's post 5.

[0] refers to the current bar.

So for example Close[0] refers to the close of the current bar,

[1] refers to one bar back

So Close[1] refers to the close of the previous bar.

[2] is two bars back...etc..


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Would a node-based workflow for automated trading be useful?
Traders Hideout
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Thanks Mike. Godspeed.
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks




Last Updated on June 30, 2023


© 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