Stock Markets

26,424,265 Views | 237064 Replies | Last: 6 hrs ago by Heineken-Ashi
Bocephus
How long do you want to ignore this user?
AG
$30,000 Millionaire said:

I'm trying to come up with parameters for my personal policies:

Don't let green go red
Don't enter during low vol periods
Exit on impulse moves

What I can't code is "feel" for price action.


Set a price target and exit. Don't fret over unrealized gains AFTER your profit
TAMU ‘98 Ole Miss ‘21
$30,000 Millionaire
How long do you want to ignore this user?
AG
in the context of a script I wrote on trading view that I'm trying to backtest.
You don’t trade for money, you trade for freedom.
Philip J Fry
How long do you want to ignore this user?
AG
In my experience writing my 42 app, you really need to sit down with a pencil and paper and draw out a decision tree.

What about a particular setup makes you feel one way or another? Our human brain can instantly pick it out, but getting to a systems of equation is complicated.
$30,000 Millionaire
How long do you want to ignore this user?
AG
Philip J Fry said:

In my experience writing my 42 app, you really need to sit down with a pencil and paper and draw out a decision tree.

What about a particular setup makes you feel one way or another? Our human brain can instantly pick it out, but getting to a systems of equation is complicated.
I wish it was easy to code:

things like this:

1) if we're above high of the day and the volume profile pivot, just let that biatch run until there is a definite shift in momentum
2) if we get an impulse spike that's like 10 ES points out of the blue, sell
3) if you don't like how the candles look and it's approaching lunchtime, exit
4) if it looks like a bull flag, HODL
5) if the ticks start looking crappy, exit
6) trade with the direction of the TRIN if it makes sense.
You don’t trade for money, you trade for freedom.
Philip J Fry
How long do you want to ignore this user?
AG
$30,000 Millionaire said:

Philip J Fry said:

In my experience writing my 42 app, you really need to sit down with a pencil and paper and draw out a decision tree.

What about a particular setup makes you feel one way or another? Our human brain can instantly pick it out, but getting to a systems of equation is complicated.
I wish it was easy to code:

things like this:

1) if we're above high of the day and the volume profile pivot, just let that biatch run until there is a definite shift in momentum
2) if we get an impulse spike that's like 10 ES points out of the blue, sell
3) if you don't like how the candles look and it's approaching lunchtime, exit
4) if it looks like a bull flag, HODL
5) if the ticks start looking crappy, exit
6) trade with the direction of the TRIN if it makes sense.


1). Relatively straight forward
2). How do you identify "out of the blue"? Base this moving average of atr?
3). How do you identify what bad candles look like?
4). I think that's straight forward with some certain rules.
5). Define crappy. How do you identify this?
6). Just math I think up until the "sense" part.
jimmo
How long do you want to ignore this user?
Does it require a TradingView paid subscription
to use the strategy? I can't seem to access it...
texAZtea
How long do you want to ignore this user?
AG
Philip J Fry said:

$30,000 Millionaire said:

Philip J Fry said:

In my experience writing my 42 app, you really need to sit down with a pencil and paper and draw out a decision tree.

What about a particular setup makes you feel one way or another? Our human brain can instantly pick it out, but getting to a systems of equation is complicated.
I wish it was easy to code:

things like this:

1) if we're above high of the day and the volume profile pivot, just let that biatch run until there is a definite shift in momentum
2) if we get an impulse spike that's like 10 ES points out of the blue, sell
3) if you don't like how the candles look and it's approaching lunchtime, exit
4) if it looks like a bull flag, HODL
5) if the ticks start looking crappy, exit
6) trade with the direction of the TRIN if it makes sense.


1). Relatively straight forward
2). How do you identify "out of the blue"? Base this moving average of atr?
3). How do you identify what bad candles look like?
4). I think that's straight forward with some certain rules.
5). Define crappy. How do you identify this?
6). Just math I think up until the "sense" part.
for 1.

If:
above high of the day,
and: above volume profile pivot
then:
let that biatch run


Coders of the group, did I get that right? Will that translate to Python?
khkman22
How long do you want to ignore this user?
AG
texAZtea said:

Philip J Fry said:

$30,000 Millionaire said:

Philip J Fry said:

In my experience writing my 42 app, you really need to sit down with a pencil and paper and draw out a decision tree.

What about a particular setup makes you feel one way or another? Our human brain can instantly pick it out, but getting to a systems of equation is complicated.
I wish it was easy to code:

things like this:

1) if we're above high of the day and the volume profile pivot, just let that biatch run until there is a definite shift in momentum
2) if we get an impulse spike that's like 10 ES points out of the blue, sell
3) if you don't like how the candles look and it's approaching lunchtime, exit
4) if it looks like a bull flag, HODL
5) if the ticks start looking crappy, exit
6) trade with the direction of the TRIN if it makes sense.


1). Relatively straight forward
2). How do you identify "out of the blue"? Base this moving average of atr?
3). How do you identify what bad candles look like?
4). I think that's straight forward with some certain rules.
5). Define crappy. How do you identify this?
6). Just math I think up until the "sense" part.
for 1.

If:
above high of the day,
and: above volume profile pivot
then:
let that biatch run


Coders of the group, did I get that right? Will that translate to Python?
No, your then statement is wrong. It should be:

Then:

$30,000 Millionaire
How long do you want to ignore this user?
AG
It's very hard for me to translate my internal I think this will go up or down bias into code that works consistently.
You don’t trade for money, you trade for freedom.
jimmo
How long do you want to ignore this user?
jimmo said:

Does it require a TradingView paid subscription
to use the strategy? I can't seem to access it...
nevermind
finally figured it out
JobSecurity
How long do you want to ignore this user?
AG
For anybody that's really into algorithmic trading and back testing I would look into quantconnect. I messed with it a few years ago and it's a nice sandbox to test things, they even have some options datasets among a million other things depending on how deep you want to go
Philip J Fry
How long do you want to ignore this user?
AG
Can it tie into trading view? I've wanted to do algo trading for a long time now.
Philip J Fry
How long do you want to ignore this user?
AG
$30,000 Millionaire said:

I'm trying it for the first time as well.

What I don't like about it is that there are times when I wouldn't trade based on "feel"

Try running your strategy on AAPL if you want to be impressed.

79,000% isn't bad. Now to write a script that finds companies trading at less than a dollar that will ultimately be juggernauts.
jimmo
How long do you want to ignore this user?
what time frame you recommend for your strat?
irish pete ag06
How long do you want to ignore this user?
AG
The last few pages make me happy. I've actually had a slowly rising equity curve over the last 2 months because of switch to a more algorithmic, objective trading. I've used 2 setups the whole time (8/21 EMA & Ceyhun's ATR Trailing Stop Loss).

I've only made 2 "feel trades" and both have been winners. I think the repetition of trading like a robot has made my "feel" better too.

Also I've spent most of my time on the 15 and 30 minute and not the 1,2, or 5 like I used to.
Philip J Fry
How long do you want to ignore this user?
AG
I haven't really started using it yet, but backtesting has given me good results with the 2H and daily. They both require their own setting though. See my previous posts for what I used.

For what it's worth, here's a setting for UPRO that has given a 90% win rate.






Note, there aren't a ton of trades with this setting. These are big momentum move settings apparently. Like I said, I don't really know what I've created here. I used ChatGBT as a guide so there's some code I'm flat out unfamiliar with.
$30,000 Millionaire
How long do you want to ignore this user?
AG
I really think you're onto something with this.

I think if we made this a scan for non indexes, it could be really good as well.

Might be worth testing (representative sample)

  • UDOW
  • TQQQ
  • GUSH
  • LABU
  • SOXL
  • TSLA
  • COIN
  • NVDA
  • XOM
  • AAPL
  • MSFT
You don’t trade for money, you trade for freedom.
Philip J Fry
How long do you want to ignore this user?
AG
One thing that's clear to me is that the PPO curves have to be adjusted. I never really messed with MACD defaults before. I tried writing some Pine that would iterate until it found the settings with the highest win rates, but I think I'm going to have to do this in MATLAB.
$30,000 Millionaire
How long do you want to ignore this user?
AG
This has positive expected value on /NQ if anyone wants to mess with this:

// spiritedDog12914

//@version=4
strategy("EMA Moving Averages Strategy", shorttitle="EMA_MA", overlay=true)

// Input Parameters
ema9_len = input(9, title="9 EMA Length", type=input.integer)
sma200_len = input(200, title="200 SMA Length", type=input.integer)
sma50_len = input(50, title="50 SMA Length", type=input.integer)
sl_bars = input(2, title="Stop Loss: Consecutive Bars Away from 9 EMA", type=input.integer)

// Indicators
ema9 = ema(close, ema9_len)
sma200 = sma(close, sma200_len)
sma50 = sma(close, sma50_len)

// Entry Conditions
longCondition = crossover(ema9, sma50) and close > sma200
shortCondition = crossunder(ema9, sma50) and close < sma200

if (longCondition)
strategy.entry("Long", strategy.long)

if (shortCondition)
strategy.entry("Short", strategy.short)

// Exit Conditions
exitLongCondition = barssince(close > ema9) >= sl_bars
exitShortCondition = barssince(close < ema9) >= sl_bars

if (exitLongCondition)
strategy.close("Long")

if (exitShortCondition)
strategy.close("Short")

// Profit Target
profitTargetLongCondition = abs(ema9[0] - ema9[1]) <= abs(ema9[1] - ema9[2])
profitTargetShortCondition = abs(ema9[0] - ema9[1]) >= abs(ema9[1] - ema9[2])

if (profitTargetLongCondition)
strategy.close("Long")

if (profitTargetShortCondition)
strategy.close("Short")

// Plotting
plot(ema9, title="9 EMA", color=color.blue, linewidth=2)
plot(sma200, title="200 SMA", color=color.red, linewidth=2)
plot(sma50, title="50 SMA", color=color.green, linewidth=2)
bgcolor(longCondition ? color.green : na, transp=80)
bgcolor(shortCondition ? color.red : na, transp=80)
bgcolor(exitLongCondition ? color.yellow : na, transp=80)
bgcolor(exitShortCondition ? color.yellow : na, transp=80)


You don’t trade for money, you trade for freedom.
Definitely Not A Cop
How long do you want to ignore this user?
AG
What do you guys think about LUV right now for a long term hold? Lowest price it's been since 2014 because of all the issues from the winter, I can't imagine that they don't rebound, right?
Saltyag15
How long do you want to ignore this user?
AG
It's on my watchlist too. Trying to decide on pulling the trigger now versus waiting on the next macro pullback.
ProgN
How long do you want to ignore this user?
Definitely Not A Cop said:

What do you guys think about LUV right now for a long term hold? Lowest price it's been since 2014 because of all the issues from the winter, I can't imagine that they don't rebound, right?
They'll come back but I don't think it happens very quickly because passengers will decrease if we have a harsh recession and fuel prices are likely to increase which also hurts. JMO
BaylorSpineGuy
How long do you want to ignore this user?
Thanks to everyone! Mom and baby are healthy. 9lb 8 oz, 22 inches. Biggest baby yet for us by over half a pound! Lol.

Nickname: Bohemond.
Spoony Love
How long do you want to ignore this user?
AG
That's a nice sized bass!
jimmo
How long do you want to ignore this user?
Congratulations!
ProgN
How long do you want to ignore this user?
BaylorSpineGuy said:

Thanks to everyone! Mom and baby are healthy. 9lb 8 oz, 22 inches. Biggest baby yet for us by over half a pound! Lol.

Nickname: Bohemond.


Congrats Doc!
spud1910
How long do you want to ignore this user?
AG
BaylorSpineGuy said:

Thanks to everyone! Mom and baby are healthy. 9lb 8 oz, 22 inches. Biggest baby yet for us by over half a pound! Lol.

Nickname: Bohemond.
Congratulations! And thanks to your podcast recommendation, I am up to date on Bohemond.
Spoony Love
How long do you want to ignore this user?
AG
Chopping all day or are we waiting for something?
M4 Benelli
How long do you want to ignore this user?
Congrats Doctor!

oldarmy1
How long do you want to ignore this user?
AG
Spoony Love said:

Chopping all day or are we waiting for something?
Draw your trend lines on macro markets and it will show you the pennant forming. Tightening spread as sideways action continues. We hit the upper resistance line and dropped back. We have a gap on the SPX at 3972.74, which just so happens to be right in the middle of the forming pennant.

If someone wants to do a search for my write up on the eventual decoupling of the U.S. dollar by globalists some years back, this would be a good time to understand the consequences.

oldarmy1
How long do you want to ignore this user?
AG
BaylorSpineGuy said:

Thanks to everyone! Mom and baby are healthy. 9lb 8 oz, 22 inches. Biggest baby yet for us by over half a pound! Lol.

Nickname: Bohemond.
9lbs 80z!

Did you announce the birth by saying "and in this corner, wearing red trunks coming in at 9lbs 8 oz......"

Congrats!
BaylorSpineGuy
How long do you want to ignore this user?
oldarmy1 said:

BaylorSpineGuy said:

Thanks to everyone! Mom and baby are healthy. 9lb 8 oz, 22 inches. Biggest baby yet for us by over half a pound! Lol.

Nickname: Bohemond.
9lbs 80z!

Did you announce the birth by saying "and in this corner, wearing red trunks coming in at 9lbs 8 oz......"

Congrats!


Thank you, professor! I'm not sure what his 40 time is yet, but he may be turning over by this afternoon haha
BaylorSpineGuy
How long do you want to ignore this user?
spud1910 said:

BaylorSpineGuy said:

Thanks to everyone! Mom and baby are healthy. 9lb 8 oz, 22 inches. Biggest baby yet for us by over half a pound! Lol.

Nickname: Bohemond.
Congratulations! And thanks to your podcast recommendation, I am up to date on Bohemond.


Glad you enjoyed! Love listening to that podcast!!
spud1910
How long do you want to ignore this user?
AG
BaylorSpineGuy said:

oldarmy1 said:

BaylorSpineGuy said:

Thanks to everyone! Mom and baby are healthy. 9lb 8 oz, 22 inches. Biggest baby yet for us by over half a pound! Lol.

Nickname: Bohemond.
9lbs 80z!

Did you announce the birth by saying "and in this corner, wearing red trunks coming in at 9lbs 8 oz......"

Congrats!


Thank you, professor! I'm not sure what his 40 time is yet, but he may be turning over by this afternoon haha
A&M could use a linebacker!
oldarmy1
How long do you want to ignore this user?
AG
Here comes that gap fill on SPX. Magic!
First Page Last Page
Page 6047 of 6774
 
×
subscribe Verify your student status
See Subscription Benefits
Trial only available to users who have never subscribed or participated in a previous trial.