NexusFi: Find Your Edge


Home Menu

 





Help with this- Thanks


Discussion in NinjaTrader

Updated
    1. trending_up 597 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?
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
Strategy stop orders partially filled
EasyLanguage Programming
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
14 thanks
GFIs1 1 DAX trade per day journal
12 thanks
EG Indicators
11 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