Log in or register to download unlimited Forex robots!
AutoMagiCal EA
i am giving you an example for this
For example EURUSD first and last killed = URUS
U = 95 R = 86 s = 91 number from ASC II Code caution is not equal to any computer
number = 95869591 while integer maximum 2´147´483´647 take the number in a double
check is bigger then 999´999´999 then make / 10 else its Magic
AutoMagiCal_v2a.mq4 2.27 kb, 39 downloads since 2014-10-08
Join the MT4talk Telegram channel: https://t.me/MT4talkchannel
Join the MT4talk Telegram group: https://t.me/+XcwLRi9oFOJhYjlk
Watch videos from the MT4talk YouTube channel.
https://www.youtube.com/@MT4talkForexForum/videos
thanks for the share. looking forward to testing this. I will check it out. good share
The AutoMagiCal EA is a simple tool that calculates a "Magic Number" for a trading strategy. The Magic Number is an integer used to identify trades opened by an EA, allowing you to manage and differentiate between different automated trading strategies. Let me break down how this EA works and how to use it:
This EA is automatically generate a unique Magic Number for your trading strategy.
Setting It Up:
To use this EA, you need to attach it to a chart in the MetaTrader 4 platform.
It doesn't require any specific inputs or parameters, making it straightforward to use.
How It Works:
When you attach the EA to a chart, it calculates the Magic Number based on the current symbol.
It does this by extracting the first five characters of the symbol name, which is typically a currency pair (e.g., EURUSD).
It then concatenates these characters together into a single string (e.g., "EURUSD").
The EA converts this string into a numerical value (e.g., "EURUSD" becomes a number like 123456).
It divides this number by 1000 to ensure the Magic Number is within the acceptable range (usually between 1 and 32767).
Finally, it sets this Magic Number for the trading strategy.
Displaying the Magic Number:
The EA also creates a label on the chart to display the calculated Magic Number.
The label includes the Magic Number value and its position on the chart.
If the Magic Number is successfully calculated and not equal to zero, it displays the number.
If there is an error (e.g., unable to calculate a Magic Number), it displays an error message.
In summary, AutoMagiCal is a simple tool that automatically generates a Magic Number for your trading strategy based on the current symbol's name. It creates a label on the chart to display the Magic Number, and if the calculation is successful, it allows you to use this Magic Number for managing and tracking your trades. It's a useful tool for traders who want to keep their trading strategies organized and separated when using multiple EAs.
-----------------------------------------------------------------------------------------------------------------------------------
The AutoMagiCal v2a EA appears to be an improved version of the previous AutoMagiCal EA. Let's compare it to the previous version and explain its functions:
Just like the previous version, the purpose of this EA is to automatically generate a unique Magic Number for your trading strategy.
Setting It Up:
Similar to the previous version, you need to attach this EA to a chart in MetaTrader 4.
It doesn't require any specific input parameters, making it easy to use.
How It Works:
When you attach the EA to a chart, it calculates the Magic Number based on the current symbol's name.
Instead of using the first five characters of the symbol name, it extracts characters from position 1 to 4 (skipping the first character).
It then concatenates these characters into a single string (e.g., "EURUSD" becomes "URUS").
The EA converts this string into a numerical value (e.g., "URUS" becomes a number like 1234).
If the calculated number is greater than 999,999,999, it divides it by 10 to ensure it falls within the acceptable range for a Magic Number.
If the number is still greater than 9,999,999,999, it divides it by 100.
Finally, it converts this number to an integer Magic Number and displays it on the chart.
Displaying the Magic Number:
The EA creates a label on the chart to display the calculated Magic Number.
If the calculation is successful, it shows the Magic Number.
If there's an error in the calculation, it doesn't display an error message, which means it's more forgiving than the previous version.
In summary, AutoMagiCal v2a is an updated version of the original EA that calculates a Magic Number for your trading strategy based on the current symbol's name. It creates a label on the chart to display the Magic Number. The key difference from the previous version is that this updated version can handle larger numbers by dividing them, making it more robust for various symbols. It's still a handy tool for traders who want to organize and differentiate their trading strategies when using multiple EAs.
AutoMagiCal_v2a.mq4 2.27 kb, 2 downloads since 2023-11-06
Why don't many people post their daily winning results?
MT4talk PRO members can Turn off MT4talk daily winning result post requirements for $49.99 / month. More info...
Latest profit posts from the Trade Executor EA users.
By using the MT4talk website, you automatically agree to the Forum Rules & Terms of Use, as well as the terms below.
Everything you see on the MT4talk website is created by its users, mainly the members of the MT4talk forum.
What is MT4talk?
MT4talk is an online Forex forum with over 5000 Forex robots and over 3000 Forex indicators uploaded by forum members in the last 10 years, available to download from forum posts. The Uploaded file does not come with support.
The website doesn't sell Forex robots and doesn't provide support for the ones you download. MT4talk offers a PRO membership, allowing you to download unlimited files from forum posts. Even though the site usually doesn't provide support for downloaded Forex robots, if you're new to Forex and need help, you can buy the MT4talk dedicated support membership from the MT4talk forum. The MT4talk Dedicated support subscription is only available for purchase for MT4talk PRO members.
The MT4talk Team also provides an Artificial Intelligence Forex robot called "MT4talk Forex AI Signal - Trade Executor EA" to PRO members. However, this Forex robot is only a bonus and is not included in the original PRO membership.
Updates for the Forex robots may be limited or nonexistent, depending on the creator. If you choose to download any Forex robot or setting file from the forum, you acknowledge that you are using it at your own risk. MT4talk PRO membership is a digital product. Therefore, after you complete the PRO membership purchase, there is no refund available!
We are conducting real-life tests on Forex robots to assess their performance. For certain robots, we may use a demo account to conduct tests, and for other Forex robots, we may use a real Forex account. It's essential to recognize that we are not financial advisors and cannot provide investment guidance. Our objective is to discover effective market analysis solutions through testing various strategies, which could be beneficial to our community.
CFTC RULE 4.41 – HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS, IN GENERAL, ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.
Disclaimer - No representation is being made that any Forex account will or is likely to achieve profits or losses similar to those shown on backtests in this forum. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. Hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk in actual trading. All information on this forum is for educational purposes only and is not intended to provide financial advice. Any statements posted by forum members or the MT4talk EA Tester Team about profits or income expressed or implied, do not represent a guarantee. Your actual trading may result in losses as no trading system is guaranteed. You accept full responsibilities for your actions, trades, profit or loss, and agree to hold the MT4talk team and forum members of this information harmless in any and all ways.
Affiliates Disclaimer - The website may have links to partner websites, and if you sign up and trade through these links, we will receive a commission. Our affiliate partners are FXOpen, FBS, LQDFX, and MyForexVPS.
Copyright MT4talk.com Forum Rules - Privacy Policy.