Convert Pinescript into Thinkscript...
futures io futures trading



Convert Pinescript into Thinkscript...


ThinkOrSwim

Created May 24th 2018 by netarchitech
Updated May 24th 2018 by netarchitech
Top Posters
looks_one netarchitech with 1 posts (0 thanks)
Best Posters
Thread Statistics
trending_up 1,158 views
thumb_up 0 thanks given
forum 0 replies
attach_file 0 attachments




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

 
 
Thread Tools
 

Convert Pinescript into Thinkscript...

 
NY, NY
 
 
Posts: 66 since Dec 2011
Thanks: 27 given, 19 received

Convert Pinescript into Thinkscript...

Hi,

I'm interested in converting the following PineScript to Thinkscript:
 
Code
// Bill Williams Fractal Template
// Coded By: Matthew Spencer
// If you like this script or use it's code in one of yours, please donate.
// PayPal: ma.spencer@gmx.com Bitcoin: 1foxypuyuoNp5n1LNCCCCmjZ4RAXntQ8X

// Define our title and that this script will overlay the candles.
study("Williams Fractals",shorttitle="Fractals", overlay=true)

// Define "n" as the number of periods and keep a minimum value of 2 for error handling.
n = input(title="Periods", defval=2, minval=2, type=integer)

// Williams Fractals are a 5 point lagging indicator that will draw 2 candles behind.
// The purpose of the indicator is to plot points of trend reversals.
// Often these are paired with trailing stop indicators such as Parabolic SAR, Volatility Stop, and SuperTrend.

// Down pointing fractals occur over candles when:
//   High(n-2) < High(n)
//   High(n-1) < High(n)
//   High(n + 1) < High(n)
//   High(n + 2) < High(n)
dnFractal = (high[n-2] < high[n]) and (high[n-1] < high[n]) and (high[n+1] < high[n]) and (high[n+2] < high[n])

// Up pointing fractals occur under candles when:
//   Low(n-2) > Low(n)
//   Low(n-1) > Low(n)
//   Low(n + 1) > Low(n)
//   Low(n + 2) > Low(n)
upFractal = (low[n-2] > low[n]) and (low[n-1] > low[n]) and (low[n+1] > low[n]) and (low[n+2] > low[n])

// Plot the fractals as shapes on the chart.
plotshape(dnFractal, style=shape.arrowdown, location=location.abovebar, offset=-2, color=olive, transp=0) // Down Arrow above candles
plotshape(upFractal, style=shape.arrowup, location=location.belowbar, offset=-2, color=maroon, transp=0)  // Up Arrow below candles

Anyone? Thanks in advance...


Source: https://www.tradingview.com/script/Uyv9vQc2-Williams-Fractals-Tutorial-Template/

Pinescript Introduction: https://blog.tradingview.com/en/tradingview-s-pine-script-introduction-203/

Pinescript Tutorial: https://www.tradingview.com/wiki/Pine_Script_Tutorial

Pinescript Language Reference: https://www.tradingview.com/study-script-reference/


Last edited by netarchitech; May 24th, 2018 at 06:13 PM.

 



futures io Trading Community Platforms and Indicators ThinkOrSwim > Convert Pinescript into Thinkscript...
Thread Tools



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
 

Social Media Predictive Data for Traders w/Joe Gits @ SMA [and Lime Brokerage]

Apr 9
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert ThinkScript to ThinkScript API t0757tlr ThinkOrSwim 0 May 20th, 2018 11:09 AM
Convert Easy Language code into Thinkscript sboarder13 ThinkOrSwim 20 November 22nd, 2016 12:47 AM
Convert NinjaScript to ThinkScript Help devildriver6 ThinkOrSwim 2 October 16th, 2015 07:03 PM
Looking for someone who can convert Ninjascript to thinkscript.. Anyone out there? jake0alexander ThinkOrSwim 1 May 22nd, 2015 11:53 AM
[help] Still unable to convert this MQ4 indicator to Thinkscript Ardian1899 ThinkOrSwim 0 July 3rd, 2014 05:10 AM


All times are GMT -4. The time now is 02:17 AM. (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