Colour Bar Script Assistance (Page 2) - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Colour Bar Script Assistance
Started:March 16th, 2011 (11:18 PM) by zt379 Views / Replies:1,773 / 10
Last Reply:March 17th, 2011 (09:20 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Colour Bar Script Assistance

Old March 17th, 2011, 09:20 PM   #11 (permalink)
East Rochester, NY
Futures Experience: Intermediate
Platform: NT
eDanny's Avatar
Posts: 327 since Jul 2009
Thanks: 17 given, 418 received

Your curly brackets would have worked, i just removed them as unnecessary. The reason yours wasn't working correctly is because of the missing 'else' after the first Cross test. In other words you tested, then tested again for the other condition regardless of the outcome of the first test, the CrossAbove. Using an 'else' will have the effect of your second test, CorssBelow never being hit unless the first fails. Then if the second fails the third action takes place.

Reply With Quote
The following 2 users say Thank You to eDanny for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Colour Bar Script Assistance

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
need vwap indicator that changes colour on up and downmoves anniebee321 NinjaTrader 24 January 13th, 2013 12:40 PM
ForceIndex - Colour up/down perryg NinjaTrader Programming 5 October 13th, 2012 10:46 AM
ATM Strategy Assistance TraderJoe0410 NinjaTrader 12 August 22nd, 2011 03:05 PM
Stoch Colour Above Below Threshold zt379 NinjaTrader Programming 1 February 12th, 2011 10:52 PM
Candlestick Border Colour yroyal NinjaTrader 1 December 8th, 2009 01:46 AM

All times are GMT -4. The time now is 06:05 PM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-21 in 0.07 seconds with 19 queries on phoenix via your IP