Pinescript to Thinkscript code - ThinkOrSwim | futures io | futures trading
futures io futures trading


Pinescript to Thinkscript code
Updated: Views / Replies:175 / 2
Created: by ElyG Attachments:1

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 100,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
 

Pinescript to Thinkscript code

  #1 (permalink)
Weston
 
 
Posts: 2 since Feb 2020
Thanks: 1 given, 1 received

Pinescript to Thinkscript code

I am new in this forum and practicing on demo in Thinkorswim. I found this Pinescript on Tradingview, so I would like to have it on TOS. Here is the Pinescript to be coded in Thinkscript.
Any help I really appreciate.

study(title="Koncorde")
calc_pvi() =>
sval=volume
pvi=(volume > volume[1]) ? nz(pvi[1]) + ((close - close[1])/close[1]) * (na(pvi[1]) ? pvi[1] : sval) : nz(pvi[1])
pvi

calc_nvi() =>
sval=volume
nvi=(volume < volume[1]) ? nz(nvi[1]) + ((close - close[1])/close[1]) * (na(nvi[1]) ? nvi[1] : sval) : nz(nvi[1])
nvi

calc_mfi(length) =>
src=hlc3
upper = sum(volume * (change(src) <= 0 ? 0 : src), length)
lower = sum(volume * (change(src) >= 0 ? 0 : src), length)
rsi(upper, lower)

tprice=ohlc4
lengthEMA = input(255, minval=1)
m=input(15)
pvi = calc_pvi()
pvim = ema(pvi, m)
pvimax = highest(pvim, 90)
pvimin = lowest(pvim, 90)
oscp = (pvi - pvim) * 100/ (pvimax - pvimin)
nvi =calc_nvi()
nvim = ema(nvi, m)
nvimax = highest(nvim, 90)
nvimin = lowest(nvim, 90)
azul = (nvi - nvim) * 100/ (nvimax - nvimin)
xmf = calc_mfi(14)
mult=input(2.0)
basis = sma(tprice, 25)
dev = mult * stdev(tprice, 25)
upper = basis + dev
lower = basis - dev
OB1 = (upper + lower) / 2.0
OB2 = upper - lower
BollOsc = ((tprice - OB1) / OB2 ) * 100
xrsi = rsi(tprice, 14)
calc_stoch(src, length,smoothFastD ) =>
ll = lowest(low, length)
hh = highest(high, length)
k = 100 * (src - ll) / (hh - ll)
sma(k, smoothFastD)

stoc = calc_stoch(tprice, 21, 3)
marron = (xrsi + xmf + BollOsc + (stoc / 3))/2
verde = marron + oscp
media = ema(marron,m)
bandacero= 0

vl=plot(verde, color=#66FF66, style=area, title="verde")// COLOURED(102,255,102) as “verde” , GREEN
ml=plot(marron, color= #FFCC99, style=area, title="marron", transp=0) // COLOURED(255,204,153) as"marron" , BEIGE
al=plot(azul, color=#00FFFF, style=area, title="azul") // COLOURED(0,255,255) as “azul” ,
plot(marron, color= #330000, style=line, linewidth=2, title="lmarron") // COLOURED(51,0,0) as “lmarron” ,
plot(verde, color=#006600, style=line, linewidth=2, title="lineav") // COLOURED(0,102,0) as “lineav” ,
plot(azul, color=#000066, style=line, title="lazul", title="lazul") // COLOURED(0,0,102) as “lazul” ,
plot(media, color=red, title="media", style=line, linewidth=2) // COLOURED(255,0,0) as “media” ,
plot(bandacero, color=black, title="cero") // COLOURED(0,0,0) as "cero"

Reply With Quote
 
  #2 (permalink)
Super Moderator
Sarasota FL
 
Trading Experience: Intermediate
Platform: NinjaTrader, Sierra Chart
Favorite Futures: ES, YM
 
bobwest's Avatar
 
Posts: 5,360 since Jan 2013
Thanks: 41,569 given, 18,064 received


ElyG View Post
I am new in this forum and practicing on demo in Thinkorswim. I found this Pinescript on Tradingview, so I would like to have it on TOS. Here is the Pinescript to be coded in Thinkscript.
Any help I really appreciate.

Hi @ElyG,

To make your request more likely to get some interest, I suggest telling the prospective programmer what the indicator does, and perhaps include a screen shot and some explanation of how you find it useful to your trading.

As it is, you are asking someone to step through the code and try to figure out what in the world it does, and why it would be interesting to have it in TOS. Probably very few (as in, none ) are going to do this.

But if you give someone a reason to think it might be of use, then you have a better chance.

This is not a criticism, just advice from someone who has made a living programming for a long time. People who don't code for a living seem to think that someone who, for instance, knows pinescript would just read what you posted and get it right away. Actually, it would take an effort, and you will be better off providing some additional info to motivate someone to make that effort, and then to also write and test a TOS version for you.

I hope you find someone who is willing to give you a hand with this.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to bobwest for this post:
 
  #3 (permalink)
Weston
 
 
Posts: 2 since Feb 2020
Thanks: 1 given, 1 received


Thank you for your advise.

The study name in tradingview is "Blai5 Koncorde"

You will find the study attached

Any help will be appreciated!




bobwest View Post
Hi @ElyG,

To make your request more likely to get some interest, I suggest telling the prospective programmer what the indicator does, and perhaps include a screen shot and some explanation of how you find it useful to your trading.

As it is, you are asking someone to step through the code and try to figure out what in the world it does, and why it would be interesting to have it in TOS. Probably very few (as in, none ) are going to do this.

But if you give someone a reason to think it might be of use, then you have a better chance.

This is not a criticism, just advice from someone who has made a living programming for a long time. People who don't code for a living seem to think that someone who, for instance, knows pinescript would just read what you posted and get it right away. Actually, it would take an effort, and you will be better off providing some additional info to motivate someone to make that effort, and then to also write and test a TOS version for you.

I hope you find someone who is willing to give you a hand with this.

Bob.


Attached Thumbnails
Pinescript  to  Thinkscript  code-blai5-koncorde.jpg  
Reply With Quote
The following user says Thank You to ElyG for this post:

Reply



futures io > > > > Pinescript to Thinkscript code

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Indicator development - Transferring from Tradingview(pinescript) to NT7/8 3d2ttrading The Elite Circle 1 September 18th, 2018 01:58 PM
Custom Indicator development - Transferring from Tradingview(pinescript) to NT7/8 3d2ttrading NinjaTrader 1 September 18th, 2018 12:44 PM
Convert Pinescript into Thinkscript... netarchitech ThinkOrSwim 0 May 24th, 2018 06:09 PM
Convert ThinkScript to ThinkScript API t0757tlr ThinkOrSwim Programming 0 May 20th, 2018 12:09 PM
Converting EasyLanguage Code to Thinkscript Code (TOS) joeking ThinkOrSwim 2 November 21st, 2017 09:04 AM


All times are GMT -4. The time now is 04:36 PM. (this page content is cached, log in for real-time version)

Copyright © 2020 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