fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. fxDreema
    3. Posts
    • Profile
    • Following 0
    • Followers 691
    • Topics 32
    • Posts 7485
    • Best 277
    • Controversial 18
    • Groups 1

    Posts made by fxDreema

    • RE: Close Trade by Order#

      I think that it will be difficult for you to do that manually, after all a ticket number normally looks like 938549124

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Close Trade by Order#
      1. You are probably talking for the ticket number. Somewhere deep in the code fxDreema works with ticket numbers, but there is nothing about ticket numbers on the surface. You can find a trade with certain ticket number if you know it, but why...

      2. I did this option for 4 hours one day and I'm not very proud of it. The status is this blue text on the bottom, it can be changed in every block. Once I decided to remove this option, but someone wanted to use it and here is it again. Now I'm not sure if this is very useful. You can create texts here and there with Draw Text.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How to use 2 volume modes

      I did this MM back then looking at some explanation somewhere and like other MM it was not explained for the world of Forex, so I improvised a little bit. Is it wrong? To be honest, I am really really bad at mathematics, as you can tell.
      But anyway, because my idea is to not use this MM from the block and to use some formula instead.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Check number of wins

      Here is some example that collects other data, but you will get the idea: https://fxdreema.com/shared/7G9K2SpHb
      I'm using variable here. First, it needs to be reset if you are gonna add to it, so I am resetting it before the cycle. Then add a value to it and exit from the yellow output of the pink block.
      Here is an example with only 2 blocks: https://fxdreema.com/shared/ti3s2KHkd

      FILTERSS works for me. Check if the input is really true or for any errors in the logs

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Strategia one

      Ummm... is there a problem or you just want to improve this?

      I can suggest to reuse blocks. What I means is to use less blocks as possible, use one block for multiple actions. Like, you can probably have 1 "Buy now" and run it every time with different input parameters. This requires some Variables, but this is how things happen normally in the programming world. I can also admit that it's not always possible to reuse blocks, after all this is not a programming language and it's not so much flexible, but do that when possible.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Draw text placement

      There was a guy who had fast connection and still having some problems. I don't remember what was the problem exactly, but it was something that is impossible to be fixed, because of the way MT4 works 🙂

      Commissions does not depend on the speed, they exists when the spread is low. They advertise low spread, but there there are commissions, so at the end it's like you have bigger spread 🙂

      Swap is what happens when you have slow connection. When you send a request to put a new trade, there is a new price on the server already and the open price is different. Even more problems can come from this when you also have small stops. The thing is that in the request the Open Price is a price level, SL is a price level and TP is a price level. The trade can be opened at different Open Price, but the server does not touch SL and TP, so eventually one of them can be found on the wrong side of the open price.

      For example, you want to open a new trade at 1.0000 with SL = 0.9997 and TP = 1.0003. But until your request reaches the server the price is already different and the trade can be opened at 1.0003. The Open Price is modified, but TP not and now it appears wrong because it's at the same price as the Open Price. The result - no trade, only error message.
      Unfortunately MT4 does not send SL and TP as a relative values, like 0.0003 from the Open Price. It sends them as an absolute values and the problem comes from this.
      And there are other problems like this 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Draw text placement

      I don't see the link between X/Y and the commissions, but I can say that objects have only absolute positions in MQL4. At least I don't know to put an object on the center, and then when I resize the chart, the object to be still on the center. The options in these blocks (Draw....) are all the options available for the given object with all of their possible values. Nothing is missing and unfortunately there is no positioning in % 🙂

      I think that the biggest problem in this backtest result can be... is it real or you are somehow hacking the disadvantages of the backtester 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Using a button to run a task

      Try this: https://fxdreema.com/shared/Rb2GB8dNc

      It seems that MQL4 buttons are not exactly buttons, because they are either pressed or depressed, at least visually.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How to use 2 volume modes

      I think I get your idea now. And the option of Fixed Ration will not be needed, but some calculations - yes. If I remember correctly, the lot size at any given moment can be calculated for Fixed Ratio, because it depends on the profit that is realized.

      If our start balance is $1000, the initial lot size is 0.1 and we increase the lot size with 0.01 every $100, then can we calculate what will be the lot size when we reach balance of $3050? It will be 0.3 lots, right?

      0.3 = 0.1 + 0.01 * (3050 - 1000) / 100

      Well, the result is not exactly 0.3, but it will be rounder to the nearest correct value automatically when you put it into the input field.

      And if the chosen values are exactly these, there is no need for Ryan Jones, because at $5000 the lot size will be 0.5, at 10,000 it will be 1 lot, everything is linear and the calculation can be simply Balance/10000.

      So you need Ryan Jones to make thing non-linear. I mean, linear to the profit, but non-linear to the balance. In this case I'm not sure how you will synchronize this MM with another one, which will probably be linear (to the balance).

      I'm not sure and this is only my feeling, but I think that for the first few profits you will use the lot size calculated from Ryan Jones, and then it will just start to rise too fast to ever reach it with the other MM. Or the opposite.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: need help

      You want to average, to add volume on loss. Here is some example: https://fxdreema.com/shared/5rADt23fc I will also suggest to do Martingale instead, because you will have less trades to take care of, and all those pink and blue blocks will not be needed. Also, be prepared for this: http://prntscr.com/7ax4zn 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trailing Stop Help

      If you want to define, modify and check some variable, there are many examples here and there. The other thing - to control each trade by itself... well, things are going to be creative here.

      I was thinking about this problem and I still don't know the best answer. The problem comes from the fact that we can't store much custom information for trades and orders, and this information to be available from everywhere. Let's say that we can use the "Comment" attribute to store some information, but the problem here is that the comment is limited to something like 32 symbols. We can store information in variables, but it's lost when the EA is removed. We can store information in files, but then how will EAs fight for it, and file access is generally slow. We can store information in graphical objects, but such an object exists in a single chart only.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trailing Stop Help

      Trailing stop block works in the current moment. Also, Candle[1] means the previous candle, but that candle changes when a new one appears, so Candle[1] is not always the same thing.

      You want to get some value from the previous candle in the moment when a trade is created and use that value in future. If you always have 1 trade at a time, then the easiest is to use some variable and store that value in it when a new trade is created. Then, while the trade is alive, use that variable where it's needed.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How to use 2 volume modes

      Just give me an example, how the lot size changes in time?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: close trade

      Maybe this will help: https://fxdreema.com/demo/mt4-wrong-closing-rule In short, break the connections before 49 and 51

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Including a News filter

      I got some error in it's code that function TimeGMT is already a system function, but I renamed it in the code. Now I only got this: http://prntscr.com/7abm1e

      Otherwise buffers are explained in the code like this:

      double 	ExtMapBuffer0[];	// Contains (minutes until) each news event
      double 	ExtMapBuffer1[];	// Contains only most recent and next news event ([0] & [1])
      double 	ExtMapBuffer2[];	// Contains impact value for most recent and next news event
      
      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Including a News filter

      I think that this indicator only prints those texts in the lower left angle and all the useful information is located there. This data can be read... and then it needs to be processed, to get what is needed from it.

      The biggest issue for me is that I personally don't understand those news and how they can be used 🙂 I also imagine some indicator that also keeps history data of previous news, so it can be backtested, if that is possible.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Get EA to adjust itself based on price of its last trade?
      1. It just shows where the level is. Nothing will happen if it is removed. But in other variant you can actually use such line to mark the level => you will compare the current price with it's level, not with a variable. But variables are faster, that's why I decided to use a variable.

      2. Performance. While you don't have a trade. the pink block will not be executed in variant 2. It can be optimized even more (with more variables), because you don't need to recalculate this value on every tick, but it should work fine line this.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How to manage trades by magic number

      "No trade/order exists"

      The Group number... I don't know, it depends. Better learn what is the idea of the thing called "Magic Number", then you will get the idea of this Group number better and you will know when to use it.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Including a News filter

      I always repeat that there is a difference between EAs and Indicators. EAs are supposed to decide when to create/modify/close new trades and orders and for that they check some values to find the right moments to do something - to open, to modify, to close. Indicators are those robots that should be used to make various calculations, to print some data on the chart and to give signald to EAs.

      You can see that I have created few blocks in this group called "Signals from candlestick formations". Now I want, and I will probably remove some of them. Because these blocks simulate the work of indicators, but in the context of the EA, which is not the best idea. Why it's not the best idea... because the code for each of them is more than what it could be if they are written as indicators, because I need to cache in this code. All indicators have this out of the box. And the second problem - visualizing stuff. While indicators do that also out of the box, in the EA I need to create objects.

      It's just not a good idea to make the EA to work as an indicator. If this news indicator is indicator, why not using it as such 🙂 I just opened it and I don't know how, but...

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How to use 2 volume modes

      Fixed Ratio == Ryan Jones

      I don't see how upper volume limit can be a string value, this is the maximum lot size that is numeric (double), like 0.8. And there is an input field for maximum lot size for all MM: http://prntscr.com/7a6epn

      posted in Questions & Answers
      fxDreema
      fxDreema
    • 1
    • 2
    • 218
    • 219
    • 220
    • 221
    • 222
    • 374
    • 375
    • 220 / 375