Modifying MFI AFL-help me!!
_SECTION_BEGIN("MFI-BB");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 100, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
b1 = BBandTop( P, Periods, Width );
b2 = BBandBot( P, Periods, Width );
BB = (b1 - b2);
Plot( MFI(BB), _DEFAULT_NAME(), ParamColor("Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
I wanted to modify the MFI but I get this error
"Error 5. Argument #1 has incorrect type (the function expects different argument type here)"
what I wanted to do is replace the 'periods' with the difference between the
bbandtop and bbandbot i.e., width of bollinger bands
I am not a programmer .Please help me to modify this MFI in AFL
_SECTION_BEGIN("MFI-BB");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 100, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
b1 = BBandTop( P, Periods, Width );
b2 = BBandBot( P, Periods, Width );
BB = (b1 - b2);
Plot( MFI(BB), _DEFAULT_NAME(), ParamColor("Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
I wanted to modify the MFI but I get this error
"Error 5. Argument #1 has incorrect type (the function expects different argument type here)"
what I wanted to do is replace the 'periods' with the difference between the
bbandtop and bbandbot i.e., width of bollinger bands
I am not a programmer .Please help me to modify this MFI in AFL
Last edited: