Generate Insane Trading Returns with ChatGPT and TradingView

Analyzing Alpha
21 Jan 202322:52

Summary

TLDRThis video demonstrates how to leverage OpenAI's Chat GPT to develop a Bitcoin trading strategy without programming knowledge. The host guides viewers through using Chat GPT to create a simple trading algorithm in Pine Script on TradingView. The tutorial shows how to modify existing strategies, like the Super Trend, to optimize performance. It also explores using technical indicators like RSI and ADX to refine the strategy, ultimately aiming to turn a $1,000 investment into over $1 million through backtesting.

Takeaways

  • 😀 The video demonstrates using OpenAI's Chat GPT to develop a Bitcoin trading strategy without prior coding knowledge.
  • 🔍 The presenter explores the potential of Chat GPT to create an outline or introduction for the video, showcasing its capabilities.
  • 💡 Chat GPT can translate natural language into computer code, which is particularly useful for creating trading algorithms.
  • 📈 The video emphasizes the accessibility of trading strategy creation, making it available to both experienced traders and beginners.
  • 🌐 TradingView is introduced as a platform for charting and backtesting trading strategies, with a focus on its strategy tester and Pine script coding.
  • 🛠 The process of coding a simple long-only trading strategy using the 50 SMA in Pine script is shown, highlighting the iterative nature of coding with Chat GPT.
  • 🔎 The video explains how to use Chat GPT to understand and modify existing trading strategies, such as the Super Trend indicator.
  • 📊 The presenter discusses optimizing strategies by adjusting parameters like initial capital and leverage to meet specific financial goals.
  • ⚠️ The importance of articulating clear instructions to Chat GPT for effective strategy creation is highlighted.
  • 🚀 The video concludes with a significant achievement, turning an initial $1,000 into $17.4 million through strategy optimization.

Q & A

  • What is the main goal of the video?

    -The main goal of the video is to demonstrate how to use OpenAI's Chat GPT to develop a Bitcoin trading strategy, with the aim of turning a thousand dollars into over a million dollars.

  • How does the video suggest using Chat GPT for trading strategies?

    -The video suggests using Chat GPT to create an outline or introduction for the tutorial, and to generate or modify trading algorithms in Pine script without any programming experience.

  • What is the role of TradingView in the video's strategy?

    -TradingView is used as the platform for charting, testing, and backtesting the trading strategies developed with Chat GPT, particularly utilizing its Strategy Tester and Pine script editor.

  • Why does the video emphasize the importance of being explicit with Chat GPT?

    -The video emphasizes the importance of being explicit because Chat GPT cannot read minds and requires clear instructions to generate accurate trading strategies.

  • What is the significance of the 'super trend' strategy mentioned in the video?

    -The 'super trend' strategy is significant because it is one of the best-performing strategies identified in the video, with a return of 478 percent, and is used as a basis for further optimization.

  • How does the video address the issue of over-optimization in trading strategies?

    -The video addresses over-optimization by showing the process of iteratively improving the strategy and warning viewers about the potential pitfalls of overfitting the strategy to historical data.

  • What is the role of technical indicators like RSI and ADX in the video's strategy?

    -Technical indicators like RSI and ADX play a role in identifying overextended prices and market trends, which are then used to refine the trading strategy to avoid losses and capitalize on trends.

  • How does the video suggest improving the ADX indicator's responsiveness?

    -The video suggests making the ADX more responsive by adjusting its parameters, such as lowering the signal threshold to 20 and shortening the period to make it more lenient and reactive to market changes.

  • What is the final outcome of the trading strategy presented in the video?

    -The final outcome of the trading strategy is an over-achievement of the initial goal, with the strategy turning a thousand dollars into 17.4 million dollars.

  • What are the two key takeaways emphasized in the video?

    -The two key takeaways are the utility of Chat GPT for strategy development and the empowerment it provides to traders, and the importance of leveraging tools like Chat GPT to stay competitive in trading.

Outlines

00:00

🚀 Introduction to Developing Bitcoin Trading Strategies with Chat GPT

The speaker introduces a project to develop a Bitcoin trading strategy using OpenAI's Chat GPT to turn a thousand dollars into over a million. Despite not preparing for the video, they demonstrate how Chat GPT can be used to create an outline or introduction. The tutorial aims to show viewers how to use Chat GPT to develop custom trading algorithms without programming knowledge, appealing to both experienced traders and beginners. The speaker highlights the accessibility of Chat GPT in creating profitable trading strategies based on backtesting.

05:01

💻 Exploring TradingView and Pine Script for Strategy Development

The video moves on to using TradingView, a popular online trading platform, to develop the trading strategy. The speaker guides viewers on how to access the Pine Script editor and use the strategy tester. They emphasize the simplicity of coding with Chat GPT, which can translate natural language into executable code. The speaker then demonstrates how to use Chat GPT to create a basic long-only trading strategy using a 50-day Simple Moving Average (SMA) in Pine Script V5. However, they encounter errors when trying to compile the code, highlighting the need for troubleshooting and understanding the code.

10:02

🔍 Refining Strategies with Chat GPT and Public Library Resources

The speaker discusses the importance of being explicit when asking Chat GPT to create a trading system. They suggest using Chat GPT to research and understand existing strategies, then iterating upon them. An example is given where the speaker copies a strategy from TradingView's public library, asks Chat GPT to explain the Pine script, and then modifies it to suit their needs. The video demonstrates how to transform a long-short strategy into a long-only strategy by using Chat GPT to close long entries instead of going short.

15:04

📈 Optimizing Strategy Performance and Setting Trading Parameters

The focus shifts to optimizing the trading strategy's performance. The speaker explains how to use the strategy tester to analyze the equity curve and identify issues such as losing money on the short side. They modify the strategy to be long-only and demonstrate how to set initial capital, margin calls, and the amount of equity used in the strategy. The speaker also discusses the importance of understanding how much leverage is being used and how to simulate margin calls using Pine Script.

20:06

📊 Incorporating Technical Indicators to Improve Trading Strategy

The speaker aims to improve the strategy by identifying overextended prices and market trends using technical indicators like RSI and ADX. They show how to integrate these indicators into the Pine script and use Chat GPT to understand and modify the code accordingly. Despite facing challenges with the ADX indicator, they persist in optimizing the strategy. The video concludes with a successful backtest, showing a profit of over 17 million dollars,远超 the initial goal. The speaker emphasizes the importance of using tools like Chat GPT and warns against over-optimization.

Mindmap

Keywords

💡Chat GPT

Chat GPT, as referenced in the video, is a powerful language model developed by OpenAI that can understand and generate human-like text based on the prompts given to it. In the context of the video, it is used to create a Bitcoin trading strategy without the need for programming experience. The video demonstrates how Chat GPT can be instructed to develop an outline or introduction for a tutorial, showcasing its utility in content creation and strategy development.

💡Bitcoin trading strategy

A Bitcoin trading strategy refers to a systematic approach to buying and selling Bitcoin with the goal of making a profit. The video aims to develop such a strategy using Chat GPT, highlighting the potential for artificial intelligence to assist in financial decision-making. The strategy involves using technical indicators and algorithms to determine when to enter and exit trades, which is a common practice among traders to maximize gains and minimize losses.

💡TradingView

TradingView is mentioned as the world's most popular online trading platform in the video. It is used for charting the price of various assets, including cryptocurrencies like Bitcoin. The platform offers features like community tabs, news feeds, custom indicators, and mobile alerts. In the tutorial, TradingView's strategy tester and Pine Script editor are utilized to test and implement the trading strategies developed with Chat GPT.

💡Pine Script

Pine Script is a domain-specific language used on the TradingView platform to create custom technical analysis indicators and strategies. The video emphasizes the use of Pine Script in conjunction with Chat GPT to develop and modify trading algorithms. It demonstrates how to integrate code generated by Chat GPT into the Pine Script editor for backtesting trading strategies on TradingView.

💡Backtesting

Backtesting is the process of testing a trading strategy on historical data to evaluate its potential performance. The video discusses the importance of backtesting in the context of developing a Bitcoin trading strategy using Chat GPT. It shows how to use TradingView's strategy tester to simulate the performance of the strategy on past market data, which is crucial for understanding how the strategy might perform in real trading conditions.

💡Technical indicators

Technical indicators are statistical tools used by traders to analyze and predict the price movements of financial instruments. The video script mentions several indicators like the 50 SMA, RSI, and ADX, which are used to build the trading strategy. These indicators help in identifying trends, overbought or oversold conditions, and potential reversal points in the market.

💡Overbought and oversold

Overbought and oversold are terms used in trading to describe a security's price that has risen or fallen sharply, indicating that it may be due for a reversal. The video discusses using the RSI indicator to identify overextended price conditions, which can signal potential trend reversals. By incorporating this into the trading strategy, the aim is to avoid entering trades during extreme market conditions.

💡ADX (Average Directional Index)

The ADX is a technical indicator used to measure the strength of a trend, not its direction. In the video, it is considered for inclusion in the trading strategy to help determine whether the market is in a strong trend or a ranging condition. The script mentions adjusting the ADX settings to make the strategy more responsive to market movements, which is essential for improving the strategy's performance.

💡Long-only strategy

A long-only strategy is a trading approach where the trader only takes long positions, meaning they only buy assets expecting the price to rise. The video script describes modifying the strategy to be long-only by closing long entries instead of going short, aiming to capitalize on upward price movements while avoiding losses from downward movements.

💡Over-optimization

Over-optimization occurs when a trading strategy is excessively fine-tuned to historical data, which may reduce its effectiveness in future, unseen market conditions. The video concludes by cautioning about the risks of over-optimization, suggesting that while the strategy developed with Chat GPT performed exceptionally in backtesting, it's important to be aware of the potential pitfalls when applying such strategies to live trading.

Highlights

The video aims to turn $1,000 into over $1 million using OpenAI's Chat GPT to develop a Bitcoin trading strategy.

Chat GPT can create an outline or introduction without prior preparation by the user.

Chat GPT can translate natural language into computer code for trading strategies.

Non-traders can use Chat GPT to generate a momentum strategy with specified parameters.

TradingView is introduced as a platform for charting and backtesting trading strategies.

Pine script in TradingView is used for coding trading strategies.

Chat GPT's ability to explain its code and provide well-commented scripts is highlighted.

The video demonstrates how to use Chat GPT to create a simple long-only trading strategy using the 50 SMA.

Chat GPT's strength lies in improving upon existing content rather than creating from scratch.

The public library of strategies on TradingView can be iterated or improved upon using Chat GPT.

Chat GPT can explain Pine script code to help users understand trading strategies.

The video shows how to modify a strategy to be long-only instead of long-short to improve performance.

The strategy tester in TradingView is used to analyze and optimize the trading strategy.

Chat GPT is used to identify technical indicators that can identify overextended prices.

RSI andADX indicators are incorporated into the strategy to avoid overextended and ranging markets.

The video concludes with a strategy that turned $1,000 into $17.4 million, demonstrating the potential of using AI in trading.

The importance of using AI tools like Chat GPT in trading is emphasized for both novices and experienced traders.

The video serves as a cautionary tale against over-optimization in trading strategies.

Transcripts

play00:00

hello everyone today we're going to take

play00:01

a thousand dollars and turn it into over

play00:03

more than one million by using open ai's

play00:06

chat GPT to develop a Bitcoin trading

play00:10

strategy for us there's only one problem

play00:12

is that I didn't prepare for this video

play00:14

but then again why would I I can just

play00:16

pass chat GPT to create an outline or an

play00:20

introduction for me let's see how it did

play00:22

hi there and Welcome to our tutorial on

play00:24

using chat GPT to develop trading

play00:26

strategies in this video I'll be showing

play00:29

you how to use chat gbt a powerful

play00:31

language model developed by open AI to

play00:33

create custom trading algorithms without

play00:35

any programming experience whether

play00:37

you're a seasoned Trader looking to

play00:39

automate your trading strategy or

play00:40

complete beginner looking to learn about

play00:42

trading this video is for you so sit

play00:44

backs and and relax and get started with

play00:48

chat GPT so pretty darn good right so

play00:50

essentially we can use natural language

play00:52

or simply ask the computer something it

play00:55

can then take that something and

play00:58

translate it into computer code and give

play01:00

us an answer back now in regards to

play01:02

trading we can have non-traders ask hey

play01:06

give me a momentum strategy using these

play01:08

parameters and it'll do it for us and

play01:10

you can actually use tools like training

play01:12

view which already has the data and

play01:14

everything built in to test it for this

play01:16

channel typically I'm building databases

play01:18

by doing python all this other stuff and

play01:20

sometimes that's not very accessible to

play01:22

many Traders but this really opens up

play01:26

the door for anyone who wants to be able

play01:28

to create a profitable trading strategy

play01:30

based on back test and in this video I'm

play01:32

going to teach you exactly how to do

play01:34

that so that way you have confidence

play01:36

when going into your future trades

play01:38

now the first thing that we're going to

play01:39

want to do is go over to tradingview.com

play01:42

tradingview.com is the world's most

play01:44

popular online trading platform you can

play01:47

chart pretty much the price of anything

play01:48

but there's also Community tabs there's

play01:51

news feeds there's also custom

play01:53

indicators and even mobile phone alerts

play01:55

but for our intents and purposes we are

play01:58

going to be using the strategy tester

play02:00

and coding in Pine script so you want to

play02:03

go down here and click on the pine

play02:04

editor here you may see a blank strategy

play02:07

if you don't just go to open and then

play02:09

click create new strategy and here will

play02:11

be the boilerplate code but again don't

play02:13

worry we're not really going to be doing

play02:15

the coding chat GPT we'll be doing that

play02:18

coding for us so let's head back over to

play02:20

chat GPT and create our first trading

play02:22

strategy now the biggest challenge any

play02:25

new user of chat GPT or any other NLP

play02:28

model is going to face when creating a

play02:30

trading system is articulating exactly

play02:32

what they want if you want a 50-day

play02:34

simple moving average you have to tell

play02:36

chat GPT that it cannot read your mind

play02:38

if you want chat gbt to give you a

play02:41

trading strategy using a crossover of

play02:43

the 12 and 26 EMAs well fantastic but

play02:46

you have to be explicit about it in our

play02:48

case we want to start off as simple as

play02:50

possible so I'm going to tell chat GPT

play02:52

exactly that right give me an extremely

play02:56

simple long-only trading strategy that

play03:00

uses the 50 SMA

play03:03

in Pine script V5

play03:08

and now the great thing about chat GPT

play03:10

is it'll actually explain what it's

play03:13

doing and then provide you the code

play03:15

sometimes the explanations at the top

play03:17

sometimes at the bottom and usually it's

play03:19

well commented so we're going to copy

play03:21

this code and then we're going to take

play03:22

it into trading View and run it now all

play03:25

we need to do to get this code to

play03:27

compile is paste it into the pine editor

play03:30

and click save if you don't have your

play03:31

Pine editor open you'll want to click

play03:34

the pine editor down at the bottom of

play03:36

your screen here and then if you don't

play03:38

see any code here click open and create

play03:41

new strategy and this is the boilerplate

play03:43

strategy now we can go ahead and paste

play03:46

all of our code from chat EPT here click

play03:50

save and unfortunately we'll just call

play03:53

this a chat GPT Bitcoin strategy

play03:58

it doesn't work it says try to add this

play04:01

or that so let's undo this I know it

play04:04

doesn't have this strategy code here

play04:07

which we we need for it to run so I'm

play04:09

going to paste the code under here and

play04:12

then click save and we're going to start

play04:13

seeing more errors because we're not

play04:15

using ta now you're going to say wow I

play04:19

thought that chatgpt was going to be the

play04:21

new thing and now I have to like figure

play04:23

out how to code I have to troubleshoot

play04:25

all this well

play04:26

no you don't there's actually a better

play04:28

way to do this now it's essential to

play04:30

understand that chat GPT is good at

play04:32

creating code or content from scratch

play04:35

but it's much much better at taking

play04:37

existing content such as you know

play04:40

natural language or code and improving

play04:42

upon it we use chat EBT to kind of

play04:45

research an idea of what we want and

play04:47

then we can go to the public library of

play04:50

strategies provided by training View and

play04:53

iterate or approve upon it so you can

play04:55

see here I can click on this bar up down

play04:58

strategy and you know it looks like it's

play05:01

losing some money but you know maybe

play05:03

this is something that we're interested

play05:04

in we can go up here click the brackets

play05:08

here for the source code

play05:10

take this

play05:12

copy it go back to chat GPT say please

play05:16

explain this

play05:19

Pine script through me

play05:23

and it will actually tell you what it

play05:26

does so if you have a question on how a

play05:28

strategy works because you don't

play05:29

understand the code yet you can use chat

play05:31

GPT and one crazy thing that happens is

play05:34

after you do this for a while you'll

play05:36

actually be able to read this code now I

play05:39

don't want to use this bar up down

play05:41

strategy let's take a look at some other

play05:42

strategies here's some Bollinger band

play05:44

strategy so I'm going to look for a few

play05:46

or strategy that actually performs well

play05:49

you know

play05:50

you know that's a almost one percent

play05:53

stochastic

play05:55

super Trend okay so it looks like we got

play05:58

a winner the super trend is up

play06:00

478 percent so we'll start with the

play06:03

super Trend indicator to see if we can

play06:05

get it to over a million so we'll click

play06:08

on indicators

play06:10

go to super Trend and here we have it

play06:12

and now we can go ahead and grab this

play06:14

code

play06:17

I'll say I'm just hitting Ctrl a and

play06:19

Ctrl C or you can select the whole thing

play06:21

cut copy and I'm going to go to open

play06:25

strategy

play06:26

I'm going to then paste this save it and

play06:30

I'm going to call it super trend

play06:33

Bitcoin strategy and click save we need

play06:37

to get an understanding of the super

play06:38

Trend strategies return profile when

play06:41

trading Bitcoin we know that when we

play06:43

went to the indicator library and

play06:44

selected strategies that it was one of

play06:46

the best performing strategies if not

play06:48

the best performing strategy available

play06:49

to us but without actually looking at

play06:52

the returns we don't know how to

play06:54

optimize it we can do that by going to

play06:57

strategy tester we can see an overview

play06:59

here where we can see a pretty nice

play07:01

Equity curve a pretty large drawdown you

play07:04

know we've got 52 average bars in a

play07:07

trade with 79 total closed trades and 44

play07:09

be profitable if we go to Performance

play07:12

summary we can see a glaring issue that

play07:14

we can potentially fix I'll zoom in to

play07:16

make it a little easier to see but

play07:18

basically we're making a lot of money on

play07:21

the long side and losing a lot of money

play07:23

on the short side now not only are we

play07:26

losing this money but it's not available

play07:28

to us on the long side to compound so

play07:30

what we'll do is we'll change this

play07:32

strategy from a long short strategy to a

play07:36

long only we can do that by going to the

play07:38

Pine editor selecting all of this Ctrl a

play07:41

and control C or you know selecting all

play07:43

of it and clicking copy and then what

play07:45

we're going to do is we're going to go

play07:47

to chat GPT and ask it to close the

play07:51

position whenever the super Trend

play07:53

strategy changes Direction instead of

play07:57

shorting so let's reiterate that to chat

play07:59

GPT we'll say update the following

play08:01

hindscript to close long entries

play08:06

instead of going short then I'll paste

play08:09

the code and henceforth I'm going to

play08:11

just show you what I type into chat GPT

play08:13

and then I'll fast forward to the output

play08:15

so I'm not wasting your time we'll take

play08:17

the code we'll copy it and then we'll

play08:19

paste it back into trading View Press

play08:21

Ctrl a in the pine editor then Ctrl V to

play08:24

paste it we see that our code is updated

play08:27

we then press save to try to compile it

play08:29

we don't see any errors which is

play08:31

fantastic which means we think that chat

play08:34

GPT successfully changed our code simply

play08:37

by us giving it Direction now let's

play08:39

validate that these strategy results are

play08:41

improved we should see that there are no

play08:43

losses on the short side or even no

play08:45

trades on the short side we go to the

play08:47

strategy tester we then can look and see

play08:50

that our strategy did change we now have

play08:52

a 55 percent win percentage and

play08:55

underperformance summary we don't see

play08:57

any short losses now I promised you that

play09:01

we're going to take a strategy from 1

play09:03

000 to well over 1 million so now what

play09:05

we're going to do do is update the

play09:07

initial Capital to see how far away from

play09:10

that Target we are

play09:13

but we're not going to use chat GPT for

play09:15

this because I don't want to do you a

play09:17

giant disservice recall earlier that I

play09:19

said the most challenging thing a new

play09:21

Trader will encounter when trying to

play09:24

create a trading strategy with an NLP

play09:26

model like chat GPT is articulating

play09:28

exactly what they want and if you're not

play09:31

able to at least get the information out

play09:33

of pinescript that you need you're not

play09:36

going to be able to design the trading

play09:38

system that you want but don't worry all

play09:41

you need are two fingers right it's not

play09:44

difficult you can see these blue

play09:46

keywords remember we're taking existing

play09:49

strategies and indicators out of the

play09:50

library pasting what we want or asking

play09:52

Chachi PT to modify them and then what

play09:55

we can do is find these blue keywords we

play09:57

just press control and click and we'll

play09:59

pull up the pine script reference manual

play10:02

and then you can see all of these

play10:03

various properties and scroll down and

play10:06

get the information that you need so

play10:09

what we need to do is we need to set

play10:11

that initial capital and we also need to

play10:13

be able to set up Margin calls because

play10:15

we can't just leverage without any

play10:17

margin calls and understand how much

play10:19

Equity that we're going to use now I

play10:21

already understand this information so

play10:23

I'm not going to waste your time here

play10:24

but we'll just run through one because I

play10:27

want you to get comfortable with this so

play10:28

we'll go and look at the margin long

play10:30

property here it is and it says margin

play10:33

long is a percentage of the purchase

play10:35

price of a security that must be covered

play10:37

by cash or collateral for long positions

play10:39

must be a non-negative number right that

play10:42

makes sense and it's used to simulate

play10:44

margin calls and explained in The Help

play10:46

Center so you can click on that if you

play10:48

want more information but let's go ahead

play10:50

and now set the initial Capital the

play10:52

Margin Call and the amount of capital

play10:54

used

play10:55

so take initial Capital I'll copy this

play10:59

and this is getting pretty long so I'm

play11:01

going to press comma hit enter tab space

play11:05

paste the initial Capital we want a

play11:07

thousand we also want the default

play11:10

quantity value to be a hundred and then

play11:13

we also want margin long

play11:18

now obviously we've got some exchanges

play11:20

that offer 1 to 100 leverage we'll just

play11:22

do one to ten and then what we'll do is

play11:24

we'll save this and we'll see how this

play11:27

adjusted our strategy we'll open the

play11:29

strategy tester and we'll see that

play11:31

overview looks like we've already taken

play11:33

a thousand dollars in capital to over

play11:36

2.3 million so if we met our goal I

play11:39

don't want to stop here I don't know

play11:40

about you there's a lot more that I want

play11:42

to talk about so we'll change the 1000

play11:45

to 1 million dollar trading strategy to

play11:47

the 1 000 to 10 million dollar Bitcoin

play11:51

trading strategy now how can we improve

play11:54

upon this strategy well if I look here

play11:56

when we're looking at this Equity curve

play11:58

it's going up and then we start to see

play12:00

some downward movement here if I click

play12:03

on this we can see here that Bitcoin I'm

play12:06

going to zoom out a little bit we can

play12:08

see that we're in a pretty good uptrend

play12:10

and it looks like we're you know we're

play12:12

also losing money on this this downtrend

play12:15

here so there's two things that I want

play12:17

to resolve the first is we want to not

play12:21

be in Bitcoin when it's over extended

play12:24

and secondly when the trend is down we

play12:29

want to exit right so let's go ahead and

play12:31

use chat sheet PT our friendly research

play12:34

assistant to figure out how we might be

play12:36

able to do that now it seems like chat

play12:38

gbt is experiencing some exceptionally

play12:40

high demand let's hope it gives us the

play12:42

answer we're looking for anyways we will

play12:45

ask for quick answers and we'll say give

play12:47

me a list without descriptions

play12:51

of technical indicators that are

play12:54

excellent

play12:55

or identifying

play12:59

over extended prices

play13:02

hopefully it'll give us a few all right

play13:03

so RSI stochastic oscillator Williams

play13:06

Bollinger Bands perfect we'll use the

play13:08

RSI and our strategy to identify

play13:10

overextended prices so what I'll do is

play13:12

I'm going to go up here and edit this

play13:15

and say give me a list without

play13:16

descriptions of technical indicators

play13:19

that are excellent for identifying

play13:23

when a market is trending

play13:27

and click save and submit and we'll see

play13:29

what happens moving average RSI

play13:30

Bollinger Bands macd parabolic SAR

play13:33

Fibonacci retracement all of these okay

play13:36

we've got the adx so what we'll do is

play13:38

we'll use the RSI to identify over

play13:41

extended prices and we'll also use the

play13:43

adx to determine whether or not we're

play13:46

ranging or trending and fit that into

play13:48

our strategy to see if we can get up to

play13:51

that or maybe even surpass that 10

play13:53

million dollar mark we'll start by

play13:55

adding the RSI and potentially get us

play13:57

out of overextended Trades we see that

play14:00

the RSI is already charted up here and

play14:02

we can be absolute maniacs and click on

play14:04

the source code here copy all this and

play14:06

paste it into our Pine script or ask

play14:08

Chachi BT to massage this code into our

play14:11

existing strategy but that is way way

play14:12

way too difficult there's a much better

play14:14

method let's open up our previous

play14:16

strategy we'll click open you can use

play14:19

either the recently used or go to my

play14:21

script here I see the super Trend

play14:23

Bitcoin strategy I'm going to click on

play14:25

that and remember I said you can access

play14:27

everything that you need to access by

play14:29

control clicking on any keyword which is

play14:32

highlighted in blue essentially it'll

play14:34

pull up the pine script reference manual

play14:35

if for some reason you don't want to

play14:37

access it that way you can always click

play14:39

this triple Dots here and click the pine

play14:42

script reference pop-up now I want to

play14:44

know about the RSI so I'll just type in

play14:46

RSI we see it as the first result which

play14:49

is already being displayed and it tells

play14:52

you everything that you need to know

play14:53

about the RSI if you have questions you

play14:56

can literally copy and paste this in the

play14:58

chat GPT and explain it to you I'm going

play15:01

to copy this code right here we'll use

play15:04

the close as the source and the length

play15:06

you know we'll use probably a little bit

play15:08

longer because I want to try to capture

play15:10

you know make sure that there's room to

play15:12

run so what we'll do now is we'll scroll

play15:14

down to where we enter

play15:17

now we could ask Chachi PT to do this

play15:19

for us but it is having some bandwidth

play15:21

issues at the moment and you really

play15:22

should get into the habit of being able

play15:24

to read basic Pine script we'll say and

play15:27

right so it has to have this direction

play15:29

change and I'll paste this to TA dot RSI

play15:33

close price and the is the value we're

play15:37

going to calculate this off to close and

play15:39

we'll say you know what 21 is less than

play15:43

66. so we're saying that you know we

play15:45

don't want to be overbought on a longer

play15:48

term time frame but you know what I also

play15:50

want to make sure that we're getting in

play15:52

to the trade whenever there's a very

play15:56

high RSI on the shorter time frame which

play15:58

will essentially sort of mimic a

play15:59

breakout and some serious buying

play16:01

pressure we'll say close 3 is greater

play16:05

than 80. now what I'm going to do is I'm

play16:06

going to save this then we'll check the

play16:08

results and we'll see if this solved the

play16:11

issue with getting into and you know

play16:14

getting out of I should say overextended

play16:16

trades and then we'll see how we can

play16:17

prove this strategy likely using the adx

play16:20

to determine you know that downtrend and

play16:22

getting out of that so I'm going to save

play16:23

now and check out the results so go to

play16:26

the strategy tester we see our overview

play16:28

and it looks like we've made some

play16:30

progress but I'm starting to get a

play16:32

little nervous right so we're at three

play16:34

million in profits we're not at 10

play16:36

million plus yet I don't know if I'm

play16:38

going to be able to get get us there but

play16:40

I'm going to try my hardest we can see

play16:42

that the equity curve is you know

play16:44

fantastic and then all of a sudden we

play16:46

have this drop off so click on this

play16:47

again just to analyze it one more time

play16:49

you know it looks like uh you know this

play16:52

downtrend is really eating us up and

play16:54

also this sideways action right so we'll

play16:56

use RSI to try to negate some of this

play17:00

downward pressure and then also use the

play17:02

adx to make sure that we're trending and

play17:04

not uh you know getting chopped up so

play17:07

the way we'll do that is we'll go back

play17:08

to the Pine editor and now the 80 well

play17:11

let's first start off with the RSI

play17:13

that's easy to do what we'll do is we'll

play17:15

just add a longer RSI duration and say

play17:18

that we have to be above you know 49

play17:20

meaning that there's some buying

play17:22

pressure and we're not constantly having

play17:23

lots of cell pressure so we'll say ta

play17:26

oops and ta dot RSI

play17:29

use the close price we'll say

play17:33

close we'll say 28 you know four weeks

play17:35

is greater than 49 and then what we'll

play17:38

also do is we're going to actually we'll

play17:41

save that you know we'll save that now

play17:43

and we'll check out our results and see

play17:45

what happens here to see if we get rid

play17:47

of some of that downward action and then

play17:49

we'll handle the chop

play17:51

click on the strategy tester and oh man

play17:54

we're so close we went from you know

play17:56

three million and change to 5.3 we're

play17:58

now at a two-thirds win percentage and

play18:01

we've still got a little bit of room for

play18:03

improvement hopefully that'll get us

play18:04

over that 10 million dollar Mark we can

play18:06

go to the Pine editor uh click on

play18:09

control click on any one of these

play18:10

keywords so we can use input if we want

play18:12

and you'll notice it just pulls up input

play18:14

so whatever we're control clicking on

play18:16

it'll pull up and then we're going to

play18:17

type in adx

play18:19

and you'll notice that unlike the RSI we

play18:21

don't see it so what we'll do is we'll

play18:23

go to the indicators metrics and

play18:26

strategy to click on this go to

play18:28

technicals and then we'll search for the

play18:30

adx and you'll see here when we click on

play18:33

average directional index adx it'll come

play18:35

up on our charts we can click on the

play18:37

source code and now what we'll do is

play18:39

we'll copy all of this we don't need

play18:42

indicator we'll just copy this you only

play18:45

need one indicator or strategy and then

play18:47

we'll go back to our original strategy

play18:51

which is the super Trend Bitcoin

play18:53

indicator I'm going to paste it you can

play18:55

paste it pretty much anywhere above you

play18:58

know where we're going to use it here

play18:59

I'm going to paste it in here I don't

play19:02

want to plot it

play19:04

we can ask chat GPT and maybe we will

play19:06

after this if we don't get it the whole

play19:09

way what exactly this code is doing but

play19:11

I know that the Sig is the signal and

play19:15

you know we want it to be relatively

play19:17

trending so we'll say and Sig is greater

play19:20

than 30. and hit save and we'll see if

play19:24

we get it there

play19:25

come on baby oh no we went from millions

play19:30

and millions to 62 000 yeah uh I guess

play19:33

what are we gonna do now all right well

play19:34

I think obviously that adx really messed

play19:37

us up but maybe we should ask Chachi PT

play19:40

how we can make it better right so we'll

play19:42

say chat GPT how can we make the adx

play19:48

more responsive right so clearly it took

play19:52

us out of too many trades now I know

play19:54

that you know and you can ask Chachi PT

play19:57

this come on I know that you're you're

play19:59

you're getting hit with all sorts of

play20:00

requests but this is really important uh

play20:03

give us an answer I know that uh the adx

play20:06

strong trend is above 30 and a weak

play20:08

Trend typically is above 20. so we'll

play20:10

make it more lenient and we'll also do

play20:13

what Chachi BT tells us to we'll shorten

play20:16

the period uh and uh you know make it

play20:19

more responsive and hopefully hopefully

play20:21

that'll get us there so we'll go to the

play20:22

Pine editor we'll go first down to to

play20:26

the signal here will make it 20 to give

play20:28

us you know to get us into more trades

play20:31

and then we'll change this input length

play20:34

how about we just cut it in half

play20:36

and I'll click save and cross our

play20:40

fingers because there's not much more

play20:42

left in this YouTube video

play20:44

come on come on oh we're 6.5 million

play20:49

we're so close

play20:50

all right one one final thing we'll see

play20:53

uh we'll see what happens here let's

play20:55

change this you know percent that we're

play20:57

betting to 120. we'll hit save and I

play21:00

think this is it guys let's see if that

play21:03

last ditch effort worked and yes it did

play21:05

we're in 17.4 million dollars not only

play21:08

did we beat our initial goal of taking 1

play21:11

000 to over a million dollars we then

play21:13

had a stretch goal of taking a thousand

play21:15

over to 10 million dollars let me

play21:17

crushed that it's 17.4 million dollars

play21:20

this is a fantastic video in what's

play21:22

called over optimization and you can use

play21:24

chat GPT to look that up if you have if

play21:27

you're not sure what that means but this

play21:28

video is about two Super Key takeaways

play21:31

first Chachi PT is here to stay you need

play21:34

to use these tools otherwise you're

play21:36

going to fall behind you can be a no

play21:39

programmer or a novice programmer and

play21:42

actually back test strategies now you

play21:44

don't have to just listen to someone on

play21:46

Twitter and hope and pray that that

play21:48

works right that's what my blog is about

play21:50

analyzing Alpha is about finding these

play21:53

amazing Traders and investors that are

play21:55

somehow kicking the crap out of the

play21:57

markets and determining how they

play21:59

actually did that and now you are

play22:01

empowered to be able to do this yourself

play22:03

so this is fantastic and secondly for

play22:06

experienced Traders it's amazing you

play22:08

have all of this wealth of knowledge at

play22:10

your fingertips so hopefully this video

play22:12

was worthwhile to you I think it was a

play22:15

17.472 million dollar knowledge bomb

play22:17

everyone should be using chat GPT in

play22:20

some way and both in their personal

play22:22

lives in their trading and I hope to see

play22:24

you in the next one thanks goodbye

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
AI TradingBitcoin StrategyChat GPTTradingViewPine ScriptOver OptimizationTrading AlgorithmMarket AnalysisFinancial TechInvestment Tips
¿Necesitas un resumen en inglés?