• Get $40 off VIP by signing up for a free account! Sign Up

Need Help coding 3 white soldiers or 3 red crows strategy

Friends,

I am a beginner in TOS and looking for help to get the below requirements in one indicator for backtesting. Hope it will be helpful for others.

Please let me know if there is already an indicator available. Also any guidance on how to do back-test in TOS like trading view instead of going through each candle?

1. EMA/SMA option to choose with 10, 20,50 and 100 days
2. Show a bubble at the left hand top corner of the chart window to show the different between EMA and last tick price (say EMA is 4000 and last tick price is 3980) it should show 20 (4000-3980)
3. A signal every time there are 3 white soldiers or 3 red crows with a "X" below the bar in white color

Finally a buy or sell signal if
(1) 10 EMA < 20 EMA < 50 EMA in case of sell ( and 10 EMA > 20 EMA > 50 EMA in case of buy)
(2) Wick not touching 10 EMA line and candle body >= 75% of the candle
(3) Different between 10 EMA and last tick < 10 (customizable by user) and FINALLY
(4) RSI < 40 (in case of sell) and > 60 (in case of buy)
 
Friends,

I am a beginner in TOS and looking for help to get the below requirements in one indicator for backtesting. Hope it will be helpful for others.

Please let me know if there is already an indicator available. Also any guidance on how to do back-test in TOS like trading view instead of going through each candle?

1. EMA/SMA option to choose with 10, 20,50 and 100 days
2. Show a bubble at the left hand top corner of the chart window to show the different between EMA and last tick price (say EMA is 4000 and last tick price is 3980) it should show 20 (4000-3980)
3. A signal every time there are 3 white soldiers or 3 red crows with a "X" below the bar in white color

Finally a buy or sell signal if
(1) 10 EMA < 20 EMA < 50 EMA in case of sell ( and 10 EMA > 20 EMA > 50 EMA in case of buy)
(2) Wick not touching 10 EMA line and candle body >= 75% of the candle
(3) Different between 10 EMA and last tick < 10 (customizable by user) and FINALLY
(4) RSI < 40 (in case of sell) and > 60 (in case of buy)

(2) Wick not touching 10 EMA line...

seems odd to just specify the wick.
does that mean it is ok for the candle body to cross the EMA line?
 

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

Friends,

I am a beginner in TOS and looking for help to get the below requirements in one indicator for backtesting. Hope it will be helpful for others.

Please let me know if there is already an indicator available. Also any guidance on how to do back-test in TOS like trading view instead of going through each candle?

1. EMA/SMA option to choose with 10, 20,50 and 100 days
2. Show a bubble at the left hand top corner of the chart window to show the different between EMA and last tick price (say EMA is 4000 and last tick price is 3980) it should show 20 (4000-3980)
3. A signal every time there are 3 white soldiers or 3 red crows with a "X" below the bar in white color

Finally a buy or sell signal if
(1) 10 EMA < 20 EMA < 50 EMA in case of sell ( and 10 EMA > 20 EMA > 50 EMA in case of buy)
(2) Wick not touching 10 EMA line and candle body >= 75% of the candle
(3) Different between 10 EMA and last tick < 10 (customizable by user) and FINALLY
(4) RSI < 40 (in case of sell) and > 60 (in case of buy)
We need more information to understand what you are asking.
To make sure your post gets the attention and assistance it deserves, here are a few directions to keep in mind:
  • Make sure to post your question in the Questions Forum. This is where all the questions go, and where you'll find the most eyes to help you out.
  • Include a screenshot of your chart and a shared chart link. This will help others understand the context of your question and allow them to replicate the conditions that you are describing.
  • Annotate your image, highlighting the confluence that you're trying to achieve, along with a more detailed written explanation. This will help others understand your question even better and give them more specific information to work with.
If you're unsure of how to share chart links or upload screenshots to the forum, don't worry, we've included some easy-to-follow directions for you.
How to create a shared chart link:
https://usethinkscript.com/threads/how-to-share-a-chart-in-thinkorswim.14221/
How to upload screenshots to the forum:
https://usethinkscript.com/threads/answers-to-commonly-asked-questions.6006/#post-58714
 
Last edited:

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
199 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