There's nothing wrong. Just like that the result of MMRJ is Volume Upper Limit, within the blocks buy and sell now, in MM.
Posts made by tcanuto
-
RE: MM and Volume Upper Limitposted in Questions & Answers
-
RE: MM and Volume Upper Limitposted in Questions & Answers
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 -
RE: Stop ATRposted in Questions & Answers
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.
-
RE: Stop ATRposted in Questions & Answers
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 -
RE: Stop ATRposted in Questions & Answers
Yes ... I did that and it worked in MT4, but I need also to MT5 , as mentioned in the post above .
-
RE: Stop ATRposted in Questions & Answers
Hello fxDreema. I tried 3 ways, but without success.
https://fxdreema.com/shared/6iglX9bbbSee the link for possible solutions here:
https://www.mql5.com/en/docs/runtime/te ... torreleasehttps://www.mql5.com/en/forum/11193
https://www.mql5.com/en/forum/9184 -
RE: Stop ATRposted in Questions & Answers
__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/h31iU00gdNow I can not hide in MT5.
https://fxdreema.com/shared/sd1jjRFQI 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/81Robots sold in MQL5 do not show their indicators
-
RE: Stop ATRposted in Questions & Answers
Interesting fxDreema! How to put HideTestIndicator in a block? If I get it, forget the previous post and we will hide the indicator!
-
RE: Stop ATRposted in Questions & Answers
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 closeFormula: TR:
https://upload.wikimedia.org/math/1/6/1/161bbb13f7109a0ae8f4618a8708a474.pngThe 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.pngMore information about the formula, can be found here: https://en.wikipedia.org/wiki/Average_true_range
-
RE: Stop ATRposted in Questions & Answers
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 -
RE: Stop ATRposted in Questions & Answers
Yes I know. You can hide the ATR indicator Tester Visualization?

-
RE: Stop ATRposted in Questions & Answers
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.
-
RE: Stop ATRposted in Questions & Answers
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 -
RE: Import Projectposted in Bug Reports
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 -
RE: Import Projectposted in Bug Reports
Hello fxDreema. I am importing my projects MQL5, but is replacing the numbers of blocks to other numbers.
-
RE: Stop ATRposted in Questions & Answers
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 -
RE: Hide indicators in the visual testposted in Questions & Answers
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.
-
RE: Stop ATRposted in Questions & Answers
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? -
RE: Hide indicators in the visual testposted in Questions & Answers
This is what I need!
https://fxdreema.com/demo/mt4-trace-multipleSee now what I'm doing: https://fxdreema.com/shared/EwYA4WDPd