fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Bogdaiki
    3. Posts
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 12
    • Posts 32
    • Best 0
    • Controversial 1
    • Groups 0

    Posts made by Bogdaiki

    • RE: CLOSE ALL TRADES AT A PARTICULAR TARGET

      @Bogdaiki said in CLOSE ALL TRADES AT A PARTICULAR TARGET:

      @jstap said in CLOSE ALL TRADES AT A PARTICULAR TARGET:

      @Bogdaiki of cause you can... buy why...

      To stop trading for the day then resume next day.
      Because I'm thinking in your example above all trades would close when profit is hit, then continue trading during the same day.
      I also need to count TP and SL in pips, so I use Check profit (average), because Check profit (period of time) is doing it in Money only..
      But maybe I'm wrong in my assumptions ๐Ÿ™‚

      In that case your solution it's much cleaner and shorter - thank you ๐Ÿ‘ ! Wondering how to make the Profit target for the day in pips instead of money though..!
      I have it like in the imgage but have to test if the Profit resets to 0 next day.. (I'm not sure).
      Bo-StoTactics-Cond-Day--01-11-2026_06_25_PM.jpg

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: CLOSE ALL TRADES AT A PARTICULAR TARGET

      @jstap said in CLOSE ALL TRADES AT A PARTICULAR TARGET:

      @Bogdaiki of cause you can... buy why...

      To stop trading for the day then resume next day.
      Because I'm thinking in your example above all trades would close when profit is hit, then continue trading during the same day.
      I also need to count TP and SL in pips, so I use Check profit (average), because Check profit (period of time) is doing it in Money only..
      But maybe I'm wrong in my assumptions ๐Ÿ™‚

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: CLOSE ALL TRADES AT A PARTICULAR TARGET

      @NZEFILI you can also "terminate the bot for the day, then resume the following day" with Set Flag and Check Flag.

      • Once a day you Set Flag (textual) to ON
      • Then Check Flag to be ON to run your system
      • If your Take Profit target is met, Close all Positions and set a separate flag Set Flag to OFF. Trading will stop and resume next day when the flag is reset to ON again.
      posted in Questions & Answers
      B
      Bogdaiki
    • RE: Optimization speed improvements

      Thank you all for your inputs!
      @l-andorrร  how much would one charge to rebuild something like I show in the screenshot? Everything is based on an indicator native to MT5, with some candle conditions and calculates the balance every day, taking profits or stopping losses using a variable set percentage.

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: What is executed first, "On Tick" code or "On Trade" code when trade happens?

      The number of each block might determine what goes first.
      (At least that's how it works under the same tab)
      You can edit those.

      screenshot-fxdreema_com-2024_10_15-16_42_17.jpeg

      posted in Questions & Answers
      B
      Bogdaiki
    • Optimization speed improvements

      Hi everyone,

      I've wrote and been using this EA successfully for the past year, but large optimizations take v long time, even on a 24 cores, 32 threads i9 new laptop. Although it's a huge improvement (over 10 times faster, so now I can do 24h instead of 10 days!), I'm looking for ways to improve the code.

      I saw a recommendation to edit the code and take out of the onTick stuff like once a bar conditions, do labels instead of comments, etc. I'm not sure about what goes where in the code, that's why I'm using this awesome fxdreema platform.

      So I'm wondering if I could change around some pieces of my project and place them under different events (tabs) other than onTick.

      Can you advise on what could go under onInit or onTimer or onTrade, etc...? Would that make a difference, or, since they are under Once per bar / Once a day blocks, they would not be called every single tick?

      Thank you!

      ![alt text](screenshot-fxdreema_com-2024_10_15-16_08_48.jpeg image url)

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: EA Optimization pass result is different when I backtest it

      I experienced the same issue with the optimization results showing different (more) profits than the actual single tests and different drawdown, sharpe ratio and all the other values.
      For me the problem was starting the optimization on a Saturday, when the markets are closed and it looks like my broker is feeding different tick values into MT5 over the weekend. Once the market opened I reoptimized and then the single test are showing the same profits and values as the optimization list.
      I don't know why the tick data is different though, maybe someone has more knowledge and can shed some light on this issue..

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: undo function

      How far back can we go though?.. I made a bunch of bad changes, would like to go back to yesterday's version, but I'm limited to only about 15 steps back :(...

      posted in Questions & Answers
      B
      Bogdaiki
    • Can we code custom criteria for optimization using fxDreema?

      Hi,

      I'm looking to get the Equity Drawdown Relative (in % and $) in my optimization report (or include it in a custom optimization criteria), instead of the Equity Drawdown Maximal that MT5 is using by default. So can we code this using fxDreema?

      The reason is I'm using dynamic lot sizes (which increase based on Balance) and so the Drawdown % and Recovery Factor become irrelevant for my EA optimization, because they are based on the Maximal DD.

      Thanks.

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: Check Profit and Stop EA a Day

      With a formula for checking Equity > Balance Take Profit Target and flags for trading (only if ON).
      Set the flag to ON once a day and to OFF when you hit the target (it will reset next day).

      posted in Questions & Answers
      B
      Bogdaiki
    • Can I plot a variable as a graph line ?

      Can I see my custom variable as a line / graph (similar looking to a moving average for example), that stays on the chart?

      I currently see the live values as numbers, but would be great to see the whole history, as I'm looking to see the lowest value during a backtest.

      Thank you.

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: EA Closing all trades if MT5 restarted

      You mean before restarting MT5? No, I only have MT5 installed on the machine.

      I traded on MT4 in the past, switched to MT5 for faster testing..

      Any idea on my initial question?

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: Automatic Stop for the day and Restart next day

      I want a condition to set it to OFF for the rest of the day, and time to ON at the start of next day. Trades are only taken if ON.

      posted in Questions & Answers
      B
      Bogdaiki
    • EA Closing all trades if MT5 restarted

      So... EA was running, I closed MT5 and restarted - all trades were closed, even though there was no closing condition met and EA was still active.

      Is there a way to avoid this and keep the EA active at all times (if internet connection is lost or MT5 shuts down and restarts)?

      MT5 settings for EA in the image attached.

      Thank you!

      image3.jpg

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: Automatic Stop for the day and Restart next day

      Yes, I have the ON Once a Day setup at 1:05.

      I have the flag OFF setting because I assumed that if condition is met (Equity > Target), it will close all positions and take take the profit, but then will continue to enter trades if the other criteria is met (as flag would still stay ON). I wanted it to completely stop trading for the day. Am I wrong?

      posted in Questions & Answers
      B
      Bogdaiki
    • RE: Automatic Stop for the day and Restart next day

      @jstap said in Automatic Stop for the day and Restart next day:

      Instead of terminate use a flag, reset once a day and check above buy sell, if you want you can close all trades when you set flag false.

      Thank you J! Been looking for this for so long.. I hope I set it up correctly, seems to work, I gotta test further. screenshot-fxdreema.com-2023.09.18-16_36_34.jpg

      posted in Questions & Answers
      B
      Bogdaiki
    • Automatic Stop for the day and Restart next day

      Hello,

      Is there a way to automatically stop the EA for the day (say at a percentage of profit hit) then restart next day?

      I can only do this with the Terminate function (with a Variable setup and a Once a Day condition to close all trades when Variable value is hit) - but would have to restart manually next day.

      The problem is we can't backtest this..

      Any suggestion would help. Thank you!

      B

      screenshot-fxdreema.com-2023.09.18-14_46_26.jpg

      posted in Questions & Answers
      B
      Bogdaiki
    • Trailing Stop - Multiple Levels

      Looks to me that the Trailing Stop - Multiple Levels mode only works if the Stops are bigger than the previous level. As in 20/10, 30/15, 40/20 etc.

      Is there a way to decrease the stops as the trade goes into the profit? Like this: 20/15, 30/10, 40/5, etc.

      If I set up the stops smaller or equal as the trade goes into profit, they don't change, it's not trailing and it stays at the first level.

      Not sure if this is a bug or I'm just doing something wrong..

      (I assumed that the value after the "/" is pips away from the current price, as per your description... in my tests though it looks that the value might be pips away from the opening trade price - is that the case?)

      0_1633734931656_screenshot-fxdreema.com-2021.10.08-19_14_05.jpg

      posted in Bug Reports
      B
      Bogdaiki
    • RE: Indicator value converted to pip value

      @miki Thank you so much!

      I included the Formula block right before the Buy / Sell Pending Orders.

      Tested in Visual Mode and looks like it works as expected.

      posted in Questions & Answers
      B
      Bogdaiki
    • Indicator value converted to pip value

      Hello helpful people!

      I'm stuck with a dilemma: I'm trying to make the EA place pending orders at current price offset +/- by a number of pips depending on ATR value.

      For example if the ATR value is 0.0030 at that time - I want a pending Buy order at price + 30 pips and a Sell at price - 30 pips.

      Not sure how to call the ATR value correctly.. I get "undeclared identifier"

      Thank you for your help!

      0_1612118435753_screenshot-fxdreema.com-2021.01.31-13_36_29.jpg

      posted in Questions & Answers
      B
      Bogdaiki
    • 1
    • 2
    • 1 / 2