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: How to check existing trade?

      https://fxdreema.com/shared/pPFbJGAxd

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: How to check existing trade?

      Try "on Trade" event. There is a block to filter the event when some trade closes (by TP, if needed) and then put "Close trades".

      For the other thing, why don't you try this block "Round numbers detector", I think it does exactly what you want to do. Write 0.0015 inside and connect one Buy now and one Sell now to it's outputs.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Timeframe Setting In EA Blocks

      Sometimes I play with fxDreema trying some simple strategies, mostly for fun. The history data is crap, but what can I say 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: New EA mt4 BBands.

      I don't have the indicator so I can't check it, but you can always use "Draw arrow" to check where things does not work. Connect this block after another block to see if it passes.
      I think you don't need blocks 9 and 10.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: negative variables

      This works for me: https://fxdreema.com/shared/kkdXLDHPc

      Check if your variable is numeric type. Or is it variable like this at all, because there is another type of global variables. Or give me more details, some screenshot for example.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: opening/saving projects

      This is confusing because fxDreema is web application by nature. Imagine the web version, it uses database on the server and stores projects there. You log in, do something and log out - everything remains on the server. Getting file from it is then exporting. Adding file from PC is importing.
      The local version looks to be Windows program, but it is basically the same as the web version. It also uses database (local) to store all projects. Exporting files can be called saving here.

      When exporting/saving .mq4/.mq5 files, fxDreema adds some data at the end of the file, project data, which then can be used to import the project from that file. The same way as .xml files.

      Projects - Load project: This shows all projects in the fxDreema's own database. These are not .xml, .mq4 or .mq5 files.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: confuse with martiangle

      Here is something: https://fxdreema.com/shared/Bfy2JuzPb
      Not sure if it's correct, but at least some example. Block 4 loads only the last running trade, see the parameter that is "1" inside.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Problem with custom indicator ex5

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

      I'm not sure about the way positions are opened, I used those blocks in the way you use it, but at least indicator signals are there

      And please, try "Indicator tester" block at least once

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: confuse with martiangle

      Martingale is to double lot size after loss. Like this:

      Buy 0.1
      Loss => Buy 0.2 (2 x 0.1)
      Loss => Buy 0.4 (2 x 0.2)
      Win => Buy 0.1 (reset)

      Or Sell. Or Buy, then Sell. What matters is the lot size, which depends on profits/losses.

      When do you want to double lot size and when do you want to reset it?

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Problem with custom indicator ex5

      I always recommend to use "Indicator tester" before doing anything else with a custom indicator. Also somewhere above I said that this indicator gives us values when Candle ID >= 1. How do I know that? I used "Indicator tester" 🙂

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: confuse with martiangle

      There is a block "Buy now (Martingale)" which does the work with lots automatically. Well, it creates a new trade only if all trades are closed. Otherwise I will add "Martingale" as a money management option in "Buy now" and "Sell now" and I will hide this "Buy now (Martingale)" later... but for now it is there and will work.

      The other things... I can't understand very much 🙂

      Maybe something like this: https://fxdreema.com/shared/tCDFePZme I almost believe that i'm far away from your idea, but you can check this anyway.
      Also check "Check current unrealized profit" block, which checks the profit/loss from group of trades.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: how to apply an indicator to another indicator?

      This is not possible with blocks. At least not in Condition, because it allows only 1 indicator to be selected on a side, while indicator over indicator - this is two indicators.
      And by the way I'm not sure if that is possible in the EA. I know that function: http://docs.mql4.com/indicators/imaonarray but all the examples with it are for some custom indicators 😕

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Expert advisor with MA

      For the EA indicators are only numeric values. Bollinger is similar to MA, so it is possible to cross them or anything else that you can do between two MAs or two Bollingers

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Problem with custom indicator ex5

      Indicator names must be the same as the file names (without extension). Your was "pz-turtle-trading-mt5 1.0", while the indicator file name is "pz-turtle-trading-mt5.ex5". Also I fixed some datatypes from double to bool, but this is not so important.

      posted in Bug Reports
      fxDreema
      fxDreema
    • RE: Need Help with MA Strategy

      ATR gives us values like 0.0014, which I call "price fraction" in some blocks, and maybe "digits" in others... if I missed to fix it. "Pips" expects values like 14. Of course you can multiply ATR by 10000, but this "price fraction" is already available, so... https://fxdreema.com/shared/qRuutgoU

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: help :: make EA open&close deals by open&close candle

      Practically this is the same thing, the same event.

      Many people ask for candle close, and let's say that this is something that happens on the last second of our timeframe. But there is a problem with it. MetaTrader has this "On Tick" event and the EA reacts on it, but it does not have "On Candle Close" event. Well, we can make it by creating endless loop and waiting for the second to become 59 and fire that even (call some function), but this is possible in live only. When backtesting, the EA is controlled by this "On Tick" event and it only does something when a new tick is "received". But ticks are irregular, some can come in :58, the next can come in :59, so how can we know from inside the EA which tick will be the last tick of the current candle? I don't know how. And if we create some endless loop and backtest it, the EA actually stops on it, it stays forever in the same tick.

      So... "Once per bar" when placed under "on Tick" does the job to detect the moment when a new candle is created. Yes, it can be few seconds in the new minute, but it's pretty accurate and works well 🙂 So my suggestion is to place the "Close" block before "Buy" or "Sell" one.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Custom Loop for Testing Moving Averages

      Arrays are too much for EA builder, so will suggest to create some custom block, starting here: https://fxdreema.com/studio/MQL4
      Use ~next~ where the condition will be true, it's like return, but instead it will be replaced with function calls for the next blocks.

      Or use 4 conditions 🙂

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Attach Manually Opened Trade To EA

      Executing "Buy now" creates new Buy trade immediately. Executing "Sell now" creates new Sell trade immediately. No matter what the magic number is. When to execute "Buy now" or "Sell now" - this is the big question.

      This: https://fxdreema.com/shared/XX8SjCU2e has MagicStart = 0 and opens new trade only when there is no manual trade ot trade created with this EA. I tested it, it works for me
      This: https://fxdreema.com/shared/oPb1HOM4b opens trade with MagicStart = 1234, but checks Manual trades before that. In result it opens trade on each tick until I create manual trade (with magic 0). Again, it works for me.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Time counter

      Normally you check past indicator data. Click on "More settings" and you will see Candle ID there. This is at which candle you want to get value. 1 = previous candle. 2 = prev. to previous. And so on... positive values means that you are going past into the history. Here is some info: https://fxdreema.com/documentation/gett ... indicators

      So it is the opposite of what you are thinking. Instead of looking at conditions now and say "I want to buy after 30 minutes", at the current time you are looking 30 minutes back to see what were the conditions. This is how normally EAs are made.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • RE: Attach Manually Opened Trade To EA

      Again, Magic number is just a property for each order (trade ot whatever you call it). This property is given to it when it is created, and then it can't be changed. It is then used to filter that order out of all the others, because they are all in the same house. It's almost like filtering trades by type - Buy or Sell - that type is almost as magic number.

      In Buy now and Sell now, which are the blocks to create new trades, you give some magic number, which depends on MagicStart.

      Magic Number = MagicStart + Group number.

      Because normally MagicStart is some 4-digits number, the magic number of trades created in the EA is something like 1234. Or 1235. Or 1236... if Group number is ised.

      Then, when you want to load and check trades, blocks like "No trade is running" are used. These blocks can see all the trades, no matter of their magic number, but there are filter options to choose which one to see. You want only Buys - filter then by type. You want only EURUSD - filter them by market. You want to filter them by magic number - go to Group settings. And there are some settings for that. By default it is set to the default MagicStart (plus 0), so only EAs made by this EA wilbe filtered. Additionaly in "Manual" option only those with magic number 0 should be filtered. Or in the "All" option - all, no matter of any magic number, really all that are available at the moment.

      posted in Questions & Answers
      fxDreema
      fxDreema
    • 1
    • 2
    • 278
    • 279
    • 280
    • 281
    • 282
    • 374
    • 375
    • 280 / 375