- Search Crypto Craft
-
Beerrun replied May 9, 2020The ternary operator does not replace a for loop. It replaces if else statements when assigning a value to a variable. foo=this?bar:that?foobar:0; Is the same as if(this)foo=bar; else if(that)foo=foobar; else foo=0;
Wick high average
-
Beerrun replied May 9, 2020Yes my apologies, I was under the premise the new code was in addition to the average code. You don't need to use ArrayResize after declaring the array, just declare it with a specific size: double wicks_array[14]; You can also remove the double ...
Wick high average
-
Beerrun replied May 9, 2020That is not the correct use of ArrayFill. Place values in the array like you did in the first snippet. Also calling it highestwick is a misnomer since it is not the highest but the largest. #property strict #define lookback 14 void OnStart(){ double ...
Wick high average
-
Beerrun replied May 8, 2020Yes my bad using 2 instead of 4. Try replacing “DoubleToStr(variable,4)” with “(string)variable“ and see what difference it makes. That will help show more of what’s happening.
Wick high average
-
Beerrun replied May 7, 2020The original works on all pairs; it is not showing you what you intend. Perhaps read the documentation on DoubleToStr and other mql4 code so you understand what is happening with the code you are writing/using.
Wick high average
-
Beerrun replied May 7, 2020Why would you copy/paste in variables and if statements that are never used? ---You add in "timeX" and all the if statements around it when they aren't used at all; should not be there. ---"point" variable has no effect on the program and should not ...
I will code your EAs and Indicators for no charge
-
Beerrun replied May 7, 2020You’re welcome for the indicator.
I will code your EAs and Indicators for no charge
-
Beerrun replied May 6, 2020Mathround is used for integers, it will return the rounding closest to a whole number. So round(0.4) -> 0.0, round(1.6) -> 2, etc. If you want to use round to trim your decimals then you have to multiply your variable by 10^x, x being the decimals ...
Wick high average
-
Beerrun replied May 5, 2020Here you go. The lines start on the day of the high or low. image
I will code your EAs and Indicators for no charge
-
Beerrun replied May 5, 2020You are comparing two different bars: 0 and 1. They could have widely varying differences in prices. Instead use the close and open of the same bar to determine bear or bull candle.
Can anyone create EA?
-
Beerrun replied May 4, 2020Also it won't accept the word "iCustom". You have to replace iCustom with the indicator name
AlertMe!
-
Beerrun replied May 4, 2020I believe you might be getting an error. Type the word "print" into the first separator "-----" and see what the experts tab says.
AlertMe!
-
Beerrun replied May 4, 2020I think the issue is using other folders since the ../ would get taken out of the input when the alert indicator runs. For now if you are trying to call an indicator then put it in the main indicators folder. But if you are trying call the iMA ...
AlertMe!
-
Beerrun replied May 3, 2020You're in the land of Win32 API error codes now. Google "send request failed 120002" and see what you get. It is a timeout error.
I will code your EAs and Indicators for no charge
-
Beerrun replied May 3, 2020Try this, it is now giving the low you highlighted in your picture. file
I will code your EAs and Indicators for no charge
-
Beerrun replied May 3, 2020Alerts should not send on the initial lookback, that is not typical behaviour. A quick fix is a global bool flag that other functions, like an alert function, can access to get the program’s state. Also opening the indicator inputs window, changing ...
I will code your EAs and Indicators for no charge
-
Beerrun replied May 3, 2020Yessir, you can add the circle in the arrow codes section. It uses wingdings codes like this: image But there are a lot of other codes, just have to google them. Put in one code for both Hi Lo or two different codes. file
I will code your EAs and Indicators for no charge
-
Beerrun replied May 3, 2020As I understand the logic: either thursday and friday must have the high and the low for the week? So what BlueRain is showing is only one high or low for thursday or friday. Which of these logic is what you are intending?
I will code your EAs and Indicators for no charge