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

MattATM

MattATM

Active member
VIP
@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.
 
T

ThinkDan

New member
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.
 
K

KKaiser

Member
VIP
@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.
 
H

HighBredCloud

Well-known member
VIP
@ThinkDan The CSA will work much better if you find stocks that are trending in one direction...Look for %Gainers and %Losers in TOS...then use the CSA...Also...select the indicators in the CSA that work the best together...Having ALL indicators set to YES does not mean better results...Sometimes fewer indicators you will get better results.
 
K

KKaiser

Member
VIP
@ThinkDan The CSA will work much better if you find stocks that are trending in one direction...Look for %Gainers and %Losers in TOS...then use the CSA...Also...select the indicators in the CSA that work the best together...Having ALL indicators set to YES does not mean better results...Sometimes fewer indicators you will get better results.
Thnaks @HighBredCloud, I will give a shot tomorrow with papermoney account.
 
wtf_dude

wtf_dude

Active member
Has anybody ever made a dropdown menu option to switch between each of the strategies for backtesting?
 
MattATM

MattATM

Active member
VIP
Yes :) it takes a couple of clicks but you can open the settings and scroll down. After the "Show Labels [ Yes ] " setting as you scroll down you get a box for the number of indicators that have to agree for the trend to change color, so if you want to just see what one indicator will paint the bars you change this value to 1..
Later down you see options like "Use TTM Trend [Yes] " so if you do not want to backtest with this you would just shut it off by switching to NO...
If you only wanted to test 1 indicator you would need to set all of them to NO.
That is how we have been back testing over here. It does take ~3 mouse clicks.
 
R

Ramesh16

Member
VIP
@MattATM Can you please post put and call sign code, or share that chart Please
 
MattATM

MattATM

Active member
VIP
@MattATM Can you please post put and call sign code, or share that chart Please
I don't think this is ready for automatic trading. You can do P/L for different combinations of indicators.
 
wtf_dude

wtf_dude

Active member
Yes :) it takes a couple of clicks but you can open the settings and scroll down. After the "Show Labels [ Yes ] " setting as you scroll down you get a box for the number of indicators that have to agree for the trend to change color, so if you want to just see what one indicator will paint the bars you change this value to 1..
Later down you see options like "Use TTM Trend [Yes] " so if you do not want to backtest with this you would just shut it off by switching to NO...
If you only wanted to test 1 indicator you would need to set all of them to NO.
That is how we have been back testing over here. It does take ~3 mouse clicks.
ahhh ok, I thought enable just meant show the label. Didn't realize it didnt include it in the calc. Appreciate it! Also, what combo have you seen the best results with?

Also, are these the correct order lines in the backtest? If so, there's a major problem...
AddOrder(condition = bullish, type = OrderType.BUY_TO_OPEN, price = open,name = "OL");
AddOrder(condition = bearish, type = OrderType.SELL_TO_CLOSE, price = open,name = "TS");
 
Last edited:
MattATM

MattATM

Active member
VIP
Also, are these the correct order lines in the backtest? If so, there's a major problem...
AddOrder(condition = bullish, type = OrderType.BUY_TO_OPEN, price = open,name = "OL");
AddOrder(condition = bearish, type = OrderType.SELL_TO_CLOSE, price = open,name = "TS");
If you go to the end the coloring is under bullish or bearish but I replaced that with just using sState because I thought it was becoming so unruly that I thought it was eating up my computers resources...
Right now I just sat down for an hour and redid the True Momentum Oscillator like you had mentioned to me. I am accounting for the narrowing before the momentum bands change color, the slopes when it changes color,. and how overbought or oversold it was. I am using four momentum bands spread out over time.
I am probably not weighing them correctly.
I also lost what I consider to be the perfect CSA setup sooo I feel silly for that.
I badly need a ADX module and some sort of simple line crossovers... That could soften the scoring system the others are using.
 
wtf_dude

wtf_dude

Active member
@MattATM actually the issue I noticed is much simpler than that. If you run your back test with the price being left as open, you'll notice when you run the report that the price being used for order entry is the OPEN PRICE OF THE DAY BEFORE you see the order display show up. The problem there being, if the rules are triggered mid-day, you obviously can't go back in time to use the opening price of the day. Run the "show report" and see if you're getting the same result. Of course, if you chance open to another price, you'll get completely different result and often much crappier lol
 
MattATM

MattATM

Active member
VIP
@MattATM actually the issue I noticed is much simpler than that. If you run your back test with the price being left as open, you'll notice when you run the report that the price being used for order entry is the OPEN PRICE OF THE DAY BEFORE you see the order display show up. The problem there being, if the rules are triggered mid-day, you obviously can't go back in time to use the opening price of the day. Run the "show report" and see if you're getting the same result. Of course, if you chance open to another price, you'll get completely different result and often much crappier lol
Uhm I hope not...
I have the following on the beginning for my price.
Code:
declare upper;

input showLabels = yes;
def V = volume;
def h = high;
def l = low;
def o = open;
def c = close;
def hl = hl2;


def na = Double.NaN;

input ShowCurrentMoneyFlowVolume = yes;
AddLabel(ShowCurrentMoneyFlowVolume, "CSA", Color.WHITE);

I leave show extended hours and begin accumulation when day starts on in my equities...
Can you show me where you are backtesting?
I really need to be backtesting I am 100% using my human eyes right now.
Did you see my last message to you in UseThinkScript from ben10?
 
wtf_dude

wtf_dude

Active member
Uhm I hope not...
I have the following on the beginning for my price.
Code:
declare upper;

input showLabels = yes;
def V = volume;
def h = high;
def l = low;
def o = open;
def c = close;
def hl = hl2;


def na = Double.NaN;

input ShowCurrentMoneyFlowVolume = yes;
AddLabel(ShowCurrentMoneyFlowVolume, "CSA", Color.WHITE);

I leave show extended hours and begin accumulation when day starts on in my equities...
Can you show me where you are backtesting?
I really need to be backtesting I am 100% using my human eyes right now.
Did you see my last message to you in UseThinkScript from ben10?
I can't remember if I pulled those order entry lines from this thread or another, but essentially you just add the 2 order lines and change out whatever the condition variable is. Then just add the extended floating PL coding from another thread (it's amazing) in the SAME entry as your strategy on the upper chart. Then turn on your declare lower floating PL. You'll get the infographic in the top and the PL on the lower chart.

I'm was mainly doing the charting on the daily chart,, but the issue persists on all time frames.

Which message are you referring to? #193 on here? I havent been on much in the last week or 2.
 
MattATM

MattATM

Active member
VIP
Which message are you referring to? #193 on here? I havent been on much in the last week or 2.
You should have been invited to a onedrive folder. If you post the study that is using the wrong open price from the last day post it over there.
Maybe we could use one of Mobius GetDay scripts... I have not backtested because all of my improvements have been so obvious like the logic or a math equation there was no need to back test.
Soon we should back test and it would be great to do it together!
TY 🤑(y)
 
wtf_dude

wtf_dude

Active member
You should have been invited to a onedrive folder. If you post the study that is using the wrong open price from the last day post it over there.
Maybe we could use one of Mobius GetDay scripts... I have not backtested because all of my improvements have been so obvious like the logic or a math equation there was no need to back test.
Soon we should back test and it would be great to do it together!
TY 🤑(y)
I literally JUST saw the invite this morning, still reading through to catch up on where you guys are at.

Also, if I remember correctly if you just use one of the strategies from TD's default list, youll get the same result.
 
Last edited:
D

dolomick

Member
I have been away for a bit but am happy to see there is still some life to this indicator. I spent many hours testing various combinations of this when it was released. I eventually landed on a combo that I thought was best for me, but I always thought there was room for improvement. I also like periods of grey candles, so I made sure my settings weren’t always red or green candles. Recently I discovered the built in CAM indicator which is good for staying out of chop. Anyways, keep up the good work!
 
D

diazlaz

Well-known member
2019 Donor
VIP
I have been away for a bit but am happy to see there is still some life to this indicator. I spent many hours testing various combinations of this when it was released. I eventually landed on a combo that I thought was best for me, but I always thought there was room for improvement. I also like periods of grey candles, so I made sure my settings weren’t always red or green candles. Recently I discovered the built in CAM indicator which is good for staying out of chop. Anyways, keep up the good work!
thanks @dolomick - glad it helped and you were able to make it your own. re: CAM thanks for the pointer. Any specific settings that have worked well for you?
 

Similar threads

Top