NexusFi: Find Your Edge


Home Menu

 





200 / 50 Moving Average Combo


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 232 since Jun 2009
Thanks Given: 28
Thanks Received: 40

The code pasted below is for a moving average that I use in TradeStation.

Is is possible and easy to create this code in ninjascript for NT7?

inputs: Price( Close), FastLength( 50), SlowLength( 200);
inputs: UpColor( green), DownColor( Red) , width(1);

//Plot4( Average( Price, FastLength ), "50" ) ;
Plot2( Average( Price, SlowLength ), "200" ) ;

//if Plot4 > Plot4[1] then
// SetPlotColor( 4, cyan )
//else
//if Plot4 < Plot4[1] then
// SetPlotColor( 4, blue );

if Plot2 > Plot2[1] then
SetPlotColor( 2, UpColor )
else
if Plot2 < Plot2[1] then
SetPlotColor( 2, DownColor );

if Plot2 > Plot2[1] then
SetPlotWidth(2, width)
else
if Plot2 < Plot2[1] then
SetPlotWidth(2, width);


I saw that the double moving average in the indicator download section does not work in NT7 for some reason.

Any help is appreciated.

Thanks,
Todd


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Tradeify 3.0 Overhauls Futures Prop Firm Model -- One-Ti …
Funded Trading Evaluation Firms
CFTC Requests Tag 50 Trader Identity Data From CME and I …
Traders Hideout
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
TradingView Opens Volume Footprint Data to Pine Script - …
TradingView
Prediction Markets Lock Fed Pause at 99pct for April 29 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093


BM said DMA is not mean to work with NT7, better off start from scratch.


Reply With Quote




Last Updated on June 25, 2010


© 2026 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 - Downloads - Top
no new posts