Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Coloring Candlestick Bars By EXMA Crossover

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Coloring Candlestick Bars By EXMA Crossover

    Hello,

    I need some assistance on how I can color my price bars in NT based on a EXMA crossover. What I'm trying to do is I think pretty simple, I want to color my candlestick bars by the by the crossing of a 15 minute EXMA with a 20 minute EXMA. I want this to occur on 3 minute candles, with the crossings computed by the 1 minute data.

    If the crossing is up, I'd like to color the bar blue, and if the crossing is down, I'd like to color the bar red. If anyone could give me an help on how to do this I would be grateful. I have zero NT programming knowledge or experience.

    Thanks.

    #2
    Hello Sharpe08,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    Using CrossAbove() and CrossBelow() along with BarColor you can create this indicator:
    You will also need to familiarize yourself with multiple time frames and instruments in your script: http://www.ninjatrader.com/support/h...nstruments.htm

    We have a fully documented help guide which will help you get started with Ninja Script. You will find language references to all of the methods and functions you will be using. You will also see a tutorial section which will help you create your first indicator and get you started with some of these concepts.
    A link to our Help Guide can be found below: http://www.ninjatrader.com/support/h...stribution.htm

    I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript: http://www.ninjatrader.com/support/h..._resources.htm

    You will find Reference Samples online as well as some Tips and Tricks for both indicators and strategies:
    Click here to see our NinjaScript Reference Samples: http://www.ninjatrader.com/support/f...splay.php?f=30
    Click here to see our NinjaScript Tips: http://www.ninjatrader.com/support/f...ead.php?t=3229

    These samples can be downloaded, installed and modified from NinjaTrader and hopefully serve as a good base for your custom works.

    There is a also a growing library of user submitted custom indicators (100+) that can be downloaded from our support form. Please look in the NinjaScript File Sharing section of our support forum as you may find what you are looking for there: http://www.ninjatrader.com/support/f...splay.php?f=37

    If you have limited time or programming capabilities, you can discuss your requirements with any of our certified NinjaScript consultants.
    Click here for a list of certified NinjaScript Consultants: http://www.ninjatrader.com/Ecosystem/NonBroker.php#81

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Aviram Y, 08-09-2023, 09:04 AM
    10 responses
    298 views
    0 likes
    Last Post MrHump
    by MrHump
     
    Started by jpapa, Today, 07:22 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by kevinenergy, 02-17-2023, 12:42 PM
    116 responses
    2,758 views
    1 like
    Last Post kevinenergy  
    Started by franatas, 12-04-2023, 03:43 AM
    7 responses
    106 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Jltarrau, Today, 05:57 AM
    3 responses
    9 views
    0 likes
    Last Post Jltarrau  
    Working...
    X