NexusFi: Find Your Edge


Home Menu

 





TOS to Ninja Trader Study Conversion


Discussion in NinjaTrader

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




Closed Thread
 
Search this Thread
  #1 (permalink)
 henryp 
charlotte North Carolina
 
Experience: Beginner
Platform: thinsk or swim
Trading: stocks, options, futures
Posts: 3 since Sep 2020
Thanks Given: 0
Thanks Received: 0

Can someone please help me create this slope study for ninja trader. This is from TOS. Thank you much.

Also new to ninja trader. Can this be automated on Ninja Trader?

input price = close;
input length = 10;

def sdl1 = 2*wma(price, length/2) - wma(price, length);
plot SDL = sdl1;

SDL.DefineColor("Up", Color.Blue);
SDL.DefineColor("Down", Color.Red);

SDL.AssignValueColor(if SDL[0] > SDL[1] then SDL.color("Up") else SDL.color("Down"));


Started this thread

Can you help answer these questions
from other members on NexusFi?
Expiration Day: Wall Street Rallies on Peace Hopes While …
Prediction Markets & Event Contracts
CFTC Chair Selig Puts Timeline on US Crypto Perpetual Fu …
Cryptocurrency
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
MegaETH Proves the Crowd Right: Prediction Markets Calle …
Prediction Markets & Event Contracts
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
 
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
  #2 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,174 since Jan 2013
Thanks Given: 57,989
Thanks Received: 26,406

Hi @henryp,

You also posted your question in the free NinjaTrader indicator thread, which is the location where you are most likely to get a response, and I hope you receive the help you need there.

Where possible, it's best to post in existing threads, so that similar topics can stay together.

In any case, please do not create duplicate posts.

This thread is closed as a duplicate.

Bob.


When one door closes, another opens.
-- Cervantes, Don Quixote

Closed Thread



Last Updated on November 3, 2020


© 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