NexusFi: Find Your Edge


Home Menu

 





Help with this- Thanks


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
Successlife's Avatar
 Successlife 
Any part of the world.
 
Experience: Master
Platform: Iq feed- Ensign
Trading: ES
Posts: 69 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?
MC PL editor upgrade
MultiCharts
Historical data for Kospi and Nikkei Index
NinjaTrader
Volumetric charts
The Elite Circle
Elite Trader Funding, Avoid?
Funded Trading Evaluation Firms
is there a better Trade Performance tool for NinjaTrader?
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
78 thanks
What is Markets Chat (markets.chat) real-time trading ro …
54 thanks
HumbleTraders next chapter
38 thanks
Tao te Trade: way of the WLD
27 thanks
1 Minute Man
22 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 - Sitemap - Downloads - Top
no new posts