Can anyone convert a code from TOS - ThinkOrSwim | futures io social day trading
futures io futures trading


Can anyone convert a code from TOS
Updated: Views / Replies:3,150 / 8
Created: by j8fire Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Can anyone convert a code from TOS

  #1 (permalink)
Just starting out...
texas
 
Futures Experience: Intermediate
Platform: ninja
 
Posts: 3 since Dec 2009
Thanks: 1 given, 0 received

Can anyone convert a code from TOS

Hi I have a script on TOS that i would like to convert to ninjatrader any help would be great. thanks



#
# (for use with Trading Strategy "DX X-ing 30"
#
declare lower;
input length = 14;
def hiDiff = high - high[1];
def loDiff = low[1] - low;
def plusDM = if hiDiff > loDiff and hiDiff > 0 then hiDiff else 0;
def minusDM = if loDiff > hiDiff and loDiff > 0 then loDiff else 0;
def ATR = WildersAverage(TrueRange(high, close, low), length);
def "DI+" = 100 * WildersAverage(plusDM, length) / ATR;
def "DI-" = 100 * WildersAverage(minusDM, length) / ATR;
def DX = if ("DI+" + "DI-" > 0) then 100 * AbsValue("DI+" - "DI-") / ("DI+" + "DI-") else 0;
plot "DX" = DX;
plot "30-Line" = 30;
"DX".SetDefaultColor(COLOR.White);
"30-Line".SetDefaultColor(COLOR.Red);

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


Just try the DMI indicator of NinjaTrader. You may want to add one line to the code to display the threshold line.

 
Code
                            
Add(new Line(Color.Red30"30-Line")); 


Reply With Quote
 
  #4 (permalink)
Just starting out...
texas
 
Futures Experience: Intermediate
Platform: ninja
 
Posts: 3 since Dec 2009
Thanks: 1 given, 0 received

what i want is a positive value always between 0 and 100 and gives me a arrow on the candle when it crosses 30 it is close but not quite there

Reply With Quote
 
  #5 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary

Your indicator looks like a simple ADX. If you add a line at 30 and draw a diamond, when ADX exceeds 30 you would be done.


j8fire View Post
what i want is a positive value always between 0 and 100 and gives me a arrow on the candle when it crosses 30 it is close but not quite there


Attached Files
Register to download File Type: zip ADX2.zip (4.2 KB, 21 views)
Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #6 (permalink)
Just starting out...
texas
 
Futures Experience: Intermediate
Platform: ninja
 
Posts: 3 since Dec 2009
Thanks: 1 given, 0 received

THANKS,

I dont have any coding skill I did look at the code thinking it would be a easy just to add the equation but got confuse with all the info i saw did not want to jack it up.

so many thanks.


Reply With Quote
 
  #7 (permalink)
Market Wizard Apprectice
New York City, USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES, CL, 6E
 
futurestrader1's Avatar
 
Posts: 148 since Jul 2010
Thanks: 81 given, 40 received

TOS powerbands code to NT and MT4

Hi guys, I have a nice triple keltner channel that is for TOS i'd like to get it on Ninjatrader and also MT4
can anyone help?

 
Code
declare weak_volume_dependency;
input displace = 0;
input displace2 = 0;
input displace3 = 0;
input factor = 1.75;
input factor2 = 2.5;
input factor3 = 4;
input length = 45;
input price = close;
def shift = factor * AvgTrueRange(high, close, low, length);
def shift2 = factor2 * AvgTrueRange(high, close, low, length);
def shift3 = factor3 * AvgTrueRange(high, close, low, length);
def average = ExpAverage(price, length);
plot Avg = average[-displace];
Avg.SetDefaultColor(GetColor(7));
plot Upper_Band = average[-displace] + shift[-displace];
Upper_Band.SetDefaultColor(GetColor(7));
plot Lower_Band = average[-displace] - shift[-displace];
Lower_Band.SetDefaultColor(GetColor(7));
plot Upper_Band2 = average[-displace] + shift2[-displace];
Upper_Band2.SetDefaultColor(GetColor(7));
plot Lower_Band2 = average[-displace] - shift2[-displace];
Lower_Band2.SetDefaultColor(GetColor(7));
plot Upper_Band3 = average[-displace] + shift3[-displace];
Upper_Band3.SetDefaultColor(GetColor(7));
plot Lower_Band3 = average[-displace] - shift3[-displace];
Lower_Band3.SetDefaultColor(GetColor(7));

Reply With Quote
 
  #8 (permalink)
Elite Member
Manchester, England
 
Futures Experience: Beginner
Platform: NinjaTrader, Multicharts
Broker/Data: Mirus/Zenfire
Favorite Futures: NQ,ES
 
Posts: 7 since Apr 2010
Thanks: 44 given, 1 received

Convert code from TOS into Tradestation

Hi all,

is there anyone who can help me to convert this TOS code into Tradestation, please ?
Basically it is code to show NYSE and Nasdaq breadth into charts.

See picture.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Here is TOS code:

 
Code
#--------------------------------------
#NYSE AND NASDAQ BREADTH BUBBLE SCRIPT
#--------------------------------------

input length = 2;


#NYSE Breath ratio
def NYSEratio =  if (close("$UVOL") >= close("$DVOL")) then (close("$UVOL") / close("$DVOL")) else -( close("$DVOL") / close("$UVOL")) ;
plot NYratio = round(NYSEratio, length);


NYratio.DefineColor("NYSEup", color.UpTICK);
NYratio.DefineColor("NYSEdown", color.DownTICK);
NYratio.AssignValueColor(if NYSEratio >= 0 then NYratio.color("NYSEup") else NYratio.color("NYSEdown"));

AddChartLabel(yes, concat(NYratio, " :1 NYSE"), (if NYSEratio >= 0 then NYratio.color("NYSEup") else NYratio.color("NYSEdown")));



#Nasdaq Breath ratio
def NASDratio =  if (close("$UVOL/Q") >= close("$DVOL/Q")) then (close("$UVOL/Q") / close("$DVOL/Q")) else -( close("$DVOL/Q") / close("$UVOL/Q")) ;
plot Qratio = round(NASDratio, length);

Qratio.DefineColor("NASup", color.UpTICK);
Qratio.DefineColor("NASdown", color.DownTICK);
Qratio.AssignValueColor(if NASDratio >= 0 then Qratio.color("NASup") else Qratio.color("NASdown"));

AddChartLabel(yes, concat(Qratio, " :1 NASD"), (if NASDratio >= 0 then Qratio.color("NASup") else Qratio.color("NASdown")));


#ZeroLine

plot zeroline = 0;
zeroline.assignValueColor(if NYSEratio > NYSEratio[1] then color.GREEN else color.RED);
zeroline.setLineWeight(1);
zeroline.hideTitle();
zeroline.hideBubble();
Thank you.
Peter

Reply With Quote
 
  #9 (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: 46,240 since Jun 2009
Thanks: 29,357 given, 83,237 received

@PedroMAN, you might want to also post here:

https://futures.io/elite-circle/11130-want-your-easylanguage-indicator-created-free.html

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 > > > > Can anyone convert a code from TOS

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOS - Ninjascript dsraider ThinkOrSwim Programming 25 May 9th, 2016 04:46 PM
PERRY METHOD FOR TOS tonylipton ThinkOrSwim Programming 14 April 7th, 2011 07:45 AM
Convert this NT code to EL, Please lizmerrill EasyLanguage Programming 8 January 20th, 2011 02:33 PM
Using Alerts in ToS Jasonh0099 ThinkOrSwim Programming 0 December 11th, 2010 01:44 AM
Can this be TOS indicator be converted? suchen The Elite Circle 0 October 23rd, 2009 12:04 AM


All times are GMT -4. The time now is 12:32 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@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 2017-12-18 in 0.13 seconds with 20 queries on phoenix via your IP 54.196.201.241