fxDreema

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

    Best posts made by fxDreema

    • RE: Having Absolut Math inserted into Adjust field

      I actually did that long time ago, but maybe I never wrote about it: Try this: https://fxdreema.com/shared/cjhGByvF

      In "Adjust" you have this:

      = MathAbs($)
      

      Where = means that the final value will equal what is after the = symbol, it's not like +, -, * or /. And $ is the value itself. MathAbs() is of course MQL4 function.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How Open Buy or Sell After 3pip of open Candle

      Try something like this:
      0_1548369311963_6e87bf1d-7152-447d-93b0-7ac4efa72b01-image.png
      This block will create a pending order at that price, which is Candle Close of the previous candle (because I set Candle ID to 1) + 3 pips (look in Adjust). The price offset is 0.

      And the other way is to use that price offset parameter:

      0_1548369419481_e5ac33a9-5179-4e12-89dc-6b3e548df11b-image.png

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Closing all trades in one pair when target is met (equality?) when trading with multiple pairs

      Ok, you have multiple pairs, many trades, only 1 Equity and 1 Balance value. You tried to compare different values and you don't like the result. This makes me think that the values you compared are not the right ones. Can you describe what value do you want to get?

      That Bucket block is useless there. This block would make a list of trades, that's all. Then in another block you can get the results. See this:
      0_1549041840244_c458deb6-d77a-4853-8a50-8aac293d648d-image.png
      In block 5 here only a list of Buy trades is created. Then in block 8 the count of these trades is calculated... and also other values (https://fxdreema.com/demo/mt4-bucket-trades)
      The idea of those blocks is to be able to select group of trades, calculate some value out of them and use that value somewhere.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Trades closed at once with rising volumen

      I don't understand what you can't do here - open the trades or close them. But I can imagine that you opened them and you want to close them. I imagine something like this

      0_1549042798186_43fdc438-1569-4152-b68b-164a7d708e10-image.png

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Empty Value

      You want to modify the indicator itself to return 0 or to change its returned value from EMPTY_VALUE to 0?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: search chart for objects?

      Yes, depends on what the indicator have in its buffers. Only when the data in the buffers cannot be used, and the indicator really prints objects on the chart, only then you should go to work with the objects. Here are 2 examples: https://fxdreema.com/examples#Chart-Objects

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: onTester()

      Here is another idea. Go here: https://fxdreema.com/studio/MQL4 And create a new custom function (lower right corner, hit button New). Then write the OnTester() function with its contents.... something like this:

      0_1550005085776_6e37f5a1-91ab-4681-b815-423c36c8c1a5-image.png

      Then mention that function somewhere, for example in Init:

      0_1550005124789_abe12727-fb55-4af8-a1b6-77265aa0dbef-image.png

      Because the function is mentioned in the block, the EA generator will search for the function in the custom functions and will place it in the output code. Because this function is actually a system function, MetaTrader will run it when its needed.

      if (0) => this prevents the function from running, because we don't need to run it.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How to buy/sell/tp/sl at a main price level like 1.13, 1.14 ... etc?

      There is one block "Round numbers detector" which can pass at such levels.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: how i do that in fxdreema in equity ?

      To make things simple, don't make hedging strategies. As I said so many times, these strategies only make things complicated and it seems that this topic is a proof of that. The whole idea of trading is to make one number bigger - the money you have. There is nothing magical in using opposite trade instead of SL. So it's better to just close the trade and continue with the real strategy.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Is FXdreema a SCAM

      It is not a scam. The sad truth is that most of the time I'm lazy to look at people's questions and often I'm late with days. I'm talking about the forum, forum messages, emails... everywhere 🙂

      About Bitcoin payments, I don't have system to automatically approve the payments... yet... I'm working on that. To see when someone paid I rely on a message from Electrum, but if for some reason I restart my PC, then I can forget to open the program and I'm not notified in time. Now I think I can just use some mobile wallet 🙂 But in any case, I'm secretly giving more days for Bitcoin people, so even if I'm late with day or two, I compensate that.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: ATR related lot size?

      By the way, there is one undocumented thing you can do in Adjust. Normally we start with +, -, * or / and the things we write in this field are put somewhere in the code after the value. For example, let's say the value is called ATR. Then we write + 0.1. At the end we have something like this:

      ATR = ATR + 0.1
      

      ...where the ATR = ATR part is outside our reach, only the + 0.1 part is added.

      One day I added new functionality. Let's write = $ + 0.1. Then the result will be the same:

      ATR = ATR + 0.1
      

      but now we control the whole = ATR + 0.1 part. The dollar symbol is replaced with the variable that represents the indicator or whatever it is. In my example this is ATR. But let's make it different. Let's write = 2 * $ in Adjust. Then we will have something like this:

      ATR = 2 * ATR
      

      Some example here: https://fxdreema.com/shared/UNvVIVJJ

      The important thing here is to start with =. Some people doesn't even write + or - or whatever. By default, if the contents in Adjust doesn't start with +, -, *, / or =, then + is used.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Hedging Faults - Fine in Backtest, Weird in Forward Testing

      It's probably something in the project, I see you are using many Formula blocks and who knows where something fails. But to be honest, I don't even want to know and I don't want to hear that word "hedge". My advice is to forget about hedging in the same symbol. This doesn't work and will never work. Hedging in the same symbol is making the EA too complicated and hard to maintain, with no benefit at all. I guess that there are many people trying to sell this idea to naive people, but hedging is not that magical thing that they sell. Simply close the trade and continue with the real strategy.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How to find the loss/profit of the last trade in pips?

      https://fxdreema.com/shared/Pw36Uh7gc

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Button: Turn off some blocks.

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

      Here I create the button with name MyButtonName in "on Init", because I only need to do it once when the EA starts. Then in "on Chart" I detect when it was clicked (block 3). Then I load that button (block 4), check whether it is pressed or not (block 5) and do some actions depending on that. I change its name (6 and 7).

      Blocks 4-5-6-7 can also be used at any time in "on Init". Depends on how what you want to do. You say that you want to turn off blocks, so in my example you can replace block 8 with the turn off block. Or set the value of some variable, which will then be checked in "on Init". But also, blocks 4-5 would do pretty much the same job if they are in "on Tick".

      It seems that the Chart event (OnChartEvent() MQL function) doesn't work when testing on visual mode, it only works when you run the EA live.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: how can create ea like indicator ?

      You are asking for a custom indicator, this is not something that EAs do

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Integrate with Line Notification

      There is a block to send web request

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: pips or pipettes used for the blocks

      Is this word "pipette" official word to describe this kind of value? I never knew how to describe it and in the blocks now I use "price fraction". I found this https://forextradingsystem1.com/pips-vs-pipettes-know-the-difference/ and here one pipette is what one "point" is in MetaTrader.

      In fxDreema the size of 1 pip can be customized. And by default this is customized in the project settings. Click on this icon below "History" and you sill see these rules for pip size.

      In all blocks, where you see "pips", the size of 1 pip depends on these rules I just mentioned. In some blocks for certain inputs there are multiple ways to select a value, this for example: 0_1557409104591_5d173ec0-c026-40b4-80b8-eb948dfb4178-image.png You can see 3 "Custom..." options here. For other inputs it is only one way, as you mentioned. Technically I can do this for all options, but it will be full of drop-down inputs.

      The turnover option is there because of the way this block works. It compares values from the current tick with values from the previous tick, and eventually it detects a crossover. But this crossover is on such a small level, it really is detected only by looking at 2 neighbor ticks, so what stops the same crossover to be detected few ticks after? (because the price goes up and down). So, the turnover pips are there to prevent this from happening - the price needs to travel certain distance, then go back, and only then a new crossover could be detected. But sometimes it can be interesting when the price and the indicator are moving in the same direction very fast, the turnover could become useless 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Not allowed to trade after and before a specific hour

      If you want to make very custom rules and using less blocks, you can always use some of the MQL4 time functions (https://docs.mql4.com/dateandtime) in the second Condition block

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Renumbering Many Blocks Starting From 1

      Try this: 0_1559582802662_81e9296b-3577-4ca4-84f0-5421eaee3771-image.png

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: What is the difference between EA and Script

      Expert Advisor - the program that will trade instead of you. You drag it over a chart and leave it to do its job. It will work until you stop it.

      Script - I imagine scripts like extra buttons on the interface of MetaTrader. You can have for example a script called "Close Everything" and when you run it, it will close all orders. You don't have such button on MetaTrader, but you can make it as a script. A Script works when you double click on it. It does its job and exits as soon as possible. It doesn't work over the time as Expert Advisors do.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • 1
    • 2
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 11 / 14