mql4 iFractals what does it return? And what is MODE_UPPER & MODE_LOWER?

mql4 iFractals what does it return? And what is MODE_UPPER & MODE_LOWER?

Manage alerts

Loading saved threads...

Ahmed Hussain · External communityPost link
External question — Stack Overflow Stack Exchange Author: Ahmed Hussain Original post: https://stackoverflow.com/questions/64630147 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I am trying to create a program where I want compiler to identify a Fractal in the last say Four bars and if it is an UP fractal it should not Buy and if its DOWN fractal it should not Sell. I want to know how does this mql function iFractal works. Does it return 0,1,2? And does MODE_UPPER mean it is an UP Fractal and MODE_DOWN means it is a DOWN fractal which means better to look for Buy.
Quote
Report
SebinG · External communityPost link
External answer — Stack Overflow Stack Exchange Author: SebinG Original post: https://stackoverflow.com/a/65585273 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. There are two kinds of fractals: Bullish(MODE_UPPER) and Bearish(MODE_DOWN). If you are interested in finding previous Higher Fractal you need to run a loop like this for(int i=0;true;i++){ double val=iFractals(NULL,0,MODE_UPPER,i); f(val>0){ Alert(val); break; } } You can look at the documentation for understanding the other arguments iFractals
Quote
Report

Post Reply

Quoted from Forex.com.bd-Editorial External question — Stack Overflow Stack Exchange Author: Ahmed Hussain Source score (net votes, not local likes): 0 Original post: https://stackoverflow.com/questions/64630147 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I am trying to create a program where I want compiler to identify a Fractal in the last say Four bars and if it is an UP fractal it should not Buy and if its DOWN fractal it should not Sell. I want to know how does this mql function iFractal works. Does it return 0,1,2? And does MODE_UPPER mean it is an UP Fractal and MODE_DOWN means it is a DOWN fractal which means better to look for Buy.

Cancel quote

Checking account access…