Set Stop Loss based on Trigger Price

I have a buy / sell condition based on MACD, RSI and ADX. They all need to be in alignment and meet their individual conditions for the buy/sell to trigger. That trigger can happen at anytime during a candle formation - at open, at close or somewhere in between. I want to set and show a stop loss based on trigger price plus/minus 1 ATR. Is it possible to do so?

I have seen it being done in TV, but am not able to figure it out in TOS.
 
Solution
this is mostly basic usage of thinkorswim that can be done without any special coding. that can all be done with the thinkorswim wizard and setting up conditional orders. youtube videos on how to use the condition wizard and how to use the conditional orders.
this is mostly basic usage of thinkorswim that can be done without any special coding. that can all be done with the thinkorswim wizard and setting up conditional orders. youtube videos on how to use the condition wizard and how to use the conditional orders.
 
Solution

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

FYI,
on the ToS platform refers to the most recent tick.
So yes, if your buy/sell condition references
the trigger will happen at anytime during a candle formation - at open, at close, or somewhere in between.

However, if you are drawing signals on your chart AND the signal no longer exists when the bar closes;
Nothing will be drawn on your chart. There is no way in ToS to track inter-candle activity.

As @XeoNoX stated above, you can put your trigger into a conditional order.
Here is how to set up and test your conditional order:
https://usethinkscript.com/threads/answers-to-commonly-asked-questions.6006/#post-80482
ToS does not provide automated buying and selling. A Conditional Order is set up manually and only executes once.


As @XeoNoX stated above, no special coding is required for your ATR stop loss; it is standard in ToS.
Google / YouTube will provide you a plethora of examples.

@EverGratefulMoneyMagnet
 
Last edited by a moderator:

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
443 Online
Create Post

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