
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello everyone I am new here. I kindly need help on how to use a demo trader account. I am new to this
Find Metatrader broker (there are a lot of Metatrader brokers, use google to find), and open the account according to their condition on their websites.
Try with demo first.
1. The article - MQL5.community - User Memo
2. MetaTrader 5 Help - Open an Account
3. Where Do I start from?
https://www.mql5.com/en/forum/212020
4. MetaTrader 5 Help - Trading Platform — User Manual
5. How to make a search on the forum
https://www.mql5.com/en/forum/193510
6. Find a Server by the Broker's Name:
https://www.mql5.com/en/forum/214820
Help you with what? Only your broker can do anything with your account.
Amazing RSI trading bot in mql5! | MT5 programming
Amazing RSI trading bot in mql5! | MT5 programming
Hey, this is Toby, and today I'll show you how to code a strategy with a 100% win rate. In this tutorial, we'll modify an existing Expert Advisor (EA) and add a filter to the RSI indicator. I'll guide you through the coding process step by step. Let's get started!
Step 1: Setting Up the Strategy We'll be working in the MetaEditor. Open the EA we created in the previous video. If you haven't watched it yet, I'll link it for you to catch up. Save the file with a new name, such as "RSI_MA_Filter_EA".
Step 2: Modifying the Inputs To implement the filter, we need to add a moving average period input. We'll also include an input for the time frame on which the moving average runs. We'll keep the stop loss, take profit, and opposite signal inputs as they are.
Step 3: Adjusting Global Variables In the global variables section, we need to rename the handle and buffer for the RSI indicator to differentiate them from the moving average. We'll add a handle and buffer for the moving average. Additionally, we can remove unnecessary variables related to open time buy and open time sell.
Step 4: Making Changes in the onInit Function In the onInit function, we'll add a check for the moving average period input. We'll also modify the RSI handle to use the price open instead of price close. Then, we'll create the handle and buffer for the moving average indicator.
Step 5: Updating the Untick Function Within the untick function, we'll first check if the current tick is a new bar open tick. If not, we'll return and wait for the next bar open tick. We'll add a custom function to perform this check. Then, we'll retrieve the values for the moving average and store them in the buffer. We'll also adjust the conditions for opening buy and sell positions to include the moving average filter.
Step 6: Compiling and Testing After making all the necessary changes, we'll compile the code to check for any errors. If everything compiles successfully, we can proceed to test the EA in the strategy tester. We'll run a visual test using historical data from 2012 to the present, selecting appropriate inputs for RSI and moving average periods, stop loss, take profit, and the option to close trades on an opposite signal.
By following this tutorial, you've learned how to code a strategy with a 100% win rate. We modified an existing EA and added a moving average filter to the RSI indicator. Remember to save your file and compile it without any errors. You can now test the strategy in the MetaTrader 5 platform using the strategy tester. Good luck with your future coding endeavors!
unresolved extern variable 'a'
WHY?? Please help me, thanks
Is this MQL4 or MQL5? Is this ChatGPT generated code?
On MQL5, "extern" has a different meaning. You probably meant to use "input" instead.