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: why do i get different results from different timeframes?

      One reason is history accuracy. If you test on H1 open-only, the bot can't open a trade at 02:13 -> that trade will be opened at 03:00. Closing trades will have the same problem.

      Another reason is that some block still uses "current" timeframe

      posted in Questions & Answers
      roar
      roar
    • RE: Need some advice regarding this

      @zackry Oh, yes thats mql5 there.

      OrderLots() should work for mql4:
      https://docs.mql4.com/trading/orderlots

      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: Getting values from other Indicators

      @zackry
      The Price section, replace Candle with Value, and then select text(code input)

      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

      @zackry
      I see. Well, at that point we already know the open - SL difference, lets just use that... a sec

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

      @zackry
      What is the plan here, again? Do you need a horizontal level or text? If level, how should it be calculated?

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

      @zackry Yes, it definitely will cause problems with JPY. This is why I try to avoid pip values altogether.

      Anyway, when you get it working on EURUSD, you can generalize the pips with the function MarketInfo(Symbol(), MODE_TICKSIZE)). I don't exactly know how to do it, but I think this is what the custom indi uses.
      https://docs.mql4.com/constants/environment_state/marketinfoconstants

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

      @zackry
      0_1564064965843_4736e0fd-7692-4ebc-92f6-ca743644edd5-image.png

      See the "adjust", now the pips is raw price. For example, 20 -> 0.0020

      posted in Questions & Answers
      roar
      roar
    • RE: A simple inside bar... will be the end of me.

      @daedalus
      Total size will not check any levels, so it is not very accurate method.
      I think it is best to use that simple HH-LL comparison, it should work:
      https://fxdreema.com/shared/lfV7BQdD

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

      @zackry said in Getting values from other Indicators:

      will it be possible to use other indicators entirely into the project like this so that we don't have to give the indicator along with the EA when giving the ea to someone?

      Yes. The functions utilized (MarketInfo(), MathMax(), AccountInfoDouble(), etc...) are just reqular mql4 code, nothing is "tied" to the indicator

      @zackry said in Getting values from other Indicators:

      @roar can you please take a look at this , if its the right way to put the Risk to reward ratios? because some thing is wrong

      https://fxdreema.com/shared/sSdL4sk9b

      i am trying to put price labels at 1:1 1:2 1:3

      0_1564062898435_2b8e7fac-0941-49fe-94b2-19495c6c0b17-image.png
      I think you must first convert the SL pips to a raw price number, even though you selected "as price fraction".
      The EA is now trying to calculate the final level (ask price + SL) as something like 1.1123 + 20 = 21.1123

      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: Price rising/falling X pips without retracting Y pips

      I think this animal can calculate the retracement for you:
      https://fxdreema.com/shared/p08DyCEKb
      0_1563998441855_bc329127-ba1f-4b5f-8277-4f326eab48cf-image.png
      0_1563992143104_1ff09afe-9ce7-466e-90ab-beeae86372b3-image.png
      0_1563992153340_8a8cb2ec-db9e-4a78-bc62-f0c53ad5750d-image.png

      It's just a rough example, sorry I'm in bit of a hurry 😄

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

      @zackry

      Its here:
      0_1563992069765_3e8ce71b-9e4a-454b-92ec-36d6aa0b6de5-image.png

      The rest is just sherlock work

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

      @zackry

      It points to the modify variables block, section 5:
      0_1563991536973_c2077584-f71d-4a87-86db-bb03849ee3c2-image.png

      SL_pips or pip_value has been set to zero, that must be fixed. Check your constant values

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

      @zackry
      When trying to backtest, it reports an error with our math:
      0_1563991361766_439e45af-0005-4ee2-bd1f-774fe3aae70d-image.png

      Lets check that line from mq4

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

      @zackry
      I don't know much about the button mechanics. But in any case, there is no need to draw the same button On Tick, again and again... You can put the draw button in the On Init tab, so they are drawn at the beginning and stay there.

      Yes, a numeric value would also work in the comment block. The default setting "Text" would not work, though.

      Text (code input) is a universal setting, in the field you can right-click variables, just write the same variables, use mql4 functions, anything

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

      @zackry Well there is no way to know it, really 😄

      You are learning this super fast, it took me literally years

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

      @zackry Such an advanced project will need some troubleshooting at some point.
      Use the comment block and visual backtesting to figure out what the EA is thinking
      0_1563988093269_f6a2a1ec-f773-4a52-9eeb-f64edf12db66-image.png

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

      @zackry
      You can't modify constants (the brown ones) in the "modify variables" block. Simply put the correct values in the constants list:
      0_1563987838533_1dd74241-8209-4eaf-bae7-31aaa718c1f4-image.png

      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 89
    • 90
    • 91
    • 92
    • 93
    • 120
    • 121
    • 91 / 121