fxDreema

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

    Help needed for simple Stochastic EA

    Questions & Answers
    3
    8
    328
    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.
    • P
      Pascal 0 last edited by

      Hello,

      I try to build a simple bot, which I found in the traders mag10/23. Profitfaktor 1,48 for the SP500 Daily Timeframe backtested from 2000 - 07.09.2023:

      Long is allowed if:

      1. No active trade
        AND
      2. Fast-Stochastic-Line (Period 31) is above 50

      and buy gets triggered, if: Fast-Stochastic-Line (Period 3) is crossing Fast-Stochastic-Line (Period 5)

      The open position gets closed, if: Fast-Stochastic-Line (Period 3) is recrossing Fast-Stochastic-Line (Period 5)

      Well, I'm struggling with it obviously, cause the strategy-tester shows me that positions get closed in the same bar.

      What am I doing wrong?

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

        Can you click on Projects>Create a Shared Copy and post it here.....*

        1 Reply Last reply Reply Quote 0
        • P
          Pascal 0 last edited by

          Market Forecast Indicator Traders 10_23.ex5

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

            No...Top left of the Builder...>>
            Screenshot 2023-12-16 at 00-09-50 Aragorn Daily Breakout.png

            1 Reply Last reply Reply Quote 0
            • P
              Pascal 0 last edited by

              Morpheus, thanks for your patience! I'm such a noob...but it's going to change ๐Ÿ˜‰

              https://fxdreema.com/shared/BVffiNwYc

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

                I'm not 100% percent sure, but try using no Candle IDs....or try 'Is Above/Below' with Candle ID 1 rather than crosses Above/Below.....

                It's just a matter of trial and error....and a truckload of patience..... ๐Ÿ˜‰

                I've been here a while and I'm still a noob :))

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

                  A good way to test is to run only 1 condition (per tree) at a time, and draw lines on the value, so you can visually check when something should work.

                  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
                  • P
                    Pascal 0 last edited by

                    Hi guys,

                    I guess I found the misstake. By default the "BuyNow" has SL and TP activated. After disabling it, it looks more towards the expected direction.
                    Market Forecast Indicator Traders 10_23.ex5

                    I'm just wondering why the backtest stucks on the 23rd Februar 2017? The journal shows an infite loop:

                    2024.01.16 12:59:10.443 Core 1 2017.02.23 01:00:00 failed market sell 1 US500, close #102 buy 1 US500 2362.52 [Market closed]
                    2024.01.16 12:59:10.443 Core 1 2017.02.23 01:00:00 Closing position/trade error: Market is closed (10018)

                    Any idea how I could fix this?

                    Many thanks in advance for your time and brainpower! ๐Ÿ™‚

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

                    Online Users

                    H
                    R
                    A

                    14
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors