Day Chart Swing Trade Strategy Question

CirclingSkies

New member
My first post. Sorry if this subject has been covered before, which I imagine it has ad nauseam. I tried searching but I must not understand how to do that very well either... sorry.

I've built a daily swing strategy that is supposed to indicate do nothing, buy, sell, or hold based on several triggers on a daily chart at the close of trading. So after the market has closed (during after hours), I want it to indicate what to do. However, in real time after hours, I can't (nor ChatGPT, nor TOS support) can get the strategy to indicate (either painted on the chart or in a label) to buy, sell, or hold. All of my addorder commands (which are separated for each trigger to help with backtesting) are set to "close" as well as any other trigger. But the strategy doesn't indicate anything until the open of the next day what you should have done at close previous trading day. I know that works fine on a intraday chart which my strategy does and doesn't repaint. I tried using "entryprice" as an indicator if it's still in a trade or not but entryprice must go double.nan after hours on a day aggregation. Not sure. But what esle should I try? Thanks!
 
My first post. Sorry if this subject has been covered before, which I imagine it has ad nauseam. I tried searching but I must not understand how to do that very well either... sorry.

I've built a daily swing strategy that is supposed to indicate do nothing, buy, sell, or hold based on several triggers on a daily chart at the close of trading. So after the market has closed (during after hours), I want it to indicate what to do. However, in real time after hours, I can't (nor ChatGPT, nor TOS support) can get the strategy to indicate (either painted on the chart or in a label) to buy, sell, or hold. All of my addorder commands (which are separated for each trigger to help with backtesting) are set to "close" as well as any other trigger. But the strategy doesn't indicate anything until the open of the next day what you should have done at close previous trading day. I know that works fine on a intraday chart which my strategy does and doesn't repaint. I tried using "entryprice" as an indicator if it's still in a trade or not but entryprice must go double.nan after hours on a day aggregation. Not sure. But what esle should I try? Thanks!

your words are confusing. try to restate your question differently.
it is near impossible to help someone fix their code, when they don't post their code.

maybe this will help ?
strategies activate on the next bar , open[-1]
https://usethinkscript.com/threads/strategy-orders-a-bar-late.16470/#post-130541
 

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

My first post. Sorry if this subject has been covered before, which I imagine it has ad nauseam. I tried searching but I must not understand how to do that very well either... sorry.

I've built a daily swing strategy that is supposed to indicate do nothing, buy, sell, or hold based on several triggers on a daily chart at the close of trading. So after the market has closed (during after hours), I want it to indicate what to do. However, in real time after hours, I can't (nor ChatGPT, nor TOS support) can get the strategy to indicate (either painted on the chart or in a label) to buy, sell, or hold. All of my addorder commands (which are separated for each trigger to help with backtesting) are set to "close" as well as any other trigger. But the strategy doesn't indicate anything until the open of the next day what you should have done at close previous trading day. I know that works fine on a intraday chart which my strategy does and doesn't repaint. I tried using "entryprice" as an indicator if it's still in a trade or not but entryprice must go double.nan after hours on a day aggregation. Not sure. But what esle should I try? Thanks!
Seems as you are trying to use the strategy as an indicator.
plot an arrow when the condition is true. The strategy can only plot on the next bar.
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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