Creating a Profitable Trading Bot in MetaTrader with ChatGPT!

preview_player
Показать описание
I will attempt to build an expert advisor in Meta Trader with moving averages by using nothing but ChatGPT to code this robot!

This is obviously educational purposes only. Create your own robots at your own risk and please consult any expert if you plan on running one on a live account.

It is the ultimate trading tool for maximizing your profits. This powerful bot that I will attempt to build uses advanced moving average algorithms to analyze market trends and make profitable trades. It's easy to set up and customize, and can be used for both short-term and long-term trading.

With the Moving Average Robot, you can take your trading to the next level. It's perfect for both novice and experienced traders looking to streamline their trading strategy and make more informed decisions.



[ Timestamps ]

1. Introduction to ChatGPT with trading 00:21
2. Examples of how to use ChatGPT 05:00
3. Meta Trader New Expert Advisor 06:05
4. Writing the strategy in ChatGPT to get code in Meta Trader 06:38
5. Modifying the entry with ChatGPT 26:06
6. Using ChatGPT to code Tradingview Indicator 29:01

Рекомендации по теме
Комментарии
Автор

Modern AI is knowing what to ask and being able to write specific requirements for your requests. The deeper your institutional knowledge, the easier it will be to achieve results with GPT.

mwdcodeninja
Автор

I suggest you play with free version of FX dreema. No coding EA builder and get used to verbiage in the condition boxes so you can communicate better with Chat GPT. Example: If no open buy orders then " condition " then open buy order with Stop and TP and trade size.. Code is an if then sequence. nothing will happen unless prior condition exists. Also 0 candle is current candle and 1 candle is previous candle -Candle 2 is 2 candles back etc.

chekov
Автор

Found your video after I created my script today haha

I set mine to buy USDJPY if a green candle opens and closes above EMA, with trailing stop loss, and sell USDJPY if a red candle opens and closes below EMA. Both are winning strategies as usually if these happen, it will trend up if green, and down if red.

Got some back testing and tinkering to do though.

SakurasWorldOfficial
Автор

We have been testing a code for an EA on MT5 for the 200 EMA still trying got to get the kinks out. But it is a lot of fun

timerichempire
Автор

Thanks for the video, maybe you can help me. I did try to implement your strategy, its working well after some tweeking and errors that chatgpt gladly corrected... minus two small things after multiple try; the currecy pair selection and the time frame. .. chatgpt never give me the right code and the best it does its bringing me to EUR/USD in H1 timeframe when i don't specify the input.

The best code it did gave me so far for this task is this, but it still give me errors

// Set the currency pair and time frame
Symbol("USDCAD");
Period(PERIOD_M5);

The only way i was able to lunch the program was like that:

// Set the currency pair and time frame
Symbol();
Period();

Thanks again for the video keep up with the good work !

lheureuxcarl
Автор

Modify the code in a way that I have only one active open trade.

dfcastro
Автор

No nothing about code & programming but this seems like fun. Asking AI to tweek your strategy. Give it a shot. Thanks.

maxkelter
Автор

i like this i have a fibonnaci stratergy i want to automate

leticiadejavu
Автор

"I can't start my code in MT4; when I press the button, nothing happens! Why?"

denniskrause
Автор

Very helpfull thank you so much🙏 Mas exactly what I needed to start😉🙌
I think after checking this setup, I Will include SRI indicator to help buy and sell orders.

Tempoprecioso
Автор

After pasting the code into editor you should hit compile button to check for errors. What you did doesn't show if there are errors in the program

chekov
Автор

Thank you for the nice video, why don't you use MT5 instead of MT4?

nhienvu
Автор

I personally use NOXABIM. So far so good...

recordmachines
Автор

You were doing well until you confused the issue by moving away from MT4 to Trading view...., but you still get a thumbs up as I learnt a bit.

Mike-London-UK
Автор

Hello, am new in trading, please mentar me on how to know the AI is working right

maccrediewilliams
Автор

if noting else is a great way to test your process.

timerichempire
Автор

I am trying to generate a code for MT5 following the same example but it is not working it is throwing errors. How can I fix that

WCanirinka
Автор

I tried your steps in automating my strategy and the code i received is so different than yours. It doesnt work at all.

THSonGoogle
Автор

Hello again, this is Ruben Valladolid, I would also like to learn how to tell the ChatGPT what to do using MT4 and MT5 and trading view. Could do show me how?

rubenvalladolid-hswr
Автор

i keep getting a event handling function not found on the same code you use any help?

xzanitygames