need help with a plot in EasyLanguage with knowledge of ThinkScript
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.
need help with a plot in EasyLanguage with knowledge of ThinkScript
Does anyone know how to plot a HORIZONTAL line similar to the HIGHESTALL plot found in ThinkScript, and make it into easyLanguage?
ex.
plot priceLine = highestAll(if isNan(close[-1]) and !isNAN(close) then close else double.nan);
What this effectively does is create 1 and only 1 price level line.
Thanks and cheers!
Last edited by kidvic; May 18th, 2015 at 06:20 PM.
Reason: Further clarification
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.
If this `highestAll()` function returns the highest price from all bars on the chart, I think you need to create a custom function for this that uses Symbol_High since that keyword is not limited by the indicator's MaxBarsBack value. You probably want to use a for loop to loop over all those `Symbol_High[]` values.
Drawing a horizontal trend line can be done with TL_New_s. The easiest way to do so is probably setting its time and date to the current bar and the previous bar, and then use the TL_SetExtLeft and TL_SetExtRight keywords to extend the trend line in both directions indefinitely. That saves you from having to update the trend line manually with each new price bar being formed. You would, however, need to check if the new price bars perhaps form a new high.
The following 2 users say Thank You to Jura for this post:
I tried it, it helps, but the result isn't giving me one line. instead it is plotting me the high of every candle instead of the high of 3 candles ago only.
I tried it, it helps, but the result isn't giving me one line. instead it is plotting me the high of every candle instead of the high of 3 candles ago only.
if you always want the trendline to mark the high three candles ago you'll have to update the trendline location every bar.
Look up TL_SetBegin and TL_SetEnd in the Tradestation help. This will show you how to change the start and end points for a trendline.