fxDreema

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

    Condition: Market Properties: Backtest vs Live

    Questions & Answers
    2
    9
    1768
    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.
    • R
      rafaelgrecco last edited by

      Hi,

      I am using a condition block that compares Market Price Level (Ask or Bid) to a indicator.

      I'll use Sell operations as example (but the same happens on buy).

      Sell if:

      sell.jpg

      On backtest it works perfectly on every market/stock I test it.

      On live account (demo account) I let this same EA run on 25 markets (or stocks, I don't know to to say it in english) but around 50% of the positions happen outside that condition. Here is an example:

      Correct: Sell above upper line
      correct.jpg

      Wrong: Sell outside of condition
      wrong.jpg

      Do you know why this happens? It this condition (Market Price Leve) not reliable?

      ......
      sell.jpg
      correct.jpg
      wrong.jpg

      1 Reply Last reply Reply Quote 0
      • R
        rafaelgrecco last edited by

        Still thinking about this same case, I think I have a better way of buying and selling where the previous "error" would not occur, but I can't find a way to do what I want.

        I'll use the same picture as before to explain what I am trying to do:
        wrong.jpg

        I want my EA to start trailing the price as soon as the market price is above the upper Bollinger Band line.
        The price should go up for some time and as soon as the price start to fall, I would place the sell position.

        It is the opposite of a trailing stop... it is actually a kind of trailing start. I did try using the block "trailing pending orders" but couldn't figure it out. The "trailing stop" block also has a trailing start option, but I don't think it does what I want.

        It this possible to do?

        ......
        wrong.jpg

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

          Maybe something happened with the spread at that time.

          Any Trailing Stop block works if it runs. Normally such block must be put on top level so it can run on every tick. But this is not mandatory, you can hide it under any Condition to prevent it from running when the condition is not true

          1 Reply Last reply Reply Quote 0
          • R
            rafaelgrecco last edited by

            __Maybe something happened with the spread at that time.[/quote:1jg1bxnx]

            That's what I thought... but 50% of all opened positions have this behavior, I'll make some more tests.

            __Any Trailing Stop block works if it runs. Normally such block must be put on top level so it can run on every tick. But this is not mandatory, you can hide it under any Condition to prevent it from running when the condition is not true[/quote:1jg1bxnx]

            I know how to use trailing stop effectively. But I want to use a "trailing start", like I described:

            " want my EA to start trailing the price as soon as the market price is above the upper Bollinger Band line.
            The price should go up for some time and as soon as the price start to fall, I would place the sell position."

            It is the opposite os trailing stop, but I don't see a trailing start block so I am not sure if it's possible. How would you do it?

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

              Then I don't understand what you want. The opposite of trailing stop for me is... trailing profit - the idea to trail Take-Profit, because normally we work with Stop-Loss. I don't have an idea what Trailing Start block should be

              1 Reply Last reply Reply Quote 0
              • R
                rafaelgrecco last edited by

                Hi, thanks for your time. I see what you mean... I'll explain better.

                My strategy is to buy below Bollinger Bands and sell above bollinger bands. That is easy to do. But take a look at the picture below:

                It is easy to make the EA sell above the Bollinger Bands line - Red Arrow. But I want it to sell at the Green Arrow.
                [attachment=1:2mawsra1]https://fxdreema.com/shared/jnFoH4hwc (blocks 3 to 8 should find Highest and Lowest prices and Blocks 37 and 67 should find the distance from Highest and Lowest price to place orders).

                Can you (or anyone else) help me out?

                Thanks.

                ......
                picture1.png
                picture2.png

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

                  https://fxdreema.com/shared/wtWqqKlK
                  http://prntscr.com/aavs7v
                  http://i.imgur.com/YnM4C9D.png

                  1 Reply Last reply Reply Quote 0
                  • R
                    rafaelgrecco last edited by

                    Hi, thank you for your help.

                    That is not necessarly what I was looking for. With your strategy, the position would only open after the candle is closed, and the closed price can be very far from highest or lowest price.

                    I´ll try some other ways.

                    Thanks anyway!

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

                      Not at all. Candle Close of candle 0 is actually the current Bid price. It changes until the candle is closed and becomes candle 1. I prefer to work with Candle Close instead of Bid, because it sounds more natural

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

                      Online Users

                      R
                      A
                      E

                      9
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors