Price action TOS to NT7 - NinjaTrader Programming | futures.io
futures.io futures trading
 

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming


Price action TOS to NT7
Started:October 17th, 2016 (10:27 PM) by xtrader Views / Replies:110 / 1
Last Reply:October 17th, 2016 (11:17 PM) Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike
     

Reply
 
Thread Tools Search this Thread

Price action TOS to NT7

Old October 17th, 2016, 10:27 PM   #1 (permalink)
xtrader21
Chicago,IL USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: NinjaTraderBrokerage CQG continuum
Favorite Futures: ES,YM,NQ
 
xtrader's Avatar
 
Posts: 10 since Oct 2010
Thanks: 5 given, 0 received

Price action TOS to NT7

Need help converting to NT7. This is a TOS indicator- Marker Indicator.
The other indicator is the HHLL


"Marker Indicator"

declare lower;

def high_diff = Max(0, high - high[1]);
def low_diff = Max(0, low[1] - low);

def high_avg = Average(high_diff, 8);
def low_avg = Average(low_diff, 8);
plot TD_I = if high_avg == 0 && low_avg == 0 then 0 else high_avg / (high_avg + low_avg) * 100;
TD_I.SetDefaultColor(GetColor(1));

input over_sold = 30;
input over_bought = 70;

def price = close + low + high;
plot OverBought = over_bought;
plot ZeroLine = 50;
plot OverSold = over_sold;

TD_I.SetDefaultColor(GetColor(9));
OverBought.SetDefaultColor(GetColor(5));
ZeroLine.SetDefaultColor(GetColor(5));
OverSold.SetDefaultColor(GetColor(5));


"HHLL"

declare lower;

input length = 20;
input over_bought = 60;
input signal_line = 50;
input over_sold = 10;
input averageType = AverageType.EXPONENTIAL;

Assert(length > 1, "'length' must be greater than one: " + length);

def HH = if high > high[1] then (high - Lowest(high, length)) / (Highest(high, length) - Lowest(high, length)) else 0;
def LL = if low < low[1] then (Highest(low, length) - low) / (Highest(low, length) - Lowest(low, length)) else 0;

plot HHS = 100 * MovingAverage(averageType, HH, length);
plot LLS = 100 * MovingAverage(averageType, LL, length);
plot OverBought = over_bought;
plot SignalLine = signal_line;
plot OverSold = over_sold;

HHS.SetDefaultColor(GetColor(6));
LLS.SetDefaultColor(GetColor(5));
OverBought.SetDefaultColor(GetColor(7));
SignalLine.SetDefaultColor(GetColor(7));
OverSold.SetDefaultColor(GetColor(7));

Reply With Quote
     

Old October 17th, 2016, 11:17 PM   #2 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 45,561 since Jun 2009
Thanks: 28,888 given, 80,224 received

Hi,

You have two nearly identical threads now in the NinjaTrader Programming section.

Please do not create another new duplicate thread. I've been moving them out of the Wiki, because they are not Wiki articles.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
     
The following user says Thank You to Big Mike for this post:
     

Reply



futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Price action TOS to NT7

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

Trading Technologies: ADL hands-on

Dec 13

Normal webinar schedule resumes after the holidays

January

Ernie Chan: Risk Management

Elite only

Dedicated Trading Servers: Advantages/Disadvantages w/sam028

Elite only

An Afternoon with FIO member Massive I

Elite only

Leo Murphy: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Price action TOS to NT7 xtrader NinjaTrader Programming 0 October 16th, 2016 11:01 PM
Price action tobym333 Currency Futures 3 December 3rd, 2015 11:58 AM
Daytraders Call To Action!!! Fix WFO in NT7!!! kbaran Elite Automated NinjaTrader Trading 10 March 9th, 2013 08:30 AM
Price Action Adamus Traders and Trading Methods 6 February 20th, 2013 08:56 AM
Find Price Action Swing Pro and use PasMa2.xml with NT7 Barryc NinjaTrader 3 September 8th, 2012 04:26 PM


All times are GMT -4. The time now is 05:54 AM.

Copyright © 2016 by futures.io. 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.
 
no new posts
Page generated 2016-12-11 in 0.07 seconds with 19 queries on phoenix via your IP 54.163.173.253