NexusFi: Find Your Edge


Home Menu

 





Colour Bar Script Assistance


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one zt379 with 4 posts (0 thanks)
    2. looks_two eDanny with 3 posts (4 thanks)
    3. looks_3 bukkan with 1 posts (2 thanks)
    4. looks_4 redratsal with 1 posts (1 thanks)
      Best Posters
    1. looks_one bukkan with 2 thanks per post
    2. looks_two eDanny with 1.3 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 redratsal with 1 thanks per post
    1. trending_up 4,396 views
    2. thumb_up 8 thanks given
    3. group 3 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread
  #11 (permalink)
 
eDanny's Avatar
 eDanny 
East Rochester, NY
 
Experience: Intermediate
Platform: NT
Posts: 329 since Jul 2009
Thanks Given: 18
Thanks Received: 425

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
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Historical data for Kospi and Nikkei Index
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC Advanced Simulated Trading.
MultiCharts
Has anyone taken The Confident Trader course from aheadc …
Trading Reviews and Vendors
Help re translation of ninjascript to EL
NinjaTrader
 




Last Updated on March 17, 2011


© 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