fxDreema

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

    Posts made by roar

    • RE: Array for distance of pips

      @ajmd97fx there's an example on the mql4 page:

      //--- example of sorting of one dimensional array
      double num_array[5]={4,1,6,3,9};
      //--- now array contains values 4,1,6,3,9
      ArraySort(num_array);
      //--- now array is sorted 1,3,4,6,9
      ArraySort(num_array,WHOLE_ARRAY,0,MODE_DESCEND);
      //--- now array is sorted 9,6,4,3,1

      posted in Questions & Answers
      roar
      roar
    • RE: Array for distance of pips

      @ajmd97fx I think sorting your array would be nice

      https://docs.mql4.com/array/arraysort

      posted in Questions & Answers
      roar
      roar
    • RE: this EA does want to run please help.

      @lali try these 2 changes.
      0_1612865944859_6c85afb7-cda6-4d56-9566-def0e45ac62e-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: optimise EA

      I see only a martingale. You will get better chances at a casino.

      posted in Questions & Answers
      roar
      roar
    • RE: Final back test differs from Visual mode

      @t-fah Yeah, seems there is some variation in the data.

      posted in Questions & Answers
      roar
      roar
    • RE: Final back test differs from Visual mode

      @t-fah if it doesnt repaint, how do you explain the different readings? In one picture they cross, in other they dont.

      posted in Questions & Answers
      roar
      roar
    • RE: MathSrand problem

      @alphaomega the "position created" may still have some problems.. You dont have to use that block or "On Trade" tab at all. Just modify the stops after doing the orders:
      0_1612809505081_e34e596d-1143-4f0b-b161-bde778fac3fc-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Final back test differs from Visual mode

      @t-fah from the pictures, you can clearly see that the same indicator gives different values for the same day. It repaints.

      posted in Questions & Answers
      roar
      roar
    • RE: Standard deviation channel

      @seb-0 I agree, fixed-length regression indicators are just glorified moving averages. In the example the array has a fixed size of 300, but surely you can change that according to some anchor point calculation. I often use the most recent volatility spike as a starting point.

      I dont really know if regression channels are very useful. Maybe they can be used to find very stable and linear trends: compare the amount of close prices near the regline to the amount of close prices away from the regline...

      posted in Questions & Answers
      roar
      roar
    • RE: Standard deviation channel

      @seb-0 Yeah I used to do this with blocks, but gradually learnt this more compressed method.

      Mt5 works as well, but you have to reset the variables each time before calculation:
      0_1612778054961_a3942e3e-ed4f-4893-8c0f-e374844f597e-image.png

      https://fxdreema.com/shared/6L7QrUPid

      posted in Questions & Answers
      roar
      roar
    • RE: MathSrand problem

      @alphaomega this comparison gives trouble:
      0_1612738599702_a1810fb1-c1a6-48f3-afab-e1987f747dbf-image.png

      Just set it to "equal to 0" (or just use "no trade" block), then I think your grid will work.

      Also, you dont need MathSrand(GetTickCount()) code, that was just setting some random lot sizes in my test. You dont have random lot sizes here.

      posted in Questions & Answers
      roar
      roar
    • RE: Standard deviation channel

      @jsauter86 I didnt...

      Drawing a regression line is all about finding the slope, or beta coefficient.
      https://en.wikipedia.org/wiki/Simple_linear_regression
      0_1612737960260_65dff31f-8e46-40ac-b421-2bf58bf5d234-image.png

      When beta is found, we can draw the line knowing that it passes through average x (time) and y (price) values.

      Here's how the above equation is done in mql4:
      https://fxdreema.com/shared/q3NtvMLMc

      posted in Questions & Answers
      roar
      roar
    • RE: Set Market Properties BUG

      @bryan01993 I used three symbols, those have the most data available.
      0_1612711529179_41a4d190-d593-4947-9ffe-d61a2b5d2abd-image.png

      I think its best to investigate this problem with a smaller project (and less symbols) first, so you can exclude other possible explanations

      posted in Bug Reports
      roar
      roar
    • RE: Set Market Properties BUG

      @bryan01993 selected symbol always matters, because the EA runs its code on each tick of that symbol. Also, if you select a huge number of symbols, the tester might run out of ram allocation, producing bad results. I got same result for single test and all symbols optimization (EURUSD).
      0_1612710091851_bd24e4bb-40a2-4561-92e6-7891181515ec-image.png
      0_1612710068436_ce7ecd0b-6d1e-4fa4-8c08-a82251f167f9-image.png

      posted in Bug Reports
      roar
      roar
    • RE: Read Value of Indicator Inside Other Indicator (Applied to First Indicator Data)

      @aeivan you going to have use actual mql code for that. Here's a starting point: https://docs.mql4.com/indicators/imaonarray
      I wont answer any follow-up questions, though (because I cant lol)

      posted in Questions & Answers
      roar
      roar
    • RE: Code trading week of the month

      @stomper yeah, I guess

      posted in Questions & Answers
      roar
      roar
    • RE: OR logic not working

      @drewliedadeuce ok, if RSI condition is unable to happen, of course bollinger band condition happens first. Why is that a problem?

      it no longer checks for the RSI parameter because it gets to the bollinger band first.

      The EA cannot predict ahead of time, whether the RSI will happen or not.

      posted in Questions & Answers
      roar
      roar
    • RE: OR logic not working

      @drewliedadeuce uh, please explain how you want the conditions to happen

      posted in Questions & Answers
      roar
      roar
    • RE: OR logic not working

      @drewliedadeuce just connect the blocks in parallel, so they dont depend on the rsi cross thing.
      0_1612364303276_d03e4226-febf-4c43-996f-b37a95ec8ce6-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: OR logic not working

      @drewliedadeuce you dont listen to me, lol 😄

      In block 29:

      • ORANGE (true) activates when RSI crosses below70
      • YELLOW (false) activates when RSI crosses above 70
      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 25
    • 26
    • 27
    • 28
    • 29
    • 120
    • 121
    • 27 / 121