fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. john 5
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 10
    • Best 0
    • Controversial 0
    • Groups 0

    john 5

    @john 5

    0
    Reputation
    440
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    john 5 Unfollow Follow

    Latest posts made by john 5

    • RE: Can not get RVI parameters to calculate??

      Because it represents the latest CLOSED candle, which means that if a cross of any indicator occurred in that candle it will stay that way (in vast majority of cases). Therefore if you created indicator keeping that in mind it would not repaint (assuming no other tricks) and if you created EA a signal would be more reliable. However if you use current candle two indicators might cross each other and then "uncross" each other within that same candle especially in the case of high volatility and/or small period of the indicator (if applicable; here applicable). As a result what you will see at the end of the backtest is EA placing an order in the situation where you can see clearly that a cross did not occur. But if you look at the same order while examining backtest tick by tick or even minute candles (for higher time frames) you will see that the cross occurred for short period of time, EA placed an order and then indicators part ways.

      This behavior can result in generating a false signal, unless you are ok with that and your strategy only requires cross no matter how it happened.

      posted in Questions & Answers
      J
      john 5
    • RE: Can not get RVI parameters to calculate??

      https://fxdreema.com/shared/o7AJttjJ

      Here, EA buys when main crosses above signal and exits when main crosses below signal. It's for MT5.

      posted in Questions & Answers
      J
      john 5
    • RE: How to check if EMA crosses candle body or its wick

      @xexex007 In its simplest version https://fxdreema.com/shared/ATZXgP2pb

      posted in Questions & Answers
      J
      john 5
    • RE: How to check if EMA crosses candle body or its wick

      @xexex007 If you set >= instead of > then it will make a difference. In case of >= trade will be opened when candle high = 21ema which you don't want so stick to the >.

      As for your second question. You should do nothing. The condition will hold. Why? When you code an EA you need to think more in terms of numbers and mathematical expressions rather than visual representation. That is, always numerically describe your visual experience with the chart ... ok but what does that mean in this situation ? What you refereeing to as EMA "touches the body" is the event where the numerical value of EMA at the time t is smaller(higher) than or equal to the candle high(low). If you don't have a wick yet it means that the current price represents the high of the candle in the bullish candle or the low of the candle in the bearish candle. So even if it "touches the body first" the condition
      [Candle crosses 8EMA and 21 EMA > candle high] or [Candle crosses 8EMA and 21 EMA < candle low] will still work. Because it does not matter whether the low/high of the candle is currently or in the prior candle(s) represented by wick or the body. Besides why not try and see it all in the chart;)

      posted in Questions & Answers
      J
      john 5
    • RE: How to check if EMA crosses candle body or its wick

      You can create a following condition.

      [Candle crosses 8EMA and 21 EMA > candle high] or [Candle crosses 8EMA and 21 EMA < candle low] I would recommend doing everything with the previous candle to make sure it truly occurred.

      You can also code a desired distance you want 21 EMA to be from the candle using formulas.

      posted in Questions & Answers
      J
      john 5
    • RE: Avoid Weekends and Holidays

      Thanks very much for the insights. I might use those trick for the other occasion too. This time I figured that we can code a condition(s) for particular order with a time filter that specify the day of interest x. Then we can create 5 copies of that condition with the time filter where for each copy a time filter is set to x+n (n=1,..,5; where n is a copy). If we set up a trade duration longer than 5 days (am planning minimum two weeks) and make sure that any x+n copy will be activated only if there is no trade then the EA will always look to place a trade during one of the next 5 days. In practice this will take care of any day during which the market is closed even if we have holidays right before or after the weekend.The solution does not seem to be elegant due to a compulsive copy&paste action and could probably make a use of a loop but am not there yet ;

      posted in Questions & Answers
      J
      john 5
    • RE: wait block

      You can try this https://fxdreema.com/shared/qMoulYlhd it will exit the long position after 24 hours (thus EA will be ready to open the next order as per condition specified) unless take profit or a stop loss of 50 pips will be reached.

      posted in Questions & Answers
      J
      john 5
    • Avoid Weekends and Holidays

      Hi, I would like to enter a position on the specified date every year (bar open or closed or specified hour). However for some years that date is a business day and for some other years it is a weekend or holiday. Therefore, I was wandering how we could create a condition that would place a trade on the next available (so first next or second next etc. ) trading day in the case where on the pre-selected day the market is closed ? For example: IF on day X the market is closed shift the entry to the day X+1 . I would appreciate any ideas, thank you !

      posted in Questions & Answers
      J
      john 5
    • Standard deviation of the variable

      Is there any function that would allow to do some math operations on the variable so that the result would be return as another variable ? For example we have variable x, then we calculate standard deviation of x and we create new variable called 'STD_of_x' that reflects the value of standard deviation of x.

      Would you guys know how to do that with custom script ? (I mean more like a framework for those type of calculations whether it's standard deviation, variance or any other math function). Thanks a lot !

      posted in Questions & Answers
      J
      john 5
    • Simple Multicurrency EA | MT5 Optimization | 512 Runtime Error

      Morning/Night Gents,

      I am having difficulties with optimizing simple RSI Multicurrency EA in MT5.

      Difficulties = 2019.02.04 19:11:32.719 Core 4 pass 26 tested with error "critical runtime error 512 in global initialization function (sleep function reaches end of test)" in 0:00:00.001

      For all cores the message is the same.

      Am very new to fxdreema. I would appreciate if any of you could look up the EA here: https://fxdreema.com/shared/8C31ACRRc

      I tried using current market block and many many other combinations more and less crazy but non of them work. Backtest works without any issues, EA is compiled in MT5 without any errors, if I use only one currency then everything is ok. Can't see what might couse a problem ...

      posted in Questions & Answers
      J
      john 5