fxDreema

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

    Like a countdown timer?

    Questions & Answers
    5
    8
    3889
    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.
    • V
      vnpython 0 last edited by vnpython 0

      My original idea is to get the candle 0 time when trend (or down) is up and trade within that timeframe. And the (say) when the 24 hour limit is up, the buy/sell stops and wait for another trend.

      i tried using var vTradeStart (string) and using 'modify var' block from | Value > Time > Candle Time > Candle ID (0) > Candle timeframe (Daily) but when the data on the comment block shows 12314654 and i couldnt use it. the idea is to add the 'limit' and use it on expiry for the buy sell

      look around the forum and the tools available but nothing come close like a countdown timer (trade within the so-call 'perfect moment').

      any seniors know how to make such feature via existing function, please kindly share your knowledge 🙂 @fxDreema why didnt you think of this sir? 😄

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

        0_1538857315197_fc64e12f-e139-49eb-b4a7-c45b7d8b5fda-image.png

        Dosn't know if this will be the right thing , but read your question and solved my own question that ive thought about for ages , if so win win ! 🙂

        1 Reply Last reply Reply Quote 0
        • V
          vnpython 0 last edited by

          looks legit! i will try.. yesterday managed to use get NOW value of time via mod variable and shift forward 60mins on another var. then use vWalkForardTime - vStartTime to compare how much time is left.

          yours is more easier! brillant idea!!

          1 Reply Last reply Reply Quote 0
          • V
            vnpython 0 last edited by

            0_1538898011280_1538897985255159798781.jpg

            the above somehow didnt work and i use the real time against the end time (TimeNow < TimeStop) which i save from Value - Time (as you can see in the photo 'Stop')

            @fxDreema, Sir - just to confirm my solution can work in LIVE trading even thou the time saved from Value - Time (store as seconds?) displayed as seconds?

            0_1538898411184_1538898385509735399041.jpg

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

              You can see the current time in seconds since 1.1.1970 here: https://www.epochconverter.com/
              So yes, the time is measured in seconds since that day. It appears as seconds, because Value -> Numeric has "double" time, which is floating number, and the value is treated as a number. Value -> Time has "datetime" type and the EA knows to format it a little bit. Any "datetime" variable is integer on a lower level.

              1 Reply Last reply Reply Quote 0
              • V
                vnpython 0 last edited by

                i tested the 'on timer' and able to get it to work as i intended on a live account. at least now i know how this timer work and might need it someday 🙂

                aliso 1 Reply Last reply Reply Quote 0
                • M
                  MetaFX56 last edited by

                  Can I Show only time? I don't want show Date

                  1 Reply Last reply Reply Quote 0
                  • aliso
                    aliso @vnpython 0 last edited by

                    @vnpython-0 hi can you share your blocks to see how its done?thx

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

                    Online Users

                    S
                    A
                    B
                    A
                    J
                    D

                    16
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors