Hello fxDreema . I tried after you said corrected , but remains without opening positions. Even changed color, but does not.
Posts made by tcanuto
-
RE: TrendLine EAposted in Questions & Answers
-
RE: TrendLine EAposted in Questions & Answers
Hello fxDreema. All right?
I tried again to create an EA based on trend lines, but does not work. See my project and tell me where this wrong.
https://fxdreema.com/shared/qm3ZI6Dkb -
RE: Signal custom indicatorposted in Questions & Answers
I tried, but I can not. How do I use this indicator?
If not, and meet some other similar, you could direct me?
-
RE: Least Candle ID or Shiftposted in Questions & Answers
So it does not open positions between 1 and 25 candles, but it would be after 25 candles, right? I'm sorry but I did not understand properly.
-
RE: Signal custom indicatorposted in Questions & Answers
Hello fxdreema
It does not work with this indicator signals Supertrend. It appears in the visual test chart, but does not open any operation.
How to work?
https://fxdreema.com/shared/l35aRaCVc
......
SuperTrend.mq5 -
RE: Least Candle ID or Shiftposted in Questions & Answers
Thanks for the info.
But now I tried adding the stochastic, but it does not appear in the chart.
[attachment=0:63n4q7qz]https://fxdreema.com/shared/RJfkXMZ6b
......
Capturar.PNG -
RE: Least Candle ID or Shiftposted in Questions & Answers
Okay. Thanks for the info. In the case of Bollinger Band, how to use it?
For example:
If the previous candle is below the lower band and then x candles.
Please make a working example of how to use this block.
-
RE: Least Candle ID or Shiftposted in Questions & Answers
Hello fxDreema
How do I summarize the blocks using shift? I need a sign to wait on the other.
For example:
If signal 1 happen to 5 candle behind, or shift 5
If signal 2 happen during these five candles.
Instead of using multiple blocks
1º block = Candle ID 5
or
2º block = Candle ID 4
or
3º block = Candle ID 3
or
4º block = Candle ID 2
or
5º block = Candle ID 1
Use like this:
1 block = Candle ID 5 to Candle ID 1
If the signal 2 happen during these 5 candles, trigger position.
-
RE: Compilation errorsposted in Bug Reports
Cool this site. I will be giving a sneak peak.
Here's the image:
I see the 2 lines is actually a shift, I don't know why that. Not working Applied_Extern features.
......
2 Lines.PNG -
RE: Compilation errorsposted in Bug Reports
You saw that in Visual Test he's still like 2 lines. How do I fix it? I want you to stay with only the currently selected Applied_Extern.
-
RE: Compilation errorsposted in Bug Reports
Hello friend. I'd like to, but as I don't speak English, but with a translator will be hard to our communication.
You could check in the code in which posted?
I'll be very grateful for that.
-
RE: Error in OnTick functionposted in Bug Reports
Added this block, but I don't see in the code. Where is?
https://fxdreema.com/shared/FzsidmiLb -
RE: Compilation errorsposted in Bug Reports
The Applied_Extern worked on the visual test, but to optimize don't. What is the problem?
-
RE: Compilation errorsposted in Bug Reports
Yes. Put the enum Applied_Extern, and it worked.
But I don't know why also appears in visual test the HIGH_LOW enum.
See the code
......
TCF DC MM v1.3.mq5 -
RE: Compilation errorsposted in Bug Reports
__HIGH_LOW equals to 0, HIGH_LOW_OPEN is 1, then 2, 3 and 4. But the EA can't see and use these constants. The same can be defined in the EA, but this is another story. Just define that parameter as "int" and give it values between 0 and 4.
[/quote:3iv2ab69]
How can I define in the EA? Managed to put these constants in external imput and how I do in code?
https://fxdreema.com/shared/MR01O6Hyc -
RE: How to use 2 volume modesposted in Questions & Answers
Correct! For me, just use the formula of fixedratio in "VolumeUpperLimit" which for me will be great!
-
RE: How to use 2 volume modesposted in Questions & Answers
__I think I get your idea now. And the option of Fixed Ration will not be needed, but some calculations - yes. If I remember correctly, the lot size at any given moment can be calculated for Fixed Ratio, because it depends on the profit that is realized.[/quote:azsknl2k]
That's right! Only the calculations.__If our start balance is $1000, the initial lot size is 0.1 and we increase the lot size with 0.01 every $100, then can we calculate what will be the lot size when we reach balance of $3050? It will be 0.3 lots, right? ...[/quote:azsknl2k]
Almost that. It works like this:According to the Fixed Ratio money management method proposed by Ryan Jones, before you can add a lot to an existing number of lots, each of the existing lots shall "win" a certain number of points (which Jones called the "delta"). For example, we have a deposit of 300 dollars and trade with 1 mini lot; the delta of, say, the same 300 dollars would mean that we will increase to 2 mini lots only when we gain (with the 1 mini lot we have) 300 dollars.
Similarly, the lots will be increased to 3 only after 2 mini lots will gain the delta of 300 dollars (each). That is, the increase from 2 to 3 mini lots will be possible when we add to the existing 600 dollars another 2 С… $300 = $600, i.e. when having $1200; from 3 to 4 mini lots with the deposit of $1200 + ($300 С… 3) = $1200 + $900 = $2100, etc. Thus, "the number of contracts is proportional to the amount required to buy a new number of contracts", from where the method derives its name. The decrease in the number of lots follows the same scheme in reverse.
We can, of course, run the parameter optimization but let us better have a look at the manual settings. For a pretest, you can use the Opening prices only mode or OHLC on M1.
The Money Management System default parameter values are as shown in the table below:
PARAMETERS VALUE
Start Deposit: 1000
Delta: 200
Start Lot: 0.1
Step Lot: 0.1Formula: x=((1.0+MathSqrt(1+4.0*d))/2)*Step;
where: x - the lower boundary of the transition to the next level d = (Profit / delta) * 2.0 Step- a step of the delta, such as 0.1 lots.
Source: https://www.mql5.com/en/articles/392#10
https://www.mql5.com/en/articles/217Link fo table for sample preview: http://www.tradestation.com/education/l ... ormulas-2#
Remembering that is to manage buy and sell together, not individually for each block. As has occurred in testing the management for each block, and not as a risk management for all code, if you know what I mean.
-
RE: How to use 2 volume modesposted in Questions & Answers
Example:
Risk% = 1%
Upper volume limit = "fixed ratio"
RJ Unit = 0.10
RJ Delta = 2001% risk in an operation could 0.12 lots.
Maximum lot is and 0.10 lots.
Let's assume that in a position would give 0.12 lots, but the fixed ratio of the moment is 0.10. So this order opens only 0.10, because the maximum volume based on fixed ratio is 0.10 lot.
I made 200 usd profit.
RJ Unit rises to 0.20 lots.
Suppose in another position would open up 0.15 lots, and the fixed ratio of the moment is 0.20. So this order opens normal in 0.15 lots, because the maximum volume based on fixed ratio is 0.20 lot and not been exceeded.
In this way, the risk management will be more conservative and limited to the fixed ratio.
-
RE: How to use 2 volume modesposted in Questions & Answers
Yes. I know that and I realized in new blocks.
But I need to, instead of using a fixed number, use the fixed ratio as the maximum volume.
Because with that will have the risk management for balance and SL, but not exceeding the limit of the fixed ratio.
How do I do that?