fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. leventecsibi
    3. Posts
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 16
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by leventecsibi

    • Error in Close (partially) block description

      Hi all,
      I came across the following sentence in the description of the aforementioned block: "Closes part of the volume of the currently loaded trade. This is done by closing the current trade and opening a new one with lot size equal to the difference. So, if you have a trade with volume size of 0.2 lot and you close 0.1 lots from it, first it will be closed fully and then will be reopened with volume size of 0.8 lots. The newly created trade will have all other attributes the same, only the ticket number and the volume size will be different."

      I believe the numbers don't make sense here

      posted in Bug Reports
      L
      leventecsibi
    • RE: Unable to read/write indicator buffer data

      Hi @Xfire
      So apparently, I might need to look up a better functioning indicator or try to look into the source code and compute the currency strength manually in fxDreema. I'll see! Thanks a ton for your help!

      posted in Questions & Answers
      L
      leventecsibi
    • Obtaining 200 MA of OBV indicator

      Hi there,

      What options do I have to use the 200 MA of the OBV (or more generally: of any indicator) in fxDreema? Earlier on, I computed the simple moving average of CCI indicator for relatively low periods using the Modify Variables and Formula blocks but I would really want to avoid doing that for 200. There must be a way to achieve this!

      I was thinking perhaps the Custom MQL code block? Although I am a bit uncertain as to what snippet I need to input there exactly.

      Thanks a lot in advance for your help. πŸ™‚

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Unable to read/write indicator buffer data

      @xfire You're welcome!
      Unfortunately, I'm still facing the issue 😞

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Unable to read/write indicator buffer data

      Hi @xfire ,

      It essentially compares the strength of the 8 main currencies to each other. There are "strong" currencies and "weak" currencies in this comparison. One would trade those which are the furthest away from each other. So if at a moment the EUR is indicated as the strongest while the CHF as the weakest, you would look for opportunities to enter a long trade on EURCHF. This is the main idea.

      Of course, the notion of "strong" and "weak" currencies is nonsense. If a high value is indicated on the chart for a given currency, it means the currency has been strongly trending in the recent past. So with the previous example, if EUR is indicated as the strongest, it means we have some sort of bullish move on EURUSD, EURCHF, EURCAD etc. The strength of this move depends on the strength of the other currencies: if CHF is the weakest, EURCHF will experience the strongest bullish move, while all pairs with CHF will see the value of the CHF against the other currency fall.

      Hope this helps to clear it out a bit. πŸ™‚

      P.S.: In real time I'd surely not use the indicator chart as it is shown above. Luckily, it is possible to switch off those currencies which are not relevant for the evaluation of the current currency pair. On the image above, we have a chart of the EURUSD so, in this case, I'd switch off the other 6 currencies so that I am only left with the strength of EUR and that of USD. Then it is not confusing to use it πŸ™‚

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Unable to read/write indicator buffer data

      @ambrogio said in Unable to read/write indicator buffer data:

      @leventecsibi i have already used this indicator but give me an error in the journal (don't remember wich one)

      Seems odd. It works fine for me on the MT4 platform, I haven't yet experienced any errors. Perhaps we are talking about different versions of the same indicator, that's the only thing I can think of. πŸ™‚

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Unable to read/write indicator buffer data

      I shared it above already, the very simple code is here. It just saves the data that is read from the indicator buffers, into a csv file:
      https://fxdreema.com/shared/WLbzZ5d6c

      I really hope you guys can access the indicator as well through this shared file. I'm not sure if that gets attached too.

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Unable to read/write indicator buffer data

      Hi @l-andorrΓ 

      Thank you for your answer, I had a look at the link you provided but I did everything in order. I even mentioned it in my comment above that "I downloaded the indicator and added the mq4 file to My Indicators in the Builder," so the problem I am facing doesn't seem to be due to incorrect import into fxDreema.

      posted in Questions & Answers
      L
      leventecsibi
    • Unable to read/write indicator buffer data

      Hi all,

      I've been struggling with this for two days without any success. I would like to create an EA based on currency slope strengths, using the Currency Slope Strength indicator published here: https://www.best-metatrader-indicators.com/currency-slope-strength/.

      I downloaded the indicator and added the mq4 file to My Indicators in the Builder. At the same time, I of course tried out the indicator on my MetaTrader as well, to see how it works, what it shows etc. No problems so far.

      Then, I wanted to set up conditions based on the indicator but the EA didn't work at all. After a while, I started suspecting that the data might not be read correctly from the 8 buffers. So I set up a simple EA which writes all the content of the buffers into a csv file and the surprise came: the buffers do not contain any of the numeric information I see on my MetaTrader chart!

      I am totally puzzled at this point... Has anyone encountered a similar problem before? How is it possible that the indicator shows the information correctly in the indicator window (i.e. the indicator places the numeric values correctly into the buffers, otherwise they wouldn't appear on the indicator window I assume) but the content of these buffers are not read in fxdreema / do not arrive?

      0_1586713957510_220f7d33-2ff9-422e-84f4-472531fa2ec3-image.png
      This first image shows how the indicator appears on the MetaTrader platform.

      0_1586714133482_6691b58b-0fe9-419f-9f0f-82fce8fb4f0b-image.png
      And this second one shows the csv output I obtained.

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Multiple conditions in parallel (OR condition) for BUY orders

      Hi @seb-0 , thanks a ton, I finally had time to check it out and it works perfectly. I also learned some new practices from your code (I'm still a newbie), so thank you for that as well!

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Multiple conditions in parallel (OR condition) for BUY orders

      @josecortesllobat

      Yes, I know that. But that's the point. If the currently forming indicator falls below 75 at any point, I want out of the trade because that's enough signal for me that the trend has probably weakened.

      It seems this can't be done via the terminal though. I'm wondering what else options I might have to solve this.

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Multiple conditions in parallel (OR condition) for BUY orders

      Well, I was tinkering quite a bit by now and when I change all Candle ID values to 1, it does work. However, this implementation now differs from my original objective. I want to close the trade immediately when the CCI falls below 75 (or 50 or 25). Forcing the EA to only exit the trade after the candle is closed involves an unnecessary risk and an increase in drawdowns.

      Here's an example to best describe why I wanted the Candle ID = 0, and how setting its value to 1 might hurt my trade:

      Let's imagine a bullish trend gradually building up. My EA joins the bullish trend at some point, the value of the CCI is constantly increasing and is now somewhere in the range 80-90. Then, a sudden bearish sentiment breaks the trend and a long bearish candle appears, pushing down the CCI from, say, 85 to a mere 70. Ideally, I would want to exit the very moment CCI reaches 74.999 as that's my signal that the bearish momentum has weakened. However, with Candle ID set to 1, my EA is forced to wait until the end of the candle and face an already-too-low CCI and an already-too-low price value when closing the trade.

      I hope it is clear. Does anyone have any suggestions on how to overcome this?

      @fxdreema, is this implemented?

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Multiple conditions in parallel (OR condition) for BUY orders

      Hi @josecortesllobat

      Thank you for your answer. Honestly, I don't see how that might affect my conditions and result in only the last one out of the three being evaluated but I'm yet a beginner in fxdreema so it might be that I overlooked something. πŸ™‚

      Here's a screenshot of the Condition block's settings. All the others are identical except for the threshold values (75, 50, 25).

      0_1585818148711_e55b6e54-df9b-4260-a9e0-44119249cc7f-image.png

      posted in Questions & Answers
      L
      leventecsibi
    • Multiple conditions in parallel (OR condition) for BUY orders

      Hi there,

      I've been struggling with this for quite a while and just couldn't get my head around what's going on here. I'm building an EA which is using the CCI indicator. When a BUY trade is opened, my EA should continuously monitor the values of the CCI: when CCI falls below a specified constant, the trade should be closed.

      Let's suppose these constants are 75, 50, and 25. This means the EA would close the BUY trade the very moment CCI falls below 75, 50, or 25 the first time. If the upward trend is strong, CCI will rush up to approximately 100 and as the bullish momentum is fading away, CCI will reach 75 from above, thus activating the exit condition. In the case of a somewhat weaker bullish trend, CCI might rebound around 65 and reaching 50 from above, thus activating the second exit condition. The third exit condition (for CCI=25) is analogous.

      As you can see in the attached image, my idea was setting up an If Trade condition on top which is set to only detect if the trade is a BUY order, and then having the three conditions in parallel, i.e. as OR conditions. However, to my surprise, this didn't work out as I expected. Instead, only the rightmost (third) condition was activated to close the trades every time. Thus the EA doesn't seem to detect CCI passing through +75 from above and CCI passing through +50 from above.

      I included the settings of each of my blocks too to give you a better understanding of what I'm facing.

      Have you encountered this before? Am I wrong in my logic somewhere? Is there any other way you would solve this?

      Thank you so much for your help!

      0_1585769387720_867ea90e-974c-4411-ab10-5ce7ddc6d5fa-image.png

      posted in Questions & Answers
      L
      leventecsibi
    • RE: Can I set a condition for an indicator based on current (so not open, close etc.) price?

      Oooh! You're a lifesaver, thanks a ton, this will do! πŸ™‚

      posted in Questions & Answers
      L
      leventecsibi
    • Can I set a condition for an indicator based on current (so not open, close etc.) price?

      I am building a MT4 EA and I have the following condition: as soon as TrendCCI level drops below 50, exit the trade. The point here is whenever TrendCCI drops below that level, my EA assumes the bullish trend has weakened and hence quits the trade immediately. I surely want to avoid long bearish candles with very low closing prices, this is why I would really love to apply this in my code. However, in fxDreema I can only see open, close, high, low, median, typical, and weighter prices to apply my condition to.

      Are you aware of any solution or workaround that I could consider? Thanks a lot!

      posted in Questions & Answers
      L
      leventecsibi
    • 1 / 1