Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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!
Can you help answer these questions from other members on NexusFi?
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.
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.