This is the simple trading strategy that ChatGPT created for me!
TradingView keeps removing it, so here is a way to get around that.
First, go into TradingView and on the bottom right you need to click this arrow to pop up the editor.
Then, look at the bottom left for “Pine Editor” click on it and if there is already code there you delete it.
Then you copy this code and paste it there:
Copy & Paste is not allowed on my website, so I put it in a google doc for you. Just click this link to open the google doc.
strategy(“ChatGPT Strategy by Trade with Pat”, overlay=true)
fastLength = input(12, minval=1)
slowLength = input(26, minval=1)
signalLength = input(9, minval=1)
// Compute MACD
macd = ema(close, fastLength) – ema(close, slowLength)
signal = sma(macd, signalLength)
// Plot MACD and signal line
plot(macd, color=color.blue, linewidth=1)
plot(signal, color=color.orange, linewidth=1)
// Buy/Sell Signals
buy = crossover(macd, signal)
sell = crossunder(macd, signal)
// Plot Buy/Sell Signals
plotshape(buy, color=color.green, style=shape.triangleup, location=location.belowbar)
plotshape(sell, color=color.red, style=shape.triangledown, location=location.abovebar)
Then click on “Add to chart” and there you have the indicator that plots red and green arrow for buy/sell signals.
I hope you enjoy the video, the strategy, and that you use it properly. That means you backtest it, learn it and add in proper price action to increase your chances of winning.
at least make a video is possible so everyone can understand how its really works
The chart view becomes completely flat when i enter the code. Must be doing something wrong but i cant figure it out. I’m fairly new to Forex trading
were you able to solve this. because i am facing the same issue.
The pine editor shows error in script
Try the new edited version, just added to the google doc
hey bro the indicator still dissapears when I hit add to chart it appears for a second then its auto removes ?
Maybe try the new edited version in the google doc
worked. cheers.. still weird tho. the indicator is on my chart now but It still will not show up in the indicator drop down menu at all…? weird
I don’t think it will show in that drop down menu this way.
Maybe a stupid quesiton, but how can we copy the text on the site? Can’t highlight it!?
I added a link to a google doc you can copy from.