Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 154
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have the following question.
Let's say we have 4 arrows in a row that point upwards.
CrossUp[i]=Low[i] - Range*0.75;
May I ask why?
it is forbidden to edit decompiles?
By registering at MQL4.com you agree to the following rules:
Since when is decompile a foul language?
I have the following question.
Let's say we have 4 arrows in a row that point upwards.
CrossUp[i]=Low[i] - Range*0.75;
I cannot tell you anything else about your code. If there are telepaths around, they will probably be able to understand your code to a greater extent ;)
Is this from an indicator or from an EA? There is a difference. In general, to avoid drawing the arrow, you need to check the previous adjacent bar in the indicator and if it has a non-zero or non-empty value, it means that the arrow on the adjacent bar already exists and there is no need to enter the value into the current bar buffer. For an EA, if the previous adjacent bar already contains a crossing fact in the same direction as the current one and the arrow already marks this fact, the crossing fact on the current bar can be not registered (if it exists) and the arrow need not be displayed either.
I cannot tell you anything else about your code. If there are telepaths around, they will probably be able to understand your code to a greater extent ;)
It's no use. Flags should be used
It is useless. Flags should be used.
Well... flags are not flags. Why do you say that? I wouldn't bother with flags at all. You can always look at the chart to see if there was a cross on the last candle, if there was a cross on this candle. No? That's for the EA. It's the same for the turkey. There is a crossover... look at the past value of the buffer, the one that is 1 more. If there is a non-empty/non-zero value, then - there was a signal there too. And it is marked with an arrow. So we do not draw it now.
Did I miss something?
Well... flags are not flags. Why do you say that? I wouldn't bother with flags at all. You can always look at the chart to see if there was a cross on the last candle, if there was a cross on this candle. No? That's for the EA. It's the same for the turkey. There is a crossover... look at the past value of the buffer, the one that is 1 more. If there is a non-empty/non-zero value, then - there was a signal there too. And it is marked with an arrow. So we don't draw it now.
Did I miss something?
I forgot about the speed. You have to check before the first signal
I forgot about the speed. You have to check before the first signal.
I do not understand, is it impossible in the indicator? We check it from the depth of history to zero
he doesn't need the arrows next to each other. That's why there won't be any in a row. One by one, they will.
The EA is different - we look deeper into the history from zero/first bar. Exactly the same way we check for the crossing signal on the bar +1 to be checked
I don't understand, can't you do that in the indicator? We check from the depth of history to zero
he doesn't need the arrows next to each other. That's why there won't be any in a row. One by one, they will.
The EA is different - we look deeper into the history from zero/first bar. Exactly the same way we check the crossing signal on the tested bar +1
If you need a one-bar signal, then yes, of course you should do as you wrote
Well, if you need a one bar signal, then yes, of course you have to do as you wrote
If one of the pending orders triggers, then I place another pending order in the opposite direction and double the volume, for example, if I place buy, then I place sellstop 25 pips lower than buy, and if I place sell, then I place buystop 25 pips higher. If one of the pending orders triggers, we place one more pending order in the opposite direction from the triggered order, at the price of the first open order, and if it triggers too, we again place a pending order in the opposite direction from the triggered one within 25 points, etc. Thus, all buy orders should be at one price, and all sell orders should also be at one price. If anyone understands what I have written here, please help with the code))