Can#t trace the custom indicator
-
Hello everybody,
i hope you can help me. ich have some nice indicators, but now i am stuck. i have 3 custom indicators and 2 of them (they dont have parameters) they work.
The third indicator, the volty channel, i dont get any information. i used comment and trace block. i set the parameters out of mt4 and the 4 buffer types. but i dont get something. hope you can help.here is the shared link
https://fxdreema.com/shared/4VsEn7Txbi dont know, do you need the indicator too?
-
I'm afraid I don't fully understand what you need. Do you want to check those indicators? Before using any custom indicator you should check if they repaint. Because if they do the bot is doomed.
-
"I'm afraid I don't fully understand what you need." this is one of my weaknesses xD

this is my indicator. i tried to get the value of the indicator, but this wont work.

i dont know where i make the failure, because the other indicators work fine. -
oh my god. sometimes it could help, to explain the problem.
i found my fault. i didnt assign the candle facepalm
now that this works, can i ask a slightly different question here?
i have 5 indicators.

i want to open a trade when the macd goes positive, the filter turns blue etc. how do i do that if it should happen in a range of x candles?
The probability is very low that all indicators switch or become visible on the same candle
-
That depends on the way each indicator works. Crossings can be easily identified a few candles in the past. For other 'coloured' lines you will need loops. But please check if those lines are repainted. If they are, the bot is doomed.
-
@l-andorrà
with repainted you mean, that the lines changes in older candles right? as i can see, the colored lines are only modified on candle 0.would it help, if i give every indicator a variable which toggle between true and false? like a signal which expires after x candles?
i don't know if i can share a youtube video whose indicators i want to use to write an ea. I have already used the indicators manually and it seems to be working well.
-
Yes, I mean exactly that. Now the question is. Can you trust the indicator on candle ID 1 and beyond? If so, maybe there is still hope but in that case the bot will only be reliable from candle ID 1 and beyond. Does that fit your expectations?
-
yes i can trust it. i show you the video. I think with the video I can show you better what I'm getting at.
https://www.youtube.com/watch?v=W9244EzocFE&lc=UgznvC_dFBrVaoFnOmB4AaABAg&ab_channel=PowerofTradingi doesnt saw any changes on older candles.
at the moment, my EA looks like that https://fxdreema.com/shared/FXL3jDt9b
-
Considering that all your condition and filter blocks are supposed to happen at the exact same time, I recommend to remove those 'AND' blocks and connect them one below the next one in a single thread.
-
I had that thought too. However, if the supertrend changes to candle 1 and 30 candles later the other indicators, then the system is no longer correct because the supertrend indicator could then change again. do you know what i mean?
I try to Open the trade when all indicators Triggers in a range of 10 candles for example
-
a bit more complex: if the condition for an indicator is met, then a true value is stored in a variable, which, however, jumps back to false after x candles. would that help? is this easily doable?
-
@Pyro Maybe, but that is a complex loop to implement just for a guess. Did you check it manually?
-
Yes. i saw it firsthand. since I work during the week, I don't have time to trade with it. but there have been a few situations where the system has proven itself
-
Ok. Can you please specify the condition to be checked?
-
Hello,
It's been some time, but I did it. The functions in EA work well, but now I need some help again.This time it's about price levels or distances.
in Dow or German Dax i get a high value, and in EURUSD and so on, i get 0.xxxx values. how can i fix it?
https://fxdreema.com/shared/m0wTb6jIb
is is my shared project. and this is a picture, what my mt says

the comment block in the right lower corner is the important.
i tried numeric, pip as price. -
That decimal poaitions are not relevant for the internal calculations. Do you want to remove them for visual reasons only?
-
Yes, a bit for visual representation, but more for further calculations. I want to open trades in a fixed pips range. In ger40 it works, but in eurusd or another forex pair I need to define the digits. I found a custom MQL code that doesn't work so far. Most topics write about the ATR value for pip. I don't know if that's my problem.
-
The Super Range indicator starts at a very high range and before opening a trade the range should be around 30-60 pips. I'm thinking of another indicator to make my job easier. maybe envelope. and with this I can expand the range with a cross condition.
-
Okayy...... wait a bit, think new and the answer comes...
now it works
this is my custom mql code AND this i made On Init

Now I have some new challenges, but I'm confident that I'll overcome them with the help of the forum

thank you for your participation
-
You're welcome. Let me say that I'm not a programmer, just and advances fxDreema user so I'm afraid I don't understand what that code is doing, sorry.
