Trail Stop

wepneb

New member
I am reaching out to the experienced posters here for a solution to a frustrating issue.

I trade a portion of my IRA off a 30-minute chart during regular market hours. I have found that a trailing stop of about $.05 to $.15 under the lowest low of the past two 30-minute candles is what has worked best for entry strategy.

I have fooled around with the built in ATR Trailing Stop, but it isn't the same thing. I really hope there is a way to have Think Script update this Trail Stop so I don't have to visit the screen every 30-minutes. As it is now I need to revisit the chart every 30 minutes and then move the TS upwards if the lowest low has 'reset' higher.

At the very least it'd be sweet if the chart could show that trail stop as a line, perhaps?? Maybe with an alert....

Thank you in advance,

Tom
 
Solution
I am reaching out to the experienced posters here for a solution to a frustrating issue.

I trade a portion of my IRA off a 30-minute chart during regular market hours. I have found that a trailing stop of about $.05 to $.15 under the lowest low of the past two 30-minute candles is what has worked best for entry strategy.

I have fooled around with the built in ATR Trailing Stop, but it isn't the same thing. I really hope there is a way to have Think Script update this Trail Stop so I don't have to visit the screen every 30-minutes. As it is now I need to revisit the chart every 30 minutes and then move the TS upwards if the lowest low has 'reset' higher.

At the very least it'd be sweet if the chart could show that trail stop as a...
I am reaching out to the experienced posters here for a solution to a frustrating issue.

I trade a portion of my IRA off a 30-minute chart during regular market hours. I have found that a trailing stop of about $.05 to $.15 under the lowest low of the past two 30-minute candles is what has worked best for entry strategy.

I have fooled around with the built in ATR Trailing Stop, but it isn't the same thing. I really hope there is a way to have Think Script update this Trail Stop so I don't have to visit the screen every 30-minutes. As it is now I need to revisit the chart every 30 minutes and then move the TS upwards if the lowest low has 'reset' higher.

At the very least it'd be sweet if the chart could show that trail stop as a line, perhaps?? Maybe with an alert....

Thank you in advance,

Tom

i made this from scratch to experiment with
you didn't list a buy condition so i made one up

Code:
#trail_line_xbars_dollars

#https://usethinkscript.com/threads/trail-stop.17925/
#Trail Stop
# trailing stop of about $.05 to $.15 under the lowest low of the past two 30-minute candles is what has worked best for entry strategy.

def na = double.nan;
def bn = barnumber();

def up = close > open;
def dwn = close < open;

input trail_bars = 2;
input trail_offset_dollars = 0.1;

def trail_line = lowest(low[1], trail_bars) - trail_offset_dollars;

# solid line
#plot z1 = trail_line;

def trail2 = if low[1] < trail_line[1] then 0
 else if (up and close > trail_line) then trail_line
 else trail2[1];

# line , just increasing parts
plot z2 = if trail2 == 0 then na else trail2;
#
 

Attachments

  • Capture.JPG
    Capture.JPG
    121.1 KB · Views: 129
Solution

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
212 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

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.

How do I get started?

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.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top