fxDreema

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

    Posts made by tcanuto

    • RE: MM and Volume Upper Limit

      There's nothing wrong. Just like that the result of MMRJ is Volume Upper Limit, within the blocks buy and sell now, in MM.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: MM and Volume Upper Limit

      Hello fxDreema.

      I would like to add a variable in the "Volume Upper Limit" within the buy and sell blocks.

      How do I do this in the Formula block? It sounds simple, but still do not know how to do.

      Formula: N = 0,5 * [(1 + 8 * P / delta) 0,5 ^ + 1]
      Where N is the number of contracts, P is the total closed trade profit, and delta is the parameter discussed above. The carat symbol (^) represents exponentiation; that is, the quantity in parentheses is raised to the power of 0.5 (square root).
      More info: http://www.adaptrade.com/Articles/article-frps.htm

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      What a pity ... it seems to be correct code. I believe that if you succeed, will be helping the whole community fxDreema thinking of hiding your indicators and secrets.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      So ... that way it worked! Thanks!

      But look at it this way: https://www.mql5.com/en/docs/runtime/te ... torrelease
      Hide the indicator?

      To prohibit the showing of the indicator on the chart after testing, call the IndicatorRelease() with the handle of the indicator in the handler OnDeinit(). The OnDeinit() function is always called after the completion and before the showing of the testing chart.

      
      //+------------------------------------------------------------------+ 
      //| Expert deinitialization function                                 | 
      //+------------------------------------------------------------------+ 
      void OnDeinit(const int reason) 
        { 
      //--- 
         bool hidden=IndicatorRelease(handle_ind); 
         if(hidden) Print("IndicatorRelease() successfully completed"); 
         else Print("IndicatorRelease() returned false. Error code ",GetLastError()); 
        }
      

      In order to prohibit the showing of the indicator on the chart, after the completion of a single test, use the function IndicatorRelease() in the handler OnDeinit().

      IndicatorRelease() https://www.mql5.com/en/docs/series/indicatorrelease
      OnDeinit() https://www.mql5.com/en/docs/runtime/event_fire#deinit

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      Yes ... I did that and it worked in MT4, but I need also to MT5 , as mentioned in the post above .

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      Hello fxDreema. I tried 3 ways, but without success.
      https://fxdreema.com/shared/6iglX9bbb

      See the link for possible solutions here:
      https://www.mql5.com/en/docs/runtime/te ... torrelease

      https://www.mql5.com/en/forum/11193
      https://www.mql5.com/en/forum/9184

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      __There is no function ATR in MQL4. There is iATR(), but it has some more inputs - https://docs.mql4.com/indicators/iatr

      I never tested that, but I think this is the answer - https://docs.mql4.com/customind/hidetestindicators[/quote:3atq74ol]

      Well ... I tried and it seems that it worked in MT4.
      https://fxdreema.com/shared/h31iU00gd

      Now I can not hide in MT5.
      https://fxdreema.com/shared/sd1jjRFQ

      I researched this function in MT5, and unfortunately has not. So ... in this case ... how to hide in the MT5 platform?
      https://www.mql5.com/pt/articles/81

      Robots sold in MQL5 do not show their indicators

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      Interesting fxDreema! How to put HideTestIndicator in a block? If I get it, forget the previous post and we will hide the indicator!

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      Hello fxDreema. Well ... if you can not hide the indicator, I have to do with the blocks, and to think better.
      But first my idea is to calculate the ATR in a block formula, for example, without using the ATR indicator.

      Recalling that: If you can hide the window, we do not do all this work.

      The true range is the largest of the:

      Most recent period's high minus the most recent period's low
      Absolute value of the most recent period's high minus the previous close
      Absolute value of the most recent period's low minus the previous close

      Formula: TR:
      https://upload.wikimedia.org/math/1/6/1/161bbb13f7109a0ae8f4618a8708a474.png

      The ATR at the moment of time t is calculated using the following formula: (This is one form of an exponential moving average):
      https://upload.wikimedia.org/math/8/b/8/8b849a07cc6fa12d28d73a1d0db00548.png

      More information about the formula, can be found here: https://en.wikipedia.org/wiki/Average_true_range

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      So ... I found the formula Stop ATR I believe it will work:
      StopLoss = Low[0] - 2 * ATR(5, Close[1]-2ATR(5), and High[0] - 3ATR(5)
      https://www.instaforex.com/pt/forex_ind ... r_stop.php

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      Yes I know. You can hide the ATR indicator Tester Visualization?

      Captura de tela de 2016-03-30 16-10-45.png

      ......
      Captura de tela de 2016-03-30 16-10-45.png

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Import Project

      OK thank you. Corrected me. It worked. I could compile.

      posted in Bug Reports
      tcanuto
      tcanuto
    • RE: Stop ATR

      It is .. maybe there is no need to use the formula block.

      Actually, the blocks 15 and 16 are only for visualization not important.

      Interesting pips of viewing the image above.

      I think it would be interesting in the Trace block put beyond color lines, but types of lines, thickness, etc., as we do in external imput of any indicator, for example.

      In the case of this project, as you can see, the StopATRU and StopATRL lines are oscillating.

      How do I let them straighter, as a Donchian channel for example? That's what I need.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      No no ... I do not want to indicator. Only the ATR Stop function this way. The Stop ATR fixed line, such as a Donchian channel, for example. This indicator is above a Stop ATR, but do not want to display. It would be something to "Adjusting the result?"

      I tried to "Market Properties" using the Highest point (candle period) in block 20 Formula, and was almost what I need. But the values were higher than necessary. I tried vise-versa for block 25.
      https://fxdreema.com/shared/5FgqrGOue

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Import Project

      Yes ... I'm sorry. It was ok. No problem. I thought I had a problem, but checked again and the blocks are ok.

      But now I'm having trouble compiling my new project
      https://fxdreema.com/shared/9l2XdREOb

      posted in Bug Reports
      tcanuto
      tcanuto
    • RE: Import Project

      Hello fxDreema. I am importing my projects MQL5, but is replacing the numbers of blocks to other numbers.

      posted in Bug Reports
      tcanuto
      tcanuto
    • RE: Stop ATR

      Interesting fxDreema. He worked for me here. Thank you.

      Now I wonder how can I leave the Stop ATR as a Donchian channel, for example?

      See the picture:
      https://c.mql5.com/18/21/nrtr_atr_stop_1.gif

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Hide indicators in the visual test

      Yes yes ... I will not use as an indicator. Just so I can see in the chart in the tests, but will run without indicators. As with fxDreema blocks.

      Thank fxDreema .... I see that all I need I'm finding here in fxDreema ... almost all ...

      But what we do not give a way, as it has always done.

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Stop ATR

      Hello fxDreema. How do I implement the Stop ATR in my EA? I believe that the mathematical formula is simple, like this:

      Market price - ATR * "x"

      Example.

      EURUSD this now quoted at 1.11650
      14 period ATR is currently 0.0015
      x is the multiplier want it to be 2.

      1.11650 - (0.0015 * 2) =
      SL is 1.11350.

      I believe it's correct the formula. So how to implement a project?
      Could you do me a sample project?

      posted in Questions & Answers
      tcanuto
      tcanuto
    • RE: Hide indicators in the visual test

      This is what I need!
      https://fxdreema.com/demo/mt4-trace-multiple

      See now what I'm doing: https://fxdreema.com/shared/EwYA4WDPd

      posted in Questions & Answers
      tcanuto
      tcanuto
    • 1
    • 2
    • 11
    • 12
    • 13
    • 14
    • 15
    • 32
    • 33
    • 13 / 33