A trend, momentum and cycle Trading System v3.0 (CSA)

So for the model would f{x] be a trading signal, ie CCI crosses above 100, with the output being the a stat like expectancy or P/L over a certain time period?
That would make this Way Way to hard to do...
My mistake I didn't explain... Profit / Loss ratio is a ratio so it has not units it is not read in $... If we say Minimize losses the computer will just never trade 🤣 your python will say 0 trades 0 losses bro
!
If we say Maximize Profits your computer will say ohhh ohhh go all in bear stocks and all in bull stocks because of these historic dates So we don't let it do that we just do the large cap stocks and do Buy @ Low Sell @ High!!!
We do NOT NEED to solve anything!!!! We do NOT NEED 100s of guys and a giant computer underground we just tell the computer to guess until it has the best P/L aaand we can just make Losses x 10 greater than Profits so that it really doesn't try to take risk but I would step up the importance of losses slowly.
Because you have so many trends I expect almost negligible losses at the 1st run...

Show me which Python and I will set it up... But first we need to finish the modules...
Thanks @Tostechnical
 
Last edited:
That would make this Way Way to hard to do...
My mistake I didn't explain... Profit / Loss ratio is a ratio so it has not units it is not read in $... If we say Minimize losses the computer will just never trade 🤣 your python will say 0 trades 0 losses bro
!
If we say Maximize Profits your computer will say ohhh ohhh go all in bear stocks and all in bull stocks because of these historic dates So we don't let it do that we just do the large cap stocks and do Buy @ Low Sell @ High!!!
We do NOT NEED to solve anything!!!! We do NOT NEED 100s of guys and a giant computer underground we just tell the computer to guess until it has the best P/L aaand we can just make Losses x 10 greater than Profits so that it really doesn't try to take risk but I would step up the importance of losses slowly.
Because you have so many trends I expect almost negligible losses at the 1st run...

Show me which Python and I will set it up... But first we need to finish the modules...
Thanks @Tostechnical


The program in python uses Alpha Vantage's API. They essentially provide daily and weekly price data going back 20 years along with some indicators. Alpha Vantage
I have some backtesting code for Laguerre filters/RSI I can send you if you want.

When you mean guess do you want the computer to run as many iterations of random buying and selling? So when you say guessvalue is that the price where the program would buy/sell? Im a bit confused there.
Im thinking of replacing Vix with Vixfix so it can be more attuned to the underlying.

Can't wait to work on this with you @MattATM always wanted to try something like this but never knew anyone with the knowledge to work with.

OMG that crane story. You must have been frustrated as hell.
 
Can you share which Frema? Yes Frema knows on the left that those Bullish candles are really Bearish and Vice Versa... Do you like it in all timeframes? I haven't looked.

Right now I have Frema with the slope & adaptive moving averages...
I know all our lives are disrupted recently but I really was not well prepared. I thank everyone for your patience!
thanks @MattATM - what would it take to do a quick and minimal proof of concept? let's punch out some steps and requirements, and we will help you.
 
@diazlaz @HighBredCloud I think you will like the solution to the sharp edges of the sharp geometry of the Schaff Wave - Shaff Trend rectangles, you can keep the standard time intervals recognized the world over for MACD just use this code you were already using here. https://usethinkscript.com/threads/price-trend-indicator-for-thinkorswim.13/page-3
Code:
input SWCA_fastlengthwave = 12;
input SWCA_slowlengthwave = 26;
Without being thrown off in odd time increments...
The solution is to use multiple Schaff time frames. Maybe 13 like the lower in this photo?
input SWCA_fastlengthwave = 12;
input SWCA_slowlengthwave = 26;
https://usethinkscript.com/threads/...swim.13/page-2#lg=_xfUid-1-1586461542&slide=0Does anyone have the code to this lower with the 13 moving averages?
Now I might have to do the subtraction step in the Schaff indicator multiple times but that shouldn't be resource intensive..
@vvcv does anybody have the code to this lower? If not I can figure it out but I would not present it in those bright neon lights I would just have a soft cloud behind the candlesticks and green & red for Bull Bear, AND yellow for narrowing & Black for close trade...
That is what I will do and then I will use some of there for prerequisites to see if bars should be colored at all or left black!
I think this will be popular. I think also require certain ADX minimum too
 
Last edited:
Would be good, I just got back on. I have some family staying with me cause Gates + CCP just had to have their sickness Tabletop game...
I think for direction between trends we need something like RSI Laguerre Fractal or something? I overhauled the existing indicators and it gives that warning may cause long loading times so I'm going to keep gutting it... One thing that helped was changing the adding Bullish and Bearish at the end. Instead of summing each indicator at the very end it's best to keep a rolling total. Saves on lines of code
 
Would be good, I just got back on. I have some family staying with me cause Gates + CCP just had to have their sickness Tabletop game...
I think for direction between trends we need something like RSI Laguerre Fractal or something? I overhauled the existing indicators and it gives that warning may cause long loading times so I'm going to keep gutting it... One thing that helped was changing the adding Bullish and Bearish at the end. Instead of summing each indicator at the very end it's best to keep a rolling total. Saves on lines of code

Before you spend a lot of time on this CSA...I think it would be more beneficial if you focused on the indicators I mentioned to you in my earlier post. With a CSA of this magnitude the right sets of indicators need to be chosen so that they react according to the timeframe...
 
Before you spend a lot of time on this CSA...I think it would be more beneficial if you focused on the indicators I mentioned to you in my earlier post. With a CSA of this magnitude the right sets of indicators need to be chosen so that they react according to the timeframe...
@HighBredCloud @horserider @stayeduptolate @diazlaz Yes sir I have gone through those and even changed Balance of Power to make is work with the other indicators. Original versions had some typos but really nothing was wrong with any of the indicators just that indicators were based on discreet events like lines crossing over that may happen a little sooner or a little later than with the other indicators. As I have learned from you all and Mobius there is no "holy grail" indicator and so instead of choosing one over another I simply softened the ranges of BULL & BEAR.

I just noticed there are guys out there selling your indicators and it definitely isn't me.
Code Thief?

One question I'm wondering is what would you use for the buy sell arrows once everything is done? Do you guys want to use a Zero Lag moving average vs adaptive moving average crossover? Do you guys want to use a Chandelier Exit? What Up DOWN arrow indicator do you guys feel like trying assuming you want accurate and fast (10min or less) and assume I include a scanner that will drop you into the action so you are nopt afraid of your position being chopped up (Scanner has MOBO + ECI(Gaussian)
What did this guy who I think steals your code use? Should I buy it to see and try to return his indicator later?
 
@HighBredCloud @horserider @stayeduptolate @diazlaz Yes sir I have gone through those and even changed Balance of Power to make is work with the other indicators. Original versions had some typos but really nothing was wrong with any of the indicators just that indicators were based on discreet events like lines crossing over that may happen a little sooner or a little later than with the other indicators. As I have learned from you all and Mobius there is no "holy grail" indicator and so instead of choosing one over another I simply softened the ranges of BULL & BEAR.

I just noticed there are guys out there selling your indicators and it definitely isn't me.
Code Thief?

One question I'm wondering is what would you use for the buy sell arrows once everything is done? Do you guys want to use a Zero Lag moving average vs adaptive moving average crossover? Do you guys want to use a Chandelier Exit? What Up DOWN arrow indicator do you guys feel like trying assuming you want accurate and fast (10min or less) and assume I include a scanner that will drop you into the action so you are nopt afraid of your position being chopped up (Scanner has MOBO + ECI(Gaussian)
What did this guy who I think steals your code use? Should I buy it to see and try to return his indicator later?

No Report him lol
 
@HighBredCloud @horserider @stayeduptolate @diazlaz Yes sir I have gone through those and even changed Balance of Power to make is work with the other indicators. Original versions had some typos but really nothing was wrong with any of the indicators just that indicators were based on discreet events like lines crossing over that may happen a little sooner or a little later than with the other indicators. As I have learned from you all and Mobius there is no "holy grail" indicator and so instead of choosing one over another I simply softened the ranges of BULL & BEAR.

I just noticed there are guys out there selling your indicators and it definitely isn't me.
Code Thief?

One question I'm wondering is what would you use for the buy sell arrows once everything is done? Do you guys want to use a Zero Lag moving average vs adaptive moving average crossover? Do you guys want to use a Chandelier Exit? What Up DOWN arrow indicator do you guys feel like trying assuming you want accurate and fast (10min or less) and assume I include a scanner that will drop you into the action so you are nopt afraid of your position being chopped up (Scanner has MOBO + ECI(Gaussian)
What did this guy who I think steals your code use? Should I buy it to see and try to return his indicator later?
Nice find, people like this are the scum of the earth. Site full of stolen code over $1,000 in sales and fake positive reviews on his page. I was contemplating botting his account with bad reviews but then who would be the better person. I guess one report will do.
 
@HighBredCloud @horserider @stayeduptolate @diazlaz Yes sir I have gone through those and even changed Balance of Power to make is work with the other indicators. Original versions had some typos but really nothing was wrong with any of the indicators just that indicators were based on discreet events like lines crossing over that may happen a little sooner or a little later than with the other indicators. As I have learned from you all and Mobius there is no "holy grail" indicator and so instead of choosing one over another I simply softened the ranges of BULL & BEAR.

I just noticed there are guys out there selling your indicators and it definitely isn't me.
Code Thief?

One question I'm wondering is what would you use for the buy sell arrows once everything is done? Do you guys want to use a Zero Lag moving average vs adaptive moving average crossover? Do you guys want to use a Chandelier Exit? What Up DOWN arrow indicator do you guys feel like trying assuming you want accurate and fast (10min or less) and assume I include a scanner that will drop you into the action so you are nopt afraid of your position being chopped up (Scanner has MOBO + ECI(Gaussian)
What did this guy who I think steals your code use? Should I buy it to see and try to return his indicator later?

@MattATM So what is your thoughts on the indicators that I listed in my previous post to you? Do you see a benefit to rank them from strongest to weakest? Also optimum timeframes for each indicator? How do you think those indicators would stack up against the indictors in this CSA?

In regards to the code thief...how do you know its the actual code from this CSA? I don't want to spend the $100 to find out either. Its just a shame that people come on this site and profit off other peoples hard work...But how do you stop this?
 
In regards to the code thief...how do you know its the actual code from this CSA?
I really don't know for certain where all they stole the code but the same style of images seems to leave a trail that winds across Google searches. I don't think it would be wise of me to buy it just to look at for all I know he just uses 2 moving averages crossing over each other and cherry picked a good image.


So what is your thoughts on the indicators that I listed in my previous post to you?
Yes so I went back to the original Balance of Power not the one in CSA just because it can have bad luck and land poorly in several cases.
Originally all of the indicators were +100 if Bullish and -100 if Bearish so I replaced the sBullish & SBearish lines of code with a direct +/- scoring and now you can use a sliding scale of bullish & bearish. I increased the slimlines "Yellow Bar" point weight from +/-10 to +/-50... It would be easy to have the normalized strength of bullish and bearish to range continuously from -100 to 0 to 100 with the strenght of each indicator instead of just dumb binary switches...

On @HighBredCloud list of indicators the problem I have is I did NOT account for divergences... Remember since we want to simplify and look at less rather than more I should do something with Bullish divergence and Bearish divergence...

I do not have an opinion about what indicators should be preferred over others I am not even a professional trader at all. I could just linerregression all indicators and then have the fraction grow but problem with that is timing.

Where I am now is confused as to what the code thief used to put his UP and DOWN bubbles? I note some signals like the Chandelier are a little slow but very certain and other things are fast but certain. The negative side to these things are they are right for a short time but then the user gets chopped up with constant ups and downs... I am not scared at all of being chopped up because of our scanners.

So
1.) What do you want done with your indicators?
2.) What do you want to use for the arrows in the grey sections without it turning into Hi-Lo Zig-Zag SPAM???
 
Nice find, people like this are the scum of the earth. Site full of stolen code over $1,000 in sales and fake positive reviews on his page.
I guess they have been around since 2016 and then they would have sold way more than $1000, the reviews might not have been fake if people on there don't know about you guys or Mobius??? Do you think we should buy it to see what is inside? Would we be able to open the thinkscript or would that be locked? If these thinkscripts were stolen could we complain or ask for refund?
We can open scripts unless they are copyrighted right? So I doubt it is Mobius the rightful owner over there right 🤣🤣🤣???
 
I am a total newb to ThinkScript and this seems like excellent work. I have been testing it with my trading this morning. I like it on a 3 minute chart. I hope that isn't misusing it in some way. Any comments on how I can turn this into a strategy to backtest it a bit? It looks like it doesn't fair all that well for overnight hold, but that's just from an eyeball test. I figure it would just be adding a couple lines of code. I dont even know enough to understand why addorder when bullish or bearish doesn't work. Thanks for any help! Really really excellent work.
 
I am a total newb to ThinkScript and this seems like excellent work. I have been testing it with my trading this morning. I like it on a 3 minute chart. I hope that isn't misusing it in some way. Any comments on how I can turn this into a strategy to backtest it a bit? It looks like it doesn't fair all that well for overnight hold, but that's just from an eyeball test. I figure it would just be adding a couple lines of code. I dont even know enough to understand why addorder when bullish or bearish doesn't work. Thanks for any help! Really really excellent work.

Okay, I don't deserve help if I cant do this myself. Could not be more simple:
AddOrder(OrderType.SELL_AUTO, bearish , tickcolor = COLOR.RED , arrowcolor = COLOR.RED, name = "Sell");
AddOrder(OrderType.BUY_AUTO, bullish , tickcolor = COLOR.GREEN, arrowcolor = COLOR.GREEN , name = "Buy");

Which I had come up with, but then you need to go to properties in the other menu and enable orders.

Oh, and I guess you have to have it in strategies.
 
I am a total newb to ThinkScript and this seems like excellent work. I have been testing it with my trading this morning. I like it on a 3 minute chart. I hope that isn't misusing it in some way. Any comments on how I can turn this into a strategy to backtest it a bit? It looks like it doesn't fair all that well for overnight hold, but that's just from an eyeball test. I figure it would just be adding a couple lines of code. I dont even know enough to understand why addorder when bullish or bearish doesn't work. Thanks for any help! Really really excellent work.
Every box you see at the top that turns green or red is either an indicator or a set of indicators themselves. Supertrend, for example, could be a strategy in itself between going green and red. Your best bet is to go over the list of what each indicator is/does and see which ones you like. Then you can turn off all the other indicators and THEN start figuring out your strategy ie when all 3 trendboxes you choose turn green then buy, etc
 
@ThinkDan You are good my friend. This is a very long ongoing thing I think I will just put out a super short proofread version that you can use right away soon. I think I am doing what beginners do and falling into a pit of more and more reading not just this but all the topics.
 
@ThinkDan Before this can be a strategy it will need one more threshold for BUY and SELL to keep from getting a lot of little losses with weak trends. For example on my simplified CSA on a typical day on let's say SPY I see a lot of soft grey bars then green bars start before a +$1 or +$2 dollar run up in 30 minutes then back to soft grey. Or the opposite for Red...

But there are weak periods where 30 minutes of green or red color occur and there is only $0.50 of movement before back to grey... So before we start shopping for a new yacht we should get some things to confirm that there will be some market energy.
 
Again, pretty new, but the chop didn't seem to be the problem all that much. You've either going to be late to the party or have to put up with showing up to some parties that never happen. After just going through a few days of manually back testing. It seem like if you hold from red all the way to green, you're in the trade too long. Looks good on a chart because it basically has an X minute look back. You don't really get to close your trade until the 2nd reversing bar because in practice the first reversing bar is ambiguous, its color isn't really determined until it is closed. The study alone, as is, with no adjustments provided excellent buy signals to take 5-20 minute trades using 3 minute charts. That's all I can comment on, because that's all I tried. In the afternoon I got shook for some losses trying to wait for a bigger move until the green turned red.
 
@ThinkDan You are good my friend. This is a very long ongoing thing I think I will just put out a super short proofread version that you can use right away soon. I think I am doing what beginners do and falling into a pit of more and more reading not just this but all the topics.
I am in the same situation. I have spend over 100hrs reading all the post, scripts, my TOS is full of so many scripts and indicators and i haven't yet put a single to use. I am so lost what to use and what not to. Where to start. I want to also thank all of you putting so much work and good deed for beginners like me. Thank you all for all the efforts and will keep learning until day i can give back.
 

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
391 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