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: Break even ?

      @zackry Yes, that should work, now just test it with visual backtest 🙂

      posted in Questions & Answers
      roar
      roar
    • RE: Break even ?

      @zackry yes, should work

      posted in Questions & Answers
      roar
      roar
    • RE: 100 ROI monthly System Discussion

      @oladunni02

      https://fxdreema.com/shared/G4kbgalec
      Here's how to find that average. Understanding the use of variables is crucial
      0_1561122784739_e2e58dc6-c787-4c66-a67b-41b5ee60770a-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Getting a value into the Input box

      @line
      First, create new constant:
      0_1561314716642_d17394d2-8902-4c1b-b0dc-4042630720c0-image.png
      Then use the constant in the adjust field:
      0_1561314741578_249f60aa-481a-42f0-b8ab-5eb249f01896-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: L'indicator AD

      0_1562939635507_850c9644-7c96-48c7-a5a1-55d66627bda2-image.png
      This means rising. Experiment with the candle ID

      posted in Questions & Answers
      roar
      roar
    • RE: A Place to discuss, optimize and share profitable Ea's?

      @wralyn I'll not bother to go into too much detail, but usually my approach is this:

      1. just sell highs and buy lows, timeframe M5 or M30. Use H4 orD1 to identify the general "market phase"
      2. find a way to do this so the effect of long trends is minimized

      Sell at upper bollinger bands, macd cross, RSI 70, set limit orders above price...
      Also, always filter out quiet periods using ATR or st.dev. You can't make profit if spread makes 20% of the micro-swing.

      posted in Questions & Answers
      roar
      roar
    • RE: Ea not opening trades? any idea why?

      @wralyn It does open trades for me. Maybe it is your backtest settings - try different timeframes and different model accuracy, and also reset the inputs from expert properties

      posted in Questions & Answers
      roar
      roar
    • RE: Getting values from other Indicators

      @zackry Hi. I don't really know much about custom indicators, they are too much hassle for me.
      Those values shown as object are probably calculated with some simple algorithm. I would just find out how they are calculated, and just copy that part to my EA. The custom indi is an unnecessary complication

      posted in Questions & Answers
      roar
      roar
    • RE: Getting values from other Indicators

      @zackry Ok, lets study the mq4 code:

      • The first 3 values ("PT", "SL" and "ATR") are probably calculated by these 3 functions:

      0_1563979750141_d2318c2a-d4fe-41ac-9bf9-7edddb850de1-image.png

      • The "RRR" is here:
        0_1563979838176_6d9c1f97-3da6-4ca6-9a0f-a4cf48f16617-image.png
      • The "Risk" is just the Risk_per_Trade constant
      • The "Lots" is probably here:
        0_1563979985382_f69da118-cbbb-4a91-ad3b-992ac042cc3f-image.png
        money is your account equity, pip_value is a tool for converting pips to raw number:
        pip_value = tick_value = MarketInfo(Symbol(), MODE_TICKVALUE)

      Hope this gets you started 🙂 Ctrl+f is useful when browsing the mq4 file

      posted in Questions & Answers
      roar
      roar
    • RE: Getting values from other Indicators

      @zackry
      You must first declare the constants and variables in your fxdreema project.

      The red ones (ATR_TimeFrame, Risk_per_Trade, etc...) goes to your fxdreema constants list
      The black ones (ATR_pips, RRR, lots) goes to your fxdreema variables list

      posted in Questions & Answers
      roar
      roar
    • RE: Getting values from other Indicators

      @zackry Here is the ATR_pips calculated:

      https://fxdreema.com/shared/ap4ilIBmb

      0_1563983215787_93c3cf13-b66e-40c2-b371-f89b9ae4c42f-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Getting values from other Indicators

      @zackry No problem lol

      And yes, just set up the constants and parameters, and then copypaste the lines from mq4 to calculate

      posted in Questions & Answers
      roar
      roar
    • RE: Getting values from other Indicators

      @zackry Honestly, I don't have a clue - try it 😄

      I guess you can also leave it empty and use the fxdreema block "set current timeframe" instead. Whichever fits your project

      posted in Questions & Answers
      roar
      roar
    • RE: Getting values from other Indicators

      @zackry
      https://fxdreema.com/shared/UprSbpyKd
      I got it printing some values.
      We were missing the pip_value calculation, so that was always the default 0 -> EA crashes trying to divide by 0

      I added the pip_value to the upper "modify variables", so the value is updated before used in the division.
      The original EA author uses pip_value and tick_value to differentiate between symbol types. I think the "pip" is not correct scale in our design, try dividing it by 10 at some point...

      Btw, you shouldn't use many comment blocks simultaneously, because the text will be overlapped

      posted in Questions & Answers
      roar
      roar
    • RE: Getting values from other Indicators

      My approach:
      When buying, select the order with loop block, then use OrderOpenPrice()+OrderStopLoss() functions to calculate the 1:1 level.
      1:2 level would be OrderOpenPrice()+OrderStopLoss() * 2 and so on...
      Bonus: no pip values, universal symbol compatibility

      You can just copy-paste these blocks after your buy: https://fxdreema.com/shared/2jZ5X59Qd
      I'm getting an error though, not sure if it is just my demo account

      posted in Questions & Answers
      roar
      roar
    • RE: Getting values from other Indicators

      It seems OrderStopLoss() is actually a level, not price fraction.
      This line calculates the 1:1 level:
      OrderOpenPrice()+(OrderOpenPrice()-OrderStopLoss())*1
      1:2 level:
      OrderOpenPrice()+(OrderOpenPrice()-OrderStopLoss())*2

      Now it works with the text object. I don't really know how the price label works.
      0_1564073899640_55293e31-d13f-4aa8-a21a-82239ddf06f5-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: MT4 optimization for indicator settings

      @keshb96
      Make a constant and use that in all blocks:
      0_1567689739901_85d158dd-f17b-4b79-8b3c-93048368eb1f-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Check a condition for a period since last trade was closed

      Hi @trader-philipps!

      Here's how I would approach this. It might still have some bug, I'm too lazy to properly test anything.
      Blocks:

      1. Load the last closed trade
      2. Save its ticket number
      3. Use custom code to get the trade closing candle ID
      4. Do something closed_ID times. When this process starts the first time:
      • set our final condition to FALSE,
      • set iteration ID to closed_ID

      When the process makes an iteration, decrease iter_ID by 1.

      1. Now we can just check the condition with MA indicator, using iter_ID in the Candle ID fields.
        If this condition is a success, modify variable belowcondition to TRUE
        0_1567877621370_773c2697-4173-459b-84f3-99e25c54f427-image.png

      Hope this helps.
      https://fxdreema.com/shared/JOQCkRG3e
      If you import the .mq4, you get the correct variables as well.
      0_1567877553885_check past.mq4

      posted in Questions & Answers
      roar
      roar
    • RE: Problem Calculate Profits in Open Price (METATRADER 5), Image+code

      I have no idea how those trade buckets work. Maybe trading costs makes the difference.

      I would just use a variable and a loop to calculate any information. It's easier to troubleshoot:
      https://fxdreema.com/shared/eOts10xOc

      posted in Questions & Answers
      roar
      roar
    • RE: How to include library?

      Hey @fxdreema, could you please shed some light on the library compability? Being able to use the statistical library would be equivalent to anabolic steroids for my projects 😄

      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 8
    • 9
    • 10
    • 11
    • 12
    • 21
    • 22
    • 10 / 22