Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Modify Fractal - MetaTrader 4 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 6 reads | 0 comments |

Fractals Modified - indicator for MetaTrader 4

Fractals Modified - indicator for MetaTrader 4

Fractals Modified - indicator for MetaTrader 4

This indicator is a small modification of the classic fractal indicator .

You can select numeric or left/right columns to have new top or bottom and shift parameters.

In the image below you can see the indicator with parameter values:

Fractals Modified - indicator for MetaTrader 4

The parameters leftbars/rightbars indicate the number of left/right bars required to have a bottom or top. Instead, the last parameter shift can be chosen to be 0 for better visualization of the top/bottom levels.

However, in order to use this indicator, it should be conveniently chosen as the maximum value between the left and right columns. It is at this moment that the top/bottom is created.

In the image below you can see the same parameters as before:

Fractals Modified - indicator for MetaTrader 4

I have attached the new version of the FractalsMod indicator. This new version only accepts two external variables leftbars/rightbars. You can display a chart with this indicator and parameter values ​​here:

Fractals Modified - indicator for MetaTrader 4

Please note that the indicator is not defined for bars 0, ..., right bars. Therefore, in order to use this indicator in an EA, you must define

 double_fractal_up = custom ( void , 0 , "Fractal Modv2" , left column, right column, 0 , right column + 1 );

or

 double lower fractal = custom ( void , 0 , "Fractal Modv2" , left column, right column, 1 , right column + 1 );

Attachment download

📎Fractal Mod.mq4 (3.31 KB)

Source: MQL5 #11101

Verification code Refresh