fxDreema

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

    My first fxdreema EA

    Questions & Answers
    2
    9
    1296
    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.
    • D
      danielsoy last edited by

      hi ppl.

      I m not proud to present my first EA, based in bollinger bands n RSI levels.

      It make some profit in gbp-usd 15M grid .

      Look how:
      https://www.youtube.com/watch?v=tXqYW5rTLnY

      Now I am struggling to learn how to use variables in my EAs.

      I just want to count bullish n bearish candles, and make my EA or indicator, to play a sound, any time a
      user defined amount of candles, has been reached.

      ......
      bollinger 14-2 RSI 70-30 15Mgrid.mq4

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

        A Variable is something that has Name and Value. Then when you refer to that Variable by it's Name, you can get it's Value. That Value can also be modified. This can happen everywhere in the EA, because Variables are global. There are different ways to get and modify them and I tried to sumarize them here in this example: https://fxdreema.com/demo/mt4-variables

        1 Reply Last reply Reply Quote 0
        • D
          danielsoy last edited by

          Ok admin, thanks 4 that.

          Guess that bull/bear in a row blocks can make the job in an easier way.

          Will see how it works...

          1 Reply Last reply Reply Quote 0
          • D
            danielsoy last edited by

            Is working pretty well using bulls/bears in a row blocks to count the amount of candles.

            Was wondering if is there some block that can maximize a window, or i must make it through mt4 editor,
            adding some code, inside blink the chart block 4 example.

            As this video shows, I use my amount of candles counter EA, in a lot of windows at the same time, and any time some chart
            reaches my target condition, I maximize that window by hand, clicking over Maximize button on the chart that is blinking red or green.

            What i need is to maximize that blinking window automagically.

            https://www.youtube.com/watch?v=cwVcuZgC23c&feature=youtu.be

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

              __This video is private.[/quote:1d7knaz3]

              I can't find minimize/maximize options in MQL4 here - https://docs.mql4.com/chart_operations or here https://docs.mql4.com/constants/chartco ... ty_integer

              1 Reply Last reply Reply Quote 0
              • D
                danielsoy last edited by

                Should be public now, in case is not, please search the video by its name, its the first hit.

                **FXdreema: blink the chart block **

                So there is not a way to resize windows in mt4 ?

                1 Reply Last reply Reply Quote 0
                • D
                  danielsoy last edited by

                  Have found 3 chart properties related to the size of the windows I guess...

                  CHART_WIDTH_IN_BARS

                  CHART_WIDTH_IN_PIXELS

                  CHART_HEIGHT_IN_PIXELS

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

                    This video is not for people with photosensitive epilepsy 😄

                    CHART_WIDTH_IN_BARS and CHART_WIDTH_IN_PIXELS are read only. CHART_HEIGHT_IN_PIXELS is not, but It appears to be woking only on indicator subwindows.
                    Open new chart, add some oscillator and play with this EA:

                    int subWindow = 1; // 0 is the main window, 1 is the first subwindow and so on...
                    int setpx = 20; // initial height
                    
                    void OnInit() {
                       ChartSetInteger(0, CHART_HEIGHT_IN_PIXELS, subWindow, setpx);
                       EventSetMillisecondTimer(5);
                    }
                    
                    void OnTimer() {
                    
                       if (setpx > 300) {EventKillTimer(); return;}
                       
                       ChartSetInteger(0, CHART_HEIGHT_IN_PIXELS, subWindow, setpx);
                       
                       Comment(
                          "Main Chart Height: " + ChartGetInteger(0, CHART_HEIGHT_IN_PIXELS, 0) + " px\n" +
                          "Subwindow Height: " + ChartGetInteger(0, CHART_HEIGHT_IN_PIXELS, subWindow) + " px"
                       );
                       
                       setpx++;
                    }
                    

                    If you set subWindow to 0, nothing happens.

                    1 Reply Last reply Reply Quote 0
                    • D
                      danielsoy last edited by

                      This video is not for people with photosensitive epilepsy 😄 😆

                      Will try that code and see what happens ,thanks.

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

                      Online Users

                      Z
                      D
                      A

                      10
                      Online

                      146.9k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors