Join useThinkScript to post your question to a community of 21,000+ developers and traders.
See post#1Is any one has code for HalfTrend Indicator?
I stumbled upon this last night as I couldn't sleep after eating too much at Thanksgiving yesterday. After being away from my computer most of the morning I came back and implemented it and went 3 for 3 trading CL futures. Not sure I'm using this right however...basically I didn't go long or short until price had crossed the Half Trend Line and used a few other things for context. I did not like the Up/Down signal arrows as they appeared to get you into a trade lateHow have experiences been using this indicator? Just saw this indicator today and it looks very promising (especially if it does not repaint)
yes, you can add ATR to your charts. ATR is a built-in ToS indicator@BenTen How do we ad the ATR lines like the tradingview version
When putting indicators on your chart, you need to provide enough bars for the equations of the script to work.When I add this indicator to a chart of the Treasury Notes (/ZNH22), sometimes I get a value of 0 for it, and that makes for a messed-up chart. I can't tell what is causing this, because it happens on some time frames and not others, and it can disappear when adding in more data at times but not at other times. Example: if I create a 5-minute chart with 5 days of data, it's messed up. This error always happens right at the beginning of the plotting of the indicator.
Interesting, that works for me now as well, but 10 days of 30-minute and 30 days of 30-minute does not.
The 'amplitude' in this particular script is the lookback number and the length.Current amplitude is set to a whole number (1,2,3). I tried to change it to a decimal value .5, but there is no change. Wondering if the script can be altered to accept decimal to have it be more finite or whole number is best it can adjust to? thanks
Has anyone found a way to stop the red line that goes to the edge? I have tried everything that I could find here, and even deleted and@LLSxCLC Ahh, I see what happened there; your range of expansion is way too big. I would shorten it down. Someone else just had a similar problem but with a different indicator.
Navigate to Chart Settings > Time Axis tab > Expansion Area.
Can't add anything more to @BenTen's advice which you already quoted in your post.Has anyone found a way to stop the red line that goes to the edge? I have tried everything that I could find here, and even deleted and
reloaded it but cannot fix it.
Can't add anything more to @BenTen's advice which you already quoted in your post.
can you update this somewhere and post a link to this new version?@jaymac
i think i found an alternate solution. change the following line:
halftrend.AssignValueColor(if trend == 0 then color.green else color.red );
halftrend.setDefaultColor(color.white);
the line will default to white or default color until trend changes.
also, if you want a little more play in response , i separated the amplitude (period) for average with the following.
add:
input AmpAvg = 1;
change:
lowma = average(low, AmpAvg);
highma = average(high, AmpAvg);
i'll let @BenTen make that call to the main page.can you update this somewhere and post a link to this new version?
You don't need to go to One Note to find out thatany time mobius writes something, it's always a good idea to go to the ToS One Note file and see what a search on the study brings up. in the case of this here half trend, what you find is this:
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
Simple adjustable half back tool | Indicators | 21 | ||
Momentum and Half Back Indicator for ThinkorSwim | Indicators | 0 | ||
LNL Trend System for ThinkOrSwim | Indicators | 25 | ||
L3 Banker Fund Flow Trend Oscillator for ThinkOrSwim | Indicators | 33 | ||
Trend Meter For ThinkOrSwim | Indicators | 38 |
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.