fxDreema

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

    Screenshot when Button Pressed

    Questions & Answers
    2
    13
    316
    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.
    • S
      s00071609 last edited by

      I am trying to have a button when pressed on chart, a screenshot is taken and saved. I also have screenshot for buy and sell actions, which are working correctly.

      Screenshot when button pressed is not working. Any one got idea why this would not work. Here is the link - https://fxdreema.com/shared/K1MofRMec

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

        I would select object by name, and sub window -1 means an indicator window:

        image.png

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        S 1 Reply Last reply Reply Quote 0
        • S
          s00071609 @jstap last edited by

          @jstap Yep it did work. I think subwindow was the issue. Would screenshot work with change timeframe block or the change market block? Suppose i would like it to take screenshots for 15m, 1hr, 4hr etc. Would this be possible without loading it into multiple timeframes?

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

            I think you will need a set of blocks and a variable to do this, something like condition block (chart TF != variable TF)-print screen-set variable to current TF. To start you will need to check if the variable contains a number <1 (or=0)

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

            S 1 Reply Last reply Reply Quote 0
            • S
              s00071609 @jstap last edited by

              @jstap said in Screenshot when Button Pressed:

              something like condition block (chart TF != variable TF)-print screen

              The conditions you have described can be made but are we taking about the change timeframe block?

              This block"Set "Current Timeframe" for next blocks" description says it loops if multiple timeframes are set. But i tried it and does nto seem to work. This block does not physically change the TF, do you think it can take screenshot of another timeframe?
              Or is there a way to physically change the timeframe.

              16b84060-5835-4c1e-8b3a-45d38a2fbe81-image.png

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

                No, timeframe is in market properties:
                image.png

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

                S 2 Replies Last reply Reply Quote 0
                • S
                  s00071609 @jstap last edited by

                  @jstap That just checks the condition. If i load Screenshot EA to 15m chart and want muliple timeframe screenshot, will the change timeframe block work with it?

                  I tried to use that block, but only current timeframe screenshot worked. What do you think?

                  1 Reply Last reply Reply Quote 0
                  • S
                    s00071609 @jstap last edited by

                    @jstap Another question I had was - when the screen shot gets taken, it ignores the pixel set, not sure why this is happening, I have set it to 800x500 and I get this

                    8ca9ca55-8ce1-40c3-b5e3-ae4781febb2f-image.png

                    S 1 Reply Last reply Reply Quote 0
                    • jstap
                      jstap last edited by

                      I think you will only get a screenshot of the current visible chart, I know nothing about the used pixels

                      Learn fxDreema Without the Wait!

                      My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                      The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                      Don’t miss out

                      Click here➡️ https://mybook.to/fxDreema to get your copy today!

                      Enjoy! 😊

                      1 Reply Last reply Reply Quote 0
                      • S
                        s00071609 @s00071609 last edited by

                        @s00071609 I don't trade on a chart that look like above. Its obviously a bug. My chart is pretty big and not so squeezed up.

                        Any idea why this may be occurring. If i reload the EA, the screenshot works fine and takes correct size. But when condition is triggers then the shot become like above.

                        S 1 Reply Last reply Reply Quote 0
                        • jstap
                          jstap last edited by

                          I haven't taken a picture in a while, but I am sure the pixels in the image resolution affect this:
                          image.png

                          Learn fxDreema Without the Wait!

                          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                          Don’t miss out

                          Click here➡️ https://mybook.to/fxDreema to get your copy today!

                          Enjoy! 😊

                          1 Reply Last reply Reply Quote 0
                          • S
                            s00071609 @s00071609 last edited by

                            @s00071609 e5ab9f1b-9d96-41bb-82c4-7ed82470f299-image.png

                            I have resolution set to 1K x 600. It works at times but most of the time it gives bad shot

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

                              I can not help more (I assume you have tested on current scale), all I can say is message admin, he may know why

                              Learn fxDreema Without the Wait!

                              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                              Don’t miss out

                              Click here➡️ https://mybook.to/fxDreema to get your copy today!

                              Enjoy! 😊

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

                              Online Users

                              T
                              A
                              A
                              M
                              A
                              M
                              E
                              E
                              F
                              E
                              G
                              M
                              C
                              L

                              33
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors