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 1,060 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 10 posts
    2. attach_file 1 attachments




 
Search this Thread

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

  #11 (permalink)
 zt379 
UK London
Legendary Market Wizard
 
Platform: NT
Posts: 2,083 since Sep 2009
Thanks Given: 1,590
Thanks Received: 2,002


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?
ZombieSqueeze
Platforms and Indicators
Quantum physics & Trading dynamics
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
 




Last Updated on June 30, 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