Problem with custom indicator ex5
-
But I don't have this indicator to check it

Ok, here are very simple things to do. It's important to do these when needed.
-
To know when and where some block passes, use Draw Arrow. Connect this after some block, let's say block X, and you will know when block X passes. There is even a special block I created for this - Logic points tester. It does not draw arrows, it draws some lines.... a line is the time period where block X was passing. But I found myself using Draw arrow anyway.
-
To know what is the value of something. Use "Comment on chart" for multiple values, or "Indicator tester" for a single value.
-
Keep an eye on the error logs. If something goes wrong this is the first place to look at.
-
-
Okay indicator is already added in the "My indicators" Please find attached the indicator. It's the same one I used for MT5, blz works, but the EA for MT4 does not work. Please find attached the indicator.
I just tested by arrows, and this only giving sell signal, even if the insides of the block parameters are correct. Does the indicator parameters are wrong?
......
pz-turtle-trading.ex4 -
Buffer 0 is the uptrend line, buffer 1 is for downtrend. Swap those buffers
2 and 3 are ok. -
Ok Thanks fxDreema.
I'll be running tests with the fix.
-
It worked! Thanks fxDreema!
-
Hello fxDreema. I thought it had worked, but now carefully analyzing, saw that this still malfunctioning.
See my project, "Strategy 2".
I used your example you did.
The martigale sometimes happens in this sequence: buy 0.01, sell 0.03, buy 0.03, sell 0.09, buy 0.09, where instead of:
buy 0.01, sell 0.03, buy 0.09, sell 0.27 etc., that is how I need. Even in profit, it does not reset the lot.Any strategy 1 and 2 are wrong functioning.
https://fxdreema.com/shared/IBf63frze
Strategy 1 Martigale with Risk% of balance.
Strategy 2 Martigale with Ryan Jones
-
If you want it 1-3-9-27, then this is Martingale with factor x3.
You have Strategy 1 and Strategy 2. Now because of the settings in "No position is running", especially in 115 and 125, you got two positions at a time, one from Strategy 1 and right after that second one out of Strategy 2. This depends on the numbers of blocks 108 and 117, in the case 108 runs first so Strategy 1 runs first.
If you fix blocks 115 and 125, then Strategy 2 does not work at all, because now it mirrors Strategy 1 in the upper part (from the first condition to "No position is running").
So I don't know, it works in the way it is build, I don't see bugs or something.
With so many different Buy and Sell blocks, better use their Comment section, and you will see the problems easier, like in this picrute: http://prntscr.com/4dyfgc
-
Regarding strategies, maybe if I put in group mode for each strategy, as the first separate the two, because it does not use both strategies at the same time can fix this problem? I'll try that.
The blocks 108 and 117 do not exist. Which blocks mean? I have the blocks 115 and 124.
-
108 and 117 are at the top.
At the same time... if you use different Group number, this is like having different EAs, so in this case you can control 2 strategies at the same time in the same EA. This is the idea of the Group number.