fxDreema

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

    How to program this in the Condition block?

    Questions & Answers
    3
    7
    1144
    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.
    • T
      trooper5010 last edited by

      I would like my condition to be:

      "If yesterday's close is higher than the close on year earlier, buy."

      I can get yesterdays close by choosing "Candles Close" parameter but I'm not sure how to find last years candle close. Can anyone point me in some direction?

      Thanks

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        how exactly you mean "one year back"? ...
        is it Close from previous year (last Close in 2016) ....
        or is it Close 365 days back?

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 0
        • T
          trooper5010 last edited by

          @miro1360 Close from 365 days back. Thanks.

          1 Reply Last reply Reply Quote 0
          • M
            miro1360 last edited by

            tried you this?
            0_1485318432131_upload-f01abe05-7fa2-455d-a662-3c1651c1097e

            Between trading and gambling is a very small gap, be careful.

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

              365 candles does not mean 365 days before, because 2 candles per week are missing because of Saturday and Sunday, and who knows how many other candles because of bad quality of the chart. If you do that, make sure that everything is fine with the data and that 1 year candle can be found on the chart. Or you can also try with Weekly or Monthly.

              1 Reply Last reply Reply Quote 0
              • M
                miro1360 last edited by

                right, sorry my bad 😄 ... it are fewer candles ... but logic still the same ...
                0_1485440700366_upload-01fa38bc-6892-46e4-b186-8841560a877d

                Between trading and gambling is a very small gap, be careful.

                T 1 Reply Last reply Reply Quote 0
                • T
                  trooper5010 @miro1360 last edited by

                  @miro1360 said in How to program this in the Condition block?:

                  but logic still the same

                  It would actually be 251 candles including holidays :). Thanks @miro1360

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

                  Online Users

                  C
                  P
                  C
                  L
                  P
                  M
                  B

                  11
                  Online

                  146.8k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors