NexusFi: Find Your Edge


Home Menu

 





Help with this- Thanks


Discussion in NinjaTrader

Updated
    1. trending_up 594 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

Help with this- Thanks

  #1 (permalink)
 
Successlife's Avatar
 Successlife 
Any part of the world.
 
Experience: Master
Platform: Iq feed- Ensign
Trading: ES
Posts: 68 since Jul 2009
Thanks Given: 2
Thanks Received: 14

Any help with this (not work)

BarColor = Color.Yellow;




if (Close[0] > SMA(8))

BarColor = Color.Red;

if (Close[0] < SMA(8));

BarColor = Color.Green;

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
45 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #2 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


Successlife View Post
Any help with this (not work)

BarColor = Color.Yellow;




if (Close[0] > SMA(8))

BarColor = Color.Red;

if (Close[0] < SMA(8));

BarColor = Color.Green;

Close[0] = a number
SMA(8) refers to a moving average but you need to make it into a number
SMA(8)[0] = a number

Reply With Quote
Thanked by:




Last Updated on August 23, 2018


© 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