fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    EA events in MQL4? (Trade, Timer and so on...)

    Questions & Answers
    3
    4
    4765
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fxDreema
      fxDreema last edited by

      One of the MQL5 advantage is that there are more event functions available. OnTrade or OnTimer... more here: http://www.mql5.com/en/docs/basis/function/events

      The 3 basic events in MT4 are well known - Init, Deinit and Start (Tick).
      What is strange for me... in FxDreema there is a Timer event that actually doesn't work right now (never worked, it's just something that is left unfinished), but no one ever told me that he needs it.

      With some crazy MQL4 manipulations I think it's possible for some events to be created. "Trade" event like in MQL5 for example. But do someone needs that? Do someone use "Trade" event for MT5 projects?

      1 Reply Last reply Reply Quote 0
      • C
        cyberfx101 last edited by

        I think it would be useful.

        It would really help in organizing the coding space of the browser.

        Now I segment my code for those code blocks I execute for each tick on the right side, and those for each bar on the left side.

        I further segment code blocks from the top down separated by 'empty blocks' by event.

        If FxDreema had selectable event tabs next to "init, deinit, start", I could improve the structure of my coding logic.

        1 Reply Last reply Reply Quote 0
        • C
          chathura last edited by

          How to genarate EA using CCI Arrow indicator.

          Up arrow then open buy order (Only Open Price) and Down arrow then open Sell order (Only Open Price).

          please help to create that EA... ❓

          Attach Indicator

          ......
          CCIarrow.zip

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            I believe this should work (load attached .xml file into fxDreema)... but unfortunately I can't get values from this indicator in EA 😮

            If you know MQL4 a little, you can try to get values with:

            Alert(iCustom(Symbol(),0,"CCIarrow",  14  ,0,0));
            

            But this always gives me 0, even when arrow exists.

            This indicator has one input parameter, three buffers (0 -> %(#0000FF)**, 1 -> %(#FF0000)[Red], 2 -> %(#00FF00)[Green]), but they didn't work...

            ......
            Using CCI Arrow custom indicator.zip

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            E
            H
            R

            10
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors