fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. roar
    3. Best
    • Profile
    • Following 0
    • Followers 184
    • Topics 35
    • Posts 2406
    • Best 422
    • Controversial 6
    • Groups 0

    Best posts made by roar

    • RE: Array out of range at OnTradeDetector()

      @anse33 Square brackets refer to individual array elements. For example, array[1] will return the second element for an array, because the indexing starts at 0.

      Now, if there are no open orders, OrdersTotal() will be 0.
      This:
      [OrdersTotal()-1]
      will return value of -1. Arrays don't have negative indexes - its out of array range.

      Try adding a trade count filter before the block in question.

      posted in Bug Reports
      roar
      roar
    • RE: place variable in box you adjusted by performing operation

      @cesardefez just do it like in the upper picture, its fine.

      posted in General Discussions
      roar
      roar
    • RE: Redraw Horinzontale line with the same name

      Hi, I am not miro, just another bored guy, but

      try setting the "A: this block can create 1 object" to "no".

      0_1525373343361_663fac99-9354-41c1-96b7-5503f6396437-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Indicator rounding and cross (x> and x<) logic

      @sidmcfarland you have a example EA proving this bug? Maybe draw a vertical line every time the MAs cross?

      posted in Bug Reports
      roar
      roar
    • RE: Strategy Results, Good? Bad? Okay?

      @jsauter86 just a basic rule in statistics. More data means more proof. Less data means less proof.

      If you cant have more trades in a year, then you should test multiple years.
      I would love to see this same backtest result, but started 5 years earlier.

      posted in General Discussions
      roar
      roar
    • RE: Avarage of indicator signals to place buy/sell

      @migen
      https://fxdreema.com/shared/BNcQoJLzb
      This is how I would do it.. Hope you are comfortable with variables 😄

      posted in Questions & Answers
      roar
      roar
    • RE: Indicator rounding and cross (x> and x<) logic

      @sidmcfarland yeah, maybe that is the bug inside the cross operator: it forgets to check the = case, just like I did

      posted in Bug Reports
      roar
      roar
    • RE: Strategy Results, Good? Bad? Okay?

      @jsauter86 pretty good! How about 2013-2021 ?

      2014 and 2017 saw some big trends on eurusd, that would really stress test the ea

      posted in General Discussions
      roar
      roar
    • RE: Avarage of indicator signals to place buy/sell

      @migen
      To build on my previous example, I would do it like this:
      0_1527604810371_3964858e-5c95-4e94-b248-3675ad70ce93-image.png
      The 4 conditions now pass twice (for 2 timeframes) so the total "score" for buy and sell can be 8. I also added a block after the buy > sell comparison, where you can define how big the bigger "score" should be.
      This doesn't exactly separate between timeframes, but I think it's close enought to your needs and you surely can modify it from there.
      https://fxdreema.com/shared/h52NKD4te

      posted in Questions & Answers
      roar
      roar
    • Object naming with arrays

      https://fxdreema.com/shared/dCBq6vAYc
      As a test, here's an EA which draws 3 vertical lines to candles 1, 2 and 3.

      However, due to using an array to name the objects (I think), the lines and names dont match, something goes wrong..

      @fxDreema would you please look at this, or explain where I made an error

      0_1611613519497_e44f99b7-3c09-4c2a-84f7-66cb6b86252b-image.png

      0_1611613587425_9642e30d-8953-40fe-bf8f-b5f45bbe483d-image.png

      posted in Bug Reports
      roar
      roar
    • RE: Strategy Results, Good? Bad? Okay?

      @jsauter86 for me, recovery factor optimizing works better than just balance, but that might depend on the strategy

      posted in General Discussions
      roar
      roar
    • RE: How to Select "Least profitable trade"?

      @rafaelgrecco said in How to Select "Least profitable trade"?:

      What I was missing was:

      • Reseting the variable "smallestprofit" on every new loop

      We must reset the variables at some point, so the ea don't get "stuck" to some big loss that is already closed. Now it resets the variable on every tick, and also calculates it again so we always have the correct value. It is not the most cpu-optimal way but should work fine.

      • Using the second output of "Each Trade" to wait for all trades to be checked

      I think this is the correct way, we must first check all trades in order to find the lowest profit.

      The looping blocks work a bit different than other blocks, go ahead and test different logic builds 🙂

      posted in Questions & Answers
      roar
      roar
    • RE: My account bastard was blocked fxdreema fuck

      @tantan 😄 thats the way to resolve things

      posted in Bug Reports
      roar
      roar
    • RE: Strategy Results, Good? Bad? Okay?

      @jsauter86 I mean the optimization algorithm in the tester, you use that?
      0_1611446659157_21ddf545-7f2f-4f48-8931-f526a8f16010-image.png

      Recovery factor = net profit / biggest drawdown

      posted in General Discussions
      roar
      roar
    • RE: Close newest and oldest trade

      Mine works differently.
      0_1531746592329_70c4c77b-6b92-4250-be98-5fbd0efc6576-image.png
      Here, take this .mq4 and import it to fxdreema so you get the exact same project. I also added a trade count condition for comfort.
      0_1531746692796_hedge.mq4

      posted in Questions & Answers
      roar
      roar
    • When to stop OnInit()

      When viewing the generated code, the OnInit() function always contains the code shown below.

      What is the purpose of it? It seems the code stops the initializing process if the init reason is a change of symbol or change of timeframe.
      Well that seems appropriate for most cases, but why the else statement? Now the init is stopped in any case, right?

      The problem: Lets say a project contains some graphical objects on the OnInit() tab, and some boolean constant input determines if those objects should be drawn or not.
      If the user changes this boolean while the EA is running, the changes will not take effect because the OnInit() is stopped before those blocks are executed.

      I often delete that else statement manually to make those objects inputs work properly, but I'd rather have this code changed for good.

      Example: https://fxdreema.com/shared/pd9JF900c

      9cd9e8ca-f048-4b3b-aec4-1e46b3eee0da-image.png

      posted in Bug Reports
      roar
      roar
    • RE: Strategy Results, Good? Bad? Okay?

      @jsauter86 the genetic algo finds the best inputs using backtest information between 2009-2015. After that, it tests if those inputs hold in the "future", 2015-2020. If forward test fails, we know the good backtest was just luck ("overfitting").

      https://en.wikipedia.org/wiki/Training,_validation,_and_test_sets

      posted in General Discussions
      roar
      roar
    • RE: Question about 'on trade (Event Data)'

      When you find yourself copying the same block over and over again, there is usually a way to loop the process:
      0_1531850415421_54579295-345a-4684-b5e3-caf1af62268e-image.png
      This method creates as many trades as you want, and assigns a special number for each one.
      That number (group #) can then be used to control the trades.

      Doesn't really answer to your question though, just wanted to give another way of doing it 😄

      posted in Questions & Answers
      roar
      roar
    • RE: Buttons removing themselves and not functioning

      Maybe some buttons accidentally use the same name?

      posted in Bug Reports
      roar
      roar
    • RE: button problems (solucionado)

      @cesardefez add these blocks to the system. It forces the buttons to agree with the variables.
      https://fxdreema.com/shared/Bto5C2CYb

      posted in General Discussions
      roar
      roar
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 21
    • 22
    • 7 / 22