FXOpen Broker

16+ years’
experience in FX

VISIT WEBSITE

Trading Accounts

ECN, STP,
Micro, Crypto

START TRADING

Free Demo

Practice Forex trading
risk free

OPEN DEMO ACCOUNT

PAMM Technology

Become a Master
or a Follower

JOIN PAMM SERVICE
Page 1 of 5 12345 LastLast
Results 1 to 15 of 61

Thread: Training course in creating indicators for MT4

  1. #1
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default Training course in creating indicators for MT4

    Training course in creating indicators for MT4

    In this Thread, we will explain in a picture how indicators are made and how to put the codes
    And download the indicator in the Metatrader 4 program

    This topic is exclusive to the FXOPEN Forum



    Last edited by Resolve; 09-05-2022 at 01:37 PM.

  2. The Following 2 Users Say Thank You to hesham1046 For This Useful Post:

    penaltev (09-08-2022), Resolve (09-05-2022)

  3. #2
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    The first lesson we need to know the names of the candles, how to call the first and the previous candle, and the one before them, and the one before it is a candle, but the difference is in their names

    As in the following explanation



    The candle with position 0 is the one that moves with the current price

    The important thing is in our language we call it the candle (0)

    The candle in the 1st position is called the candle(1).

    The candle in position 2 is called the candle(2).

    And so on

    When I tell you, describe the candle (7), for example, you describe and say the candle (7) is a candle whose closing is greater than its opening or

    It says the close of the candle (7) is greater than the opening of the candle (7) or

    Close the candle (7) > Open the candle (7)


    If you understand the above, then you are a programmer

  4. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  5. #3
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    We are now translating this into the MT4 programming language
    We do it step by step together



    After that, we choose from this box the word indicator
    And we right-click and choose
    Great in Meta Editor




    After that, this screen will appear for us, which is for making indicators


    Then we choose the Custom indicator
    Last edited by hesham1046; 08-30-2022 at 04:05 PM.

  6. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  7. #4
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    After that, this screen appears, from which we write the name of the indicator and you have the intellectual property rights for this indicator


  8. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  9. #5
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    After that, a screen appears, we choose the first option, which is
    OnCalculate



    Then click on the END button

    Last edited by hesham1046; 08-30-2022 at 07:50 PM.

  10. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  11. #6
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    Finally, the MQL4 page was opened to design the indicator together and put the private property rights of the FXOpen forum




    And put the indicator name FXOpen candles




    Here the explanation of how to open a page opening form to put a code has been completed

    Then we will explain how to add the function to put codes
    Last edited by hesham1046; 08-30-2022 at 08:42 PM.

  12. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  13. #7
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    The first lesson we need to know the names of the candles, how to call the first and the previous candle, and the one before them, and the one before it is a candle, but the difference is in their names

    As in the following explanation



    The candle with position 0 is the one that moves with the current price

    The important thing is in our language we call it the candle (0)

    The candle in the 1st position is called the candle(1).

    The candle in position 2 is called the candle(2).

    And so on

    When I tell you, describe the candle (7), for example, you describe and say the candle (7) is a candle whose closing is greater than its opening or

    It says the close of the candle (7) is greater than the opening of the candle (7) or

    Close the candle (7) > Open the candle (7)


    If you understand the above, then you are a programmer

  14. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  15. #8
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    Now we will move from our English language to the language of metatrader translation, how did we express it in our language and how do we express it in MQ4 language

    close the candle(7)

    iClose(0,0,7)

    opening candle(7)

    iOpen(0,0,7)



    PHP Code:
       if(iClose(0,0,7)
       if(
    iOpen(0,0,7

  16. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  17. #9
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    Try translating this into MQ4

    Close the candle (5) < Open the candle (5)

  18. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  19. #10
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    YES YES YES

    iClose(0,0,7)<iOpen(0,0,7)

  20. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  21. #11
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    Ghosts and new users please register in the forum and write to me if the explanation is useful or not

  22. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  23. #12
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    The third lesson

    Now for the hight and the low.

    iHigh(0,0,6)

    This is, for example, the high for candle number 6, i.e. candle (6).

    -----------------------------------------------

    iLow(0,0,6)

    This, for example, is for the candle ranked number 6, i.e. the candle (6).


    This lesson is the siege of the fxopen forum

  24. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  25. #13
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    This is an exercise for those who like to participate




    Candle number 4 has an open lower than its close

    translate into language MQL4
    Last edited by hesham1046; 09-02-2022 at 11:41 AM.

  26. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  27. #14
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    Now for the hight and the low.

    iHigh(0,0,4)

    This is, for example, the high for candle number 4 i.e. candle (4).

    -----------------------------------------------

    iLow(0,0,4)

    This, for example, is for the candle ranked number 6, i.e. the candle (4).

  28. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

  29. #15
    Market Maker cool user hesham1046's Avatar
    Join Date
    May 2013
    Posts
    13,078
    Thanks
    1,959
    Thanked 486 Times in 318 Posts

    Default

    We are now programming the first indicator

    It is if the opening of the candle (1) < the closing of the candle (1)

    Makes a bell and shows the message Buy

    And if the opening of the candle (1) > the closing of the candle (1)

    It makes a bell and shows the message "Sell ."

  30. The Following User Says Thank You to hesham1046 For This Useful Post:

    Resolve (09-05-2022)

Page 1 of 5 12345 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Disclaimer
2022 © FXOpen. All rights reserved. Various trademarks held by their respective owners.

Risk Warning: Trading on the Forex market involves substantial risks, including complete possible loss of funds and other losses and is not suitable for all members. Clients should make an independent judgment as to whether trading is appropriate for them in the light of their financial condition, investment experience, risk tolerance and other factors.

FXOpen Markets Limited, a company duly registered in Nevis under the company No. C 42235. FXOpen is a member of The Financial Commission.

FXOpen AU Pty Ltd., a company authorised and regulated by the Australian Securities & Investments Commission (ASIC). AFSL 412871ABN 61 143 678 719.

FXOpen Ltd. a company registered in England and Wales under company number 07273392 and is authorised and regulated by the Financial Conduct Authority (previously, the Financial Services Authority) under FCA firm reference number 579202.

FXOpen EU is a trading name of FXOpen EU Ltd. FXOpen EU Ltd is authorized and regulated by the Cyprus Securities and Exchange Commission (CySEC) under license number 194/13.

FXOpen does not provide services for United States residents.

Join us