fxDreema

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

    条件判断不起作用

    Questions & Answers
    3
    7
    388
    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.
    • Golden Wings
      Golden Wings last edited by

      屏幕截图 2023-08-22 175111.png
      屏幕截图 2023-08-22 175354.png
      为什么条件限定要第一根K线收盘价大于设定的MA才开多单,但测试的时候却出乎意料,虽然我有两个条件才开仓,但是已经用“和”块绑定在一起,也就是要两个条件同时成立才开仓啊。

      S 1 Reply Last reply Reply Quote 0
      • X
        Xfire last edited by

        你好。 您应该分享您的项目链接。 我看看这个

        IN GOD WE TRUST

        Golden Wings 1 Reply Last reply Reply Quote 0
        • S
          sktsec @Golden Wings last edited by

          @Golden-Wings
          Try add "one per bar" on top of your logic.

          Golden Wings 1 Reply Last reply Reply Quote 0
          • Golden Wings
            Golden Wings @sktsec last edited by

            @sktsec 添加每根柱线几个是后面的条件,现在的问题是开仓条件没满足第一个条件就开仓了,问题不在开几根呢

            1 Reply Last reply Reply Quote 0
            • Golden Wings
              Golden Wings @Xfire last edited by

              @Xfire ![alt text](屏幕截图 2023-08-23 104302.png image url)

              S X 2 Replies Last reply Reply Quote 0
              • S
                sktsec @Golden Wings last edited by

                @Golden-Wings 不要用 AND, 把兩個條件串聯一起就可以了

                1 Reply Last reply Reply Quote 0
                • X
                  Xfire @Golden Wings last edited by

                  @Golden-Wings
                  将两个条件放在一起并将它们链接在一起。 如果不起作用,那就有问题了

                  IN GOD WE TRUST

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

                  Online Users

                  E
                  C
                  M
                  M
                  F
                  L
                  F
                  F
                  E
                  K
                  M
                  T

                  24
                  Online

                  146.6k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors