cpc69

ChatGPT Simple Scalper

cpc69 Updated   
PEPPERSTONE:NAS100   US 100 Cash CFD
Hi All,

I used the ChatGPT Open Source Ai bot for the first time. What a pleasant experience it was too!

I asked it to create a simple scalper for trading financial markets and it produced an SMA based crossover strategy. The code is simple enough to update with profit set to 6pips and stoploss set to 20, which sounds like a dreadful R:R.

Oh yeah...its 100% accurate.

All feedback welcome and feel free to play with the code, add,change whatever.

It works best (for me) on 1m, 3m and 5m which also has lower drawdowns.

Enjoy!

CPC69
Comment:
1m Timeframe = much better drawdown.

Comment:
FYI, I tested this on the NAS100 and US30 on a 1m timeframe, looks good to me!
For other (non-indice/commodity or cryto) assets you will need to alter the profit target and stoploss in the script, otherwise trades will just open and close straightaway.
Comment:
Currently working on a v2 with trailing take profit and trailing stoploss. this seems to overcome the issue of the strategy getting stuck in a trade which quickly reverses. Initial performance seems to be very strong.
Comment:
// Origial Simple ChatGPT Scapler for CPC69
// @version=5
// Parameters
strategy("Scalping Strategy", overlay=true)
fastMA = input(5, minval=1)
slowMA = input(20, minval=1)

// Indicator
fast = sma(close, fastMA)
slow = sma(close, slowMA)

// Signals
sell = crossover(fast, slow)
buy = crossunder(fast, slow)

// Plotting
plot(fast, color=color.blue, linewidth=2)
plot(slow, color=color.red, linewidth=2)

// Entry and Exit
strategy.entry("Sell", strategy.short, when=sell)
strategy.exit("Buy", "Sell", profit=60, stoploss=200)
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.