fxDreema

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

    MQL5 OnChartEvent

    Questions & Answers
    2
    14
    5083
    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.
    • A
      Alepie last edited by

      If Button Click then open Buy Order.

      Is OnChartEvent added to?
      Then, you could use MQL5 chart controls.
      *Button
      Checkbox
      SpinEdit, Scrolls...
      [/list:u:28jtv014]

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

        I was waiting for someone to wishes this feature 🙂 Currently not available, but I can work for it.

        1 Reply Last reply Reply Quote 0
        • A
          Alepie last edited by

          __Currently not available, but I can work for it.[/quote:38cpdmqv]
          Yes, that would be great.

          1 Reply Last reply Reply Quote 0
          • A
            Alepie last edited by

            Is the idea eventually added or discarded for the time being?

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

              Very soon...

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

                Ready for testing. There is a category with blocks that appears when in "on Chart" workfield, these blocks are filters. To get some parameters (coordinates, object names) there is a new subcategory in Condition - Chart event data.

                1 Reply Last reply Reply Quote 0
                • A
                  Alepie last edited by

                  [attachment=0:15s7s8w7]http://fxdreema.com/shared/rExT6wNM

                  ......
                  2012-11-22_18-28-24.png

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

                    Mouse move... I noticed that it doesn't work, but I don't know why. It seems the code is ok 😏

                    1 Reply Last reply Reply Quote 0
                    • A
                      Alepie last edited by

                      __Mouse move... I noticed that it doesn't work, but I don't know why. It seems the code is ok 😏[/quote:1i6fgkeb]
                      I found the bug.
                      *
                      int OnInit() *available.
                      void OnTick() available.
                      void OnDeinit(const int reason) available.

                      The error the ChartEvent function not available.

                      
                      //+------------------------------------------------------------------+
                      //| ChartEvent function                                                                                           |
                      //+------------------------------------------------------------------+
                      void OnChartEvent(const int id,
                                        const long &lparam,
                                        const double &dparam,
                                        const string &name)
                      {
                      
                      }
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • fxDreema
                        fxDreema last edited by

                        Right... now it must be there, but I'm not sure for mouse move even that way 🙂

                        1 Reply Last reply Reply Quote 0
                        • A
                          Alepie last edited by

                          I'm not a good programmer. 😳
                          So, it should still work?

                          
                          // On-Off switches for blocks
                          bool chart6=true; // (6) (chart) Mouse move
                          
                          //+------------------------------------------------------------------+
                          //| ChartEvent function                                              |
                          //+------------------------------------------------------------------+
                          void OnChartEvent(const int id,
                                            const long &lparam,
                                            const double &dparam,
                                            const string &name)
                            {
                          switch(id)
                               {
                                case CHARTEVENT_MOUSE_MOVE:
                                  {
                             ////////////////////////////////
                          	// Define block 3 (Just pass) //
                          	void tick3(string _parent_="")
                          	{  if (chart6==true) {
                          	
                             /// Next block 
                          	}
                          	}
                            break;
                                   }
                            }  
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • fxDreema
                            fxDreema last edited by

                            Not correct. You need mouse move exactly?

                            1 Reply Last reply Reply Quote 0
                            • A
                              Alepie last edited by

                              yes

                              or

                              I want e.g. If Button Click then open BUY.

                              1 Reply Last reply Reply Quote 0
                              • A
                                Alepie last edited by

                                now. It works excellently. Thank you.

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

                                Online Users

                                V
                                O
                                J
                                B

                                21
                                Online

                                146.7k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors