fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Dratoran
    D
    • Profile
    • Following 0
    • Followers 1
    • Topics 3
    • Posts 17
    • Best 0
    • Controversial 0
    • Groups 0

    Dratoran

    @Dratoran

    0
    Reputation
    2
    Profile views
    17
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    Dratoran Unfollow Follow

    Latest posts made by Dratoran

    • RE: Endless buy and sells in a row

      I was hoping to understand the inner logic of whats happening instead of just testing around until i get a working version.

      In another thread you told me sell sells and buy buys, but there are obviously a few more nuances. If i want to use the sell block most effectively I would like to know as much as possible about its inner workings.

      posted in Questions & Answers
      D
      Dratoran
    • RE: Endless buy and sells in a row

      Could you explain this a litte more in detail? Is this an answer to both questions and why does a percentage have that effect?

      posted in Questions & Answers
      D
      Dratoran
    • RE: Endless buy and sells in a row
      1. This project implements your idea from your second to last post: A check that there is a buy position and no sell position. - https://fxdreema.com/shared/sNhTNLzGb
        This still results in an endless buy and sell like in the first picture.

      2. When I remove the SL/TP from the sell block and use the setup like before (without checking, if there is already a sell) ( https://fxdreema.com/shared/uAvpxz06 ) I get an endless sell like in my last picture.

      3. When I remove the SL/TP from the sell block and use a check that there is a buy position and no sell position, I get a single sell (which is good), but it doesn't actually sell my currently held buy position. I creates a parallel sell position. ( https://fxdreema.com/shared/2698Veegd )

      My problems / questions are:

      • Why creates a SL/TP in the Sell block an endless buy and sell as seen in the first setup / example?
      • Why won't my position be sold in the third setup / example? I don't even understand, what the sell position actually does, when it doesn't seem to care, if I actually have something (e.g. a stock) which can be sold.
      posted in Questions & Answers
      D
      Dratoran
    • RE: Endless buy and sells in a row

      If I remove the SL/TP of the sell block, there are no rebuys. Instead several sells in a row will be opened and yet the single position I currently hold won't be sold.

      After seeing this, I think I somehow misunderstood the function of sell blocks. Do they not pay attention to the currently held positions? Unbenannt2.png

      posted in Questions & Answers
      D
      Dratoran
    • RE: Endless buy and sells in a row

      You mean like this? https://fxdreema.com/shared/FSjLy415c
      Testing it has the same loop of buy and sell like before.

      @jstap said:

      No because that is switching the right side on if the left has placed a trade

      I'm not sure, what you mean. I want the right branch to switch on, when the left has placed a trade, so the position will be sold at the right time. Since both sides check the same indicator and both sides are mutually exclusive (left <20 and right >80), I don't understand why the rebuy from the starting image happens.

      posted in Questions & Answers
      D
      Dratoran
    • RE: Endless buy and sells in a row

      Shouldn't block 3 stop this (if the filter is set to buy)? My understanding was something like this:

      Block 3 checks, if I hold something (e.g. a stock) -> If that is true, the next block checks a second condition -> If that is also true, my held position is sold (e.g. the stock) -> Block 3 isn't true anymore (I'm not holding a position), therefore the right branch stays inactive.

      I mean yes, it obviously doesn't work that way, when I test it, but I don't see the mistake. Why is the right branch free to endlessly place trades?

      BTW: In testing Block 3 with buy filter causes the same problem. Block 3 with sell filter doesn't do anything, which defeats the purpose.

      posted in Questions & Answers
      D
      Dratoran
    • RE: Endless buy and sells in a row

      The left branch is supposed to open a buy and the right is supposed to open a sell. You are right, that block 3 doesn't need to include buy AND sell as a filter, but I still don't understand why it should check for sells. The right branch is supposed to open a sell at the end, so why should it check for a sell at the beginning? Wouldn't it make more sense to check for a buy (e.g. if I'm currently holding a stock or something like this) which can be sold?

      posted in Questions & Answers
      D
      Dratoran
    • RE: Endless buy and sells in a row

      Thanks for your answer. Can you explain to me why this has to be the case? Until now I thought Buy positions were the important ones for that block, because it checks if I have bought a position or have an order to buy one and sells it, if the following conditions are true. Why does it need to be sell instead?

      posted in Questions & Answers
      D
      Dratoran
    • Endless buy and sells in a row

      Hello,
      for training purpose I wanted to make a small EA, which uses the Stochastic Oscillator. The plan is to buy, when there is a crossup below 20 (with TP/SL) and to sell immediately should the main line reach 80.

      My problem is, that there are phases in which the EA buys and sells several times in a row and I don't understand why. Here is a link to the project https://fxdreema.com/shared/e408T8Mie

      Unbenannt.png

      posted in Questions & Answers
      D
      Dratoran
    • EA based on comments on the chart

      Hello,
      I'm using an indicator, which marks candle patterns on the chart, and want my EA to buy when a specific pattern in combination with another indicator (e.g. moving average) appears.

      What I tried
      I tried to use an "For each object"-loop to search for comments on the chart with the right prefix in their name (e.g "Patterns Invert Hammer") and check, if the anchor point of the comment is below a certain moving average. This should result in a buy signal.

      The problem is that - after the buy is triggered for the first time - it always immediately re-buys after a sell. I assume the mistake is, that the comment, which cause the first buy signal, is always checked again and results in immediate re-buys.

      What I want
      Basically, I need a way to check, if the last candle (not the current one) was marked by my indicator as part of a pattern and if that pattern is the one I want. Has someone an idea, how I could do that?

      My last version is here: https://fxdreema.com/shared/wAFi5igic

      posted in Questions & Answers
      D
      Dratoran