NexusFi: Find Your Edge


Home Menu

 





Price action TOS to NT7


Discussion in NinjaTrader

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




 
Search this Thread

Price action TOS to NT7

  #1 (permalink)
 
xtrader's Avatar
 xtrader 
Chicago,IL USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTraderBrokerage CQG continuum
Trading: ES,YM,NQ
Posts: 23 since Oct 2010
Thanks Given: 15
Thanks Received: 5

TOS latest version 10/15/16 has a price action indicator, "Marker Indicator" that fails to show 30 and 70 as OB and OS as described in the studies section of the TOS platform manual. I have recoded this and call it MarkerIndicator 30/70. This is my first indicator post.
I would like this for my ninja trader 7 if some good soul could code it? Thanks.


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));

Follow me on Twitter Started this thread Reply With Quote




Last Updated on October 16, 2016


© 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