Jump to content

MT4: platform settings; mql4 code snippets of indicators and Expert Advisors; chart screenshots; and technical MT4 strategies

Recommended Posts

This topic is dedicated to Metaquotes' MetaTrader 4 (MT4) trading platform (forex only). As MT4 is a 3rd party trading platform, MT4 traders generally must familiarize themselves with MT4 well in advance of trading with any broker/dealer. Let's help each other do so here.

Although mq4, ex4, and tpl files are not enabled as attachments, source code snippets of indicators and Expert Advisors can be attached as jpg or png files.

This might be a good place to ask or answer mql4 programming questions as well.

Edited by RJo
Link to comment

Attached below are full snippets of a highly customizable moving average indicator, to which I added the only known logarithmic moving average code. Credits to Igorad at ForexFactory for the original indicator, and rezzaHmt at TradingView for the logarithmic formula. Default settings are MA: logarithmic, and Period: 9.

Due to conversion from mq4 to jpg, you must copy and paste, or manually type, the code into MetaEditor.


new 1_Page_01.jpg

new 1_Page_02.jpg

new 1_Page_03.jpg

new 1_Page_04.jpg

new 1_Page_05.jpg

new 1_Page_06.jpg

new 1_Page_07.jpg

new 1_Page_08.jpg

new 1_Page_09.jpg

new 1_Page_10.jpg

new 1_Page_11.jpg

new 1_Page_12.jpg

new 1_Page_13.jpg

new 1_Page_14.jpg

new 1_Page_15.jpg

new 1_Page_16.jpg

new 1_Page_17.jpg

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • General Statistics

    • Total Topics
    • Total Posts
    • Total Members
    • Most Online
      10/06/21 10:53

    Newest Member
    Joined 09/06/23 17:04
  • Posts

    • Hi,  I started trading Brent Crude Oil in IG platform but I could find a formula to correctly calculate the size I have to put while creating a position, based on the available amount I have. The quotation is based in points and it makes me wonder how operate. Any help is welcome.  Also, I plan to work with some leverage in the future, so any tip on this matter is also welcome.  Thanks.  
    • Greetings fellow traders, I am thrilled to share an exciting intraday trading idea for EURAUD that could potentially boost your profits. At Gold Signals by Professor, we have conducted a thorough technical analysis and confidently recommend a Buy position for traders like you. Our analysis indicates a significant development: EURAUD has managed to sustain itself above the crucial level of 1.60927. This breakthrough suggests a positive momentum, with potential targets at 1.61500 and 1.61800. To mitigate risks, we advise setting a stop loss around 1.60375. In order to maximize your trading success, it is vital to stay well-informed about the latest news and events that may impact the FX market. Factors such as global economic conditions, geopolitical tensions, and central bank policies can influence the price movements of EURAUD. Please note that the momentum of the trade can be influenced by unforeseen events or news. Therefore, we will be updating this level regularly in our channel to ensure you have access to the most recent trends and analysis of Gold and its trading potential. Wishing you all a prosperous day filled with successful trades!
    • Update - I am trying to transfer the existing Polymetal shares with IG.com to Wood & Co. Has anyone tried this or are in the process? You will need a bank account with bank in EU or Revolut bank app. The form for requesting transfer is on https://polymetal.wood.com/form/individuals
  • Create New...