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: How to stop a buy or sell order when the condition is met with one per tick?

      @khalids222 said in How to stop a buy or sell order when the condition is met with one per tick?:

      @roar said in How to stop a buy or sell order when the condition is met with one per tick?:

      I think the error is somewhere else. Can you make a very simplified example?

      0_1575395704723_buy1.jpg

      There is a cross pass: it is not bought and sold

      But you have buy and sell trades open. You don't want multiple open buys or sells, right? Or do you want it?

      Should the EA close the first buy and now open new buy? Just pay commission?

      posted in Questions & Answers
      roar
      roar
    • RE: How to stop a buy or sell order when the condition is met with one per tick?

      @khalids222 I think the error is somewhere else. Can you make a very simplified example?

      posted in Questions & Answers
      roar
      roar
    • RE: How to stop a buy or sell order when the condition is met with one per tick?

      @khalids222 I have used the "No trade" block for 5 years now and 100% of the time it has worked just as expected.
      Why do you think it causes a problem?

      posted in Questions & Answers
      roar
      roar
    • RE: Time filter blocks operation

      @seb-0 Yeah it surely takes some time and lots of testing. It's not that bad after all - failed backtest doesn't cost very much real money, lol.

      Using a variable would be most efficient in this case. Just make a variable barcount increase +1 on every bar, and set it to zero when opening a trade. Now you can just check condition: barcount > 5

      https://fxdreema.com/shared/3dIyLzxCc
      This example trades the cross with minimum 5 bars interval. See how I modified the variable inside the regular blocks.

      posted in Questions & Answers
      roar
      roar
    • RE: Time filter blocks operation

      @seb-0 You are thinking that "every n bars" counts some bars, and after the bars, always passes. That is not the case.

      If n=5, then
      bar 1 PASS
      bar 2 NOT
      bar 3 NOT
      bar 4 NOT
      bar 5 NOT
      bar 6 PASS
      bar 7 NOT
      bar 8 NOT
      etc...

      So you will only get a trade if the PASS happens same time as MA cross.

      0_1575320136109_4bc2ead3-1ccf-4cdf-af53-a5e676760151-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: BE lets me go crazy - i really need help after watching every tutorial and x hours

      @tom-5 If you turn off block 85, everything below it will also be off, because the signal never reaches the below blocks.

      Your problem is easier solved with a simple variable, look them up 🙂

      posted in Questions & Answers
      roar
      roar
    • RE: How can a SL based on currency be set up?

      @l-andorrà sorry, I should have left some more detailed explanation with my scribble.

      1. Is the 'conversion_pair' variable of a string type? What is its default value?

      Yes, it's a string. It has empty default value - the value will anyway get replaced here:
      0_1575024070744_a8266dba-8559-4a91-a472-050c1ca5d8e1-image.png

      1. What if the account is in USD and not in EUR? Some symbols are 'USD'+conversion_pair and others conversion_pair+'USD'. Should I modify the formula text on a case by case basis?

      The "lots" you buy or sell are always in the base currency. So the first part of the formula calculates the SL in terms of that base currency, whatever it is.
      0_1575024318477_d199af0d-80da-4b50-9349-9daac701ce80-image.png

      Now that we have solved the SL in the base currency, we have to set a multiplier to get the correct EUR value (or dollar, or whatever you like)
      0_1575024458980_9115a1b2-c8ff-4588-b216-ab8f083b4ce6-image.png

      This is done by getting the current exchange rate of the base currency of our trade and EUR (or dollar, or whatever you like).
      I find the exchange rate by building the symbol in the string:
      0_1575024585294_9e535e3e-60b1-4357-a76c-7a9533cc1097-image.png

      Note that I select the "Quote currency" instead of "Base currency", because we are sort of reversing the effect.
      If you need the SL in dollars instead of euros, just replace EUR with USD in the string. Just those 3 letters, nothing else. This should work in all cases, no matter if its USDxxx or xxxUSD, the EA will always know the base currency.

      BUT you need to have that EURxxx currency in your symbols list, otherwise you must take a detour:
      If EURJPY is missing from your mt4, use USDJPY * EURUSD to get the value.

      @trader-philipps I couldn't get proper results from your example, maybe I tested it wrong 😞

      Here's my version in mql4: https://fxdreema.com/shared/VO1OeuqKb
      And a backtest result on AUDJPY, sl and tp set to 50 euros (note the average profit/loss differs a bit from 50, because the EA doesn't take trading costs into account.
      0_1575025365626_e7583cf9-0236-4837-b035-9cf0a50aa370-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: WHAT is this Error

      @zackry The error doesn't appear in the code, because it's hidden inside a variable.

      Some variable gets a value 0 and then the EA tries to divide something by that variable - that's illegal!
      0_1574954944205_16485a27-7a20-4b08-bd10-4299cd5ebdf2-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: How can a SL based on currency be set up?

      @l-andorrà When I think about it, actually it doesn't get that much more complicated.

      You just need to do the final correction with a pair EURxxx, where xxx is the base currency of your chart.
      Example: when trading GBPJPY, sl formula is now:
      SL (price fraction) = risked money / (lotsize*100000) * iClose(EURJPY,0,0)

      https://fxdreema.com/shared/mmBhaLp9
      Check this example project, it's mql5 though

      posted in Questions & Answers
      roar
      roar
    • RE: How can a SL based on currency be set up?

      @l-andorrà It gets complicated when applying to other pairs - you have to convert the base/profit currencies to eur/usd currencies to "standardize" the pips.

      When trading eurusd, you can just put the formula into the box:
      0_1574804891207_ecb71f64-4558-4554-95b6-673de92c8089-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Bollinger bands

      @shovel52 said in Bollinger bands:

      Why is it usually "condition true" ?

      Check my example - the condition is true, because 15 is more than 1.1070.

      There is no glitch, the program just does what you tell it to do

      posted in Questions & Answers
      roar
      roar
    • RE: How can a SL based on currency be set up?

      @l-andorrà If you trade EURUSD and want the SL as euros, here's the formula:

      SL (price fraction) = risked money / (lotsize*100000) * iClose(NULL,0,0)

      That last part is the current EURUSD value

      posted in Questions & Answers
      roar
      roar
    • RE: Bollinger bands

      @shovel52 Yes it works for longs, because this silly condition is usually true:

      • lets say, candle upper wick is 15 pips
      • EURUSD is at 1.1070

      Condition: 15 is above or equal 1.1070 -> TRUE -> open buy

      posted in Questions & Answers
      roar
      roar
    • RE: Bollinger bands

      @shovel52 Here's your problem:
      0_1574772084974_6f8c7982-c63c-44ea-ab7d-94f551a3f1cf-image.png

      You are comparing pips to price.

      posted in Questions & Answers
      roar
      roar
    • RE: How can a SL based on currency be set up?

      @l-andorrà Are you asking, how to convert dollars to euros?
      Multiply the final result by 1/EURUSD ?
      For example, 1/1.1070

      posted in Questions & Answers
      roar
      roar
    • RE: old comments problem - still on screen

      @turelforex You must only use one "comment" block. Do the calculations first (for all 3 cases) and then update the comment

      posted in Questions & Answers
      roar
      roar
    • RE: EA not compiling!

      @indaplace2be Do you get any error message?

      posted in Bug Reports
      roar
      roar
    • RE: EA not compiling!

      How did you download it if the code doesn't even compile? Did you download the .mq5? Do you get any error message?

      posted in Bug Reports
      roar
      roar
    • RE: About terms "short" and "long" positions on Forex

      @seb-0 I didn't understand all the questions, but..

      • The term "short" comes from the borrowing aspect. If you take a short position on Apple stock, you must borrow some stocks to sell them in the market, and later buy the stocks from the market and return your loan. During the position, one can say "you are short of some Apple stock", that is, "you owe somebody some Apple stock and you need to find some". The term "long" is just the natural opposite, and those terms later applied to every asset class outside stocks.
      • Those graphs usually have an option to show either volumes or number of positions. I think Oanda shows the volumes.
      posted in General Discussions
      roar
      roar
    • RE: Rookie question I'm sure.....Where do I find the boxes that you can write text in?

      @nasdaq85 Right-click some block and "create area" 🙂

      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 76
    • 77
    • 78
    • 79
    • 80
    • 120
    • 121
    • 78 / 121