fxDreema

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

    help with not buying again and selling where it should be buying again

    Questions & Answers
    3
    8
    1726
    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
      digitalb23 last edited by

      I am wanting the ea to purchase when the bb are below the lower band and when the mfi is also in oversold. Then if this occurs again before my selling condition happens i would like it to purchase again the same amount. Then when the bb and the mfi are both in oversold i would like it to sell everything. In the backtest when it should buy again its selling the position? Any help would be greatly appreciated.
      0_1556685782439_need help.PNG 0_1556685806672_need help1.PNG 0_1556685823765_need help 2.PNG

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

        https://fxdreema.com/shared/kkFhiL2lc

        J 1 Reply Last reply Reply Quote 0
        • D
          DGRL last edited by

          @digitalb23

          Will take a look at it tomorrow

          1 Reply Last reply Reply Quote 0
          • J
            johnle1024 @digitalb23 last edited by

            @digitalb23 Move the "once per bar" right above "buy now"

            Everything seems to work, however your conditions are only activating at the open of the candle, which the mifi was slightly above.

            D 1 Reply Last reply Reply Quote 0
            • D
              digitalb23 @johnle1024 last edited by

              @johnle1024 thank you, did you manage to get it to sell when it's supposed to in backtest? On the first buy it worked as it should on the second it sold when oversold instead of overbought

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

                also would anyone like to add how i might purchace the last bar of it being outside the BB? Is there a option once the conditions are triggered to buy after the first bull candle is printed? Might be several bars away from the condition that triggered it so dont know if that would be a option.

                J 1 Reply Last reply Reply Quote 0
                • J
                  johnle1024 @digitalb23 last edited by

                  @digitalb23 work backwards is all.

                  Start with first bull candle that shows up, then link to the condition starting at 1 candle away, the link the false tab to same conditions but 2 candles away etc.

                  Finally link the true button to the buy now (with once per bar) for each condition.

                  So bear bar - check candle 1 buy if true, pass if false etc etc.

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    digitalb23 @johnle1024 last edited by

                    @johnle1024 thank you again

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

                    Online Users

                    T
                    J
                    J
                    P
                    M
                    M
                    E
                    M
                    A
                    H

                    13
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors