Easylanguage code
-
Hello, I would like to know if this easylanguage formula can be translated into fxdreema
Highest(Low-Low[1],ExitLngLen)
-
You can just use this code in custom code, this is ChatGPT's definition:
The code Highest(Low - Low[1], ExitLngLen) is a function call in MQL4, commonly used in Expert Advisor (EA) coding. Let's break it down:Highest: This is a built-in function in MQL4 used to find the highest value of a given expression over a specified number of bars.
Low - Low[1]: This expression calculates the difference between the current low price (Low) and the low price of the previous bar (Low[1]), essentially computing the price change from the previous bar to the current bar.
ExitLngLen: This is a variable representing the number of bars over which to calculate the highest value of the expression Low - Low[1]. It determines the lookback period for finding the highest value.
So, in summary, the code Highest(Low - Low[1], ExitLngLen) finds the highest price change (in terms of the difference between consecutive low prices) over the specified number of bars (ExitLngLen). This might be used in an EA to determine certain trading conditions or thresholds based on recent price action.
-
I know that, but I am asking how it is used in fxdreema, what is the structure?
-
It is an easylanguage code. Please any expert can help me
-
in the custom code block!
-

-
Compilation erros

-
Low is an array so would be Low[0], I don't have time at the minute but when I do I'll look at this. In the meantime maybe someone else like @roar will know how to use.
-
I can't help much without seeing your code, but mql5 does have a similar Highest function.
Important to note this function does not return the price value, it returns the candle ID, so you need to finally call iHigh() after getting the ID.
https://www.mql5.com/en/docs/series/ihighest
And since we are on Fxdreema, there's a dropdown menu option as well:
