Mql4 Programming For Beginners. Use An Indicator To Trigger an Expert Advisor Using iCustom Function

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 37

  • @weiSane
    @weiSane 2 роки тому +2

    This would have been more helpful with you showing and teaching us step by step. Would appreciate if you put links too your course too. We really need this .

  • @Jimdandy1958
    @Jimdandy1958  9 років тому +2

    In order to clear up any confusion... Only a script or an expert has access to trading functions such as OrderSend(). An indicator can not place trades. as the page at book.mql4.com/basics/programms states under the "Trading" section....
    "Only EAs and scripts can use trading functions (only if the corresponding option is enabled in the EA/script settings). It is prohibited to use trading functions in custom indicators."
    However an indicator's ex4 file can be called from an expert as this video shows, and used to trigger the EA. This video also shows with the text call out at 13:26 that the indicator that you call DOES NOT have to be attached to any chart. It only needs to be in the appropriate folder of your platfrom. Mql4/indicators. If you read the actual blog post you will note that it mentions that you can actually have the indicator give you a signal from a different currency pair and or timeframe other than the one you have the EA loaded on.
    There is another trick. If you put your indicator in a sub folder of the Indicators folder, lets say it's the MyIndies folder when you call your FavIndy file from that folder you call it as "\\MyIndies\FavIndy" note that it's a double backslash...
    There is an example of it on the mq4 site here...docs.mql4.com/indicators/icustom
    PipPip

  • @MadN3zZ1
    @MadN3zZ1 4 роки тому +1

    You are excellent at explaining things sir, Thanks for the vids

  • @achash8278
    @achash8278 3 роки тому

    Does it have to be arrow only instead of a point?
    I'd really appreciate the answer.
    Thanks!

  • @NareshMoss
    @NareshMoss 3 роки тому

    You are the Best Sir. Thank you very much

    • @Jimdandy1958
      @Jimdandy1958  3 роки тому

      You are most welcome Naresh. Thank you for subscribing! Become part of this community by commenting, liking, and sharing not only the videos, but what you learn from them... jimdandy

  • @joheinlambert1136
    @joheinlambert1136 2 роки тому

    Can you make a video on the zig zag indicator in a Ea robot

  • @amberfm
    @amberfm 5 років тому +1

    Dear Jim,
    I would like to thank you very much for your effort and sharing your experience in coding MQL4.
    I have a question regarding the multi-timeframe strategies that uses two time frames (H1 and D1) and three indicators(Bollinger Bands for H1, and Heikin Ashi adn Stochastic for the D1).
    Is there a way to code and idicator that goes back in time for the Heikin Ashi candle.
    Thank you very much.

  • @gracieliu5975
    @gracieliu5975 4 роки тому

    This video is gold

  • @harrischalikias9845
    @harrischalikias9845 3 роки тому

    Hello Mr. Jim, your contribution to us ignorant wannabe programmers in mql4 is trully much appreciated! I have one question though which i m really puzzled about it. Here it comes..... Is it possiple to call a script on a chart by clicking on a button created with an indicator? Thank you in advance.

    • @Jimdandy1958
      @Jimdandy1958  3 роки тому

      You drop a script on a chart from the navigator window. It runs and closes immediately, it does not stay on the chart to be 'called'. If you want that action to occur when you press a button then put the code of that script in the indicator to be run when you press the button.

    • @harrischalikias9845
      @harrischalikias9845 3 роки тому

      @@Jimdandy1958 It is my understanding that indicators cannot perform trading operations i.e. open trades set tp and sl and such, but i will try this just to see what happens
      PS
      Thank you for the promt feedback

  • @hossambayome5912
    @hossambayome5912 4 роки тому

    Jim .. First of All .. I Wana thank you for the great content you are providing.
    Second .. I wonder how to make an EA that is triggered by two indicators ( leading / lagging ) .. I mean that their signals does not appear on the same bar ?!
    For Example : if I am using a stochastic cross as a primary signal and I want the EA not to start the buy or sell order till it gets a confirmation from MA cross ?!!
    I appreciate your help in this
    Regards,

    • @Jimdandy1958
      @Jimdandy1958  4 роки тому +1

      simple answer is that your trigger happens when stochastic has crossed and macd has crossed. I teach that kind of stuff in my course.. learnmql4.com

    • @hossambayome5912
      @hossambayome5912 4 роки тому

      @@Jimdandy1958 thanks for your answer Jim .. but what I meant is that the signals of the two indicators are not in the same bar ( example : shift for stochastic is 1 and for MACD is 2 ) and I think this requires a special code for counting the consecutiv signals .. and fire the order after the last signal occurs )
      I appreciate some explainaition with code ( hossam.bayome@gmail.com)
      Regards
      Hossam Habib

  • @johnvoidman6616
    @johnvoidman6616 3 роки тому

    Hi. Jim. Could you explain why at 10:35 it's using static to declare a datetime or what does static do. I heard that static in a function out of class means it's lifetime expands to the end of program. But it's declared in a function that being said functions out of this function can not access to this variable. So what's the point to make it's lifetime longer if we can't access to it no more?

    • @Jimdandy1958
      @Jimdandy1958  3 роки тому

      a static variable is only declared once. it is not reset to zero each time this function runs. it will not be removed from memory at the endo of the function. when the function runs again it will still contain the value it had when the function last ran. Only when a new time will the function run and update the candletime.

    • @johnvoidman6616
      @johnvoidman6616 3 роки тому

      ​@@Jimdandy1958 Thanks Jim, your answer is very easy to understand. Appreciate it!

  • @imjeff88
    @imjeff88 5 років тому

    thanks man your videos are a great help

  • @hoodomustafe9175
    @hoodomustafe9175 3 роки тому

    hi, am having trouble.... downloaded very old indicator and lost source code.... the developer has left the mql5 and cant reach him... how to add some pairs to the indicator please

  • @jimbojay2006
    @jimbojay2006 4 роки тому

    Great content, thanks!

  • @MBermaui
    @MBermaui 5 років тому

    Thanks for the info.

  • @exorevbivoevturque
    @exorevbivoevturque 4 роки тому

    Thank you man

  • @mariachorna7459
    @mariachorna7459 6 років тому +1

    Hello Jim, I have indicator that i use for binary, I need help in making the arrow appear sooner, I do not want it lag a secs when new candle opens. If you can help me fix this issue. I will pay for it. Please respond and help me. I have learn a lot from your videos and i am looking forward in hearing from you. Thank you so much Sir.

  • @isaaclewis1163
    @isaaclewis1163 3 роки тому

    Hello I need help how do you activate a dll on an EA and also activate the dll patch for the licence.

    • @Jimdandy1958
      @Jimdandy1958  3 роки тому

      make sure dll's ae allowed in the terminal.. other than that I don't know. You'd need to get with someone smarter than me on dlls..

    • @isaaclewis1163
      @isaaclewis1163 3 роки тому

      @@Jimdandy1958 Thanks how do you check for to make sure DLL are allowed in the terminal

    • @isaaclewis1163
      @isaaclewis1163 3 роки тому

      @@Jimdandy1958 may be I have to ask my questing this way. how do you activate EA using DLL security installation

    • @Jimdandy1958
      @Jimdandy1958  3 роки тому

      @@isaaclewis1163 I do not know.

  • @divyajeetsingh
    @divyajeetsingh 7 років тому

    thanks sir , you are great !!!!!!!!!!!!!!!!!!!!!!!!

  • @NoFaithNoPain
    @NoFaithNoPain Рік тому

    If indicators actually worked, then why aren't we all rich?

  • @muraterkan3094
    @muraterkan3094 7 років тому

    Thanks.

    • @believeme5903
      @believeme5903 4 роки тому

      AMAZING .... AGAIN!!!
      I am looking for an EA, that will purchase a contract when an arrow is drawn on the chart from any indicator, is this possible?

  • @manliketruth7767
    @manliketruth7767 3 роки тому

    i need a expert coder for my system can anyone help? paid job

  • @spaceghost1008
    @spaceghost1008 2 роки тому

    what is the purpose of this video......to waste time