NexusFi: Find Your Edge


Home Menu

 





TOS to Ninja Trader Study Conversion


Discussion in NinjaTrader

Updated
    1. trending_up 1,464 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?
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
3 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,175 since Jan 2013
Thanks Given: 58,013
Thanks Received: 26,424

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