fxDreema

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

    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
    • RE: When to use Sell, TP/SL or Close Position

      Okay, thank you for your help ^^

      posted in Questions & Answers
      D
      Dratoran
    • RE: When to use Sell, TP/SL or Close Position

      What happens when a Stock is bought with SL/TP by a buy block and later sold with a sell block, which also includes TP/SL? Does the sell block overwrite the TP/SL from the buy block?

      posted in Questions & Answers
      D
      Dratoran
    • RE: When to use Sell, TP/SL or Close Position

      Ah okay, that is an important distinction between Sell and Close.

      But in regard to my questions about the Sell block, it is a rather implicit answer. Therefore correct me, if I'm wrong:
      Without SL/TP the sell bock sells my stock immediately.
      WITH SL/TP the stock will only be sold when SL or TP are hit.
      With only TP the stock will be sold when that is hit and otherwise never.
      Is that correct?

      posted in Questions & Answers
      D
      Dratoran
    • RE: When to use Sell, TP/SL or Close Position

      I'm still not sure of the function of the sell block. Let's make an example: I have an apple stock and want to sell it. I want to do this via a sell block in my EA. In that case my questions are:

      a) If I don't add TP/SL does it sell immediately? If not, what would be the right block to sell immediately? Close position?
      b) If I add a TP/SL does it wait until one triggers before it sells? Will it otherwise never sell?
      c) What happens if I only set TP and not SL? When does it sell then?

      posted in Questions & Answers
      D
      Dratoran
    • RE: When to use Sell, TP/SL or Close Position

      Well, I don't think my english is /that/ bad. My first question in regard to the usage of sell blocks vs. buy TP/SL didn't ask, what "sell" means. I wanted to know in which cases it is better to use the first or the second. A buy block with TP/SL already takes care of selling things, so why even use sell? In which cases does it make sense to actually include a sell block in ones strategy? I even gave a possible example and would like to hear about more cases.

      I know what TP/SL means in a buy block, but what does it actually do in a sell block? If I buy a stock for 100 and set a TP 150 and a SL 80, I know what it does. It sells at 150 or 80, depending on which happens. But what happens in a sell block? In a sell block I'm already selling my stock, so what happens when I set a TP/SL for a sell block? Is it like a delay? Does it wait to reach 150 or 80 before it sells?

      The last question was, if there is a practical difference between selling and closing a position. Let's assume I have a sell block without TP or SL (since I'm still unsure about what that does in regard to sell blocks). Is there a practical reason to use a sell block or can I just use close position or vice versa?

      posted in Questions & Answers
      D
      Dratoran
    • RE: When to use Sell, TP/SL or Close Position

      I had hoped for a less superficial answer.

      posted in Questions & Answers
      D
      Dratoran
    • When to use Sell, TP/SL or Close Position

      Hello,
      I'm fairly new to fxDreema and am unsure when to use which of the three options in the title.

      If I use a buy block and set TP and SL, do I even need a Sell block? (My only idea, when a Sell block might be usefull, instead of waiting for TP/SL would be, if another indicator hints that SL is inevitable and one jumps ship preventively.)

      What exactly does TP and SL in a Sell block mean? I'm already selling my position, why would I need a TP / SL?

      Is there a difference between using a Sell block or a Close position for a specific trade?

      posted in Questions & Answers
      D
      Dratoran
    • 1 / 1