Dear all,
why it is possible write this:
dynamic_color = IIf( MACD() > 0, colorGreen, colorRed );
Plot( MACD(), "My MACD", dynamic_color );
but it is not possible to write this:
dynamic_style = IIf( MACD() > 0, StyleThick, styleDots );
Plot( MACD(), "My MACD", colorgreen, dynamic_Style );
here below the error message:
Error 5. Argument #1 has incorrect type (the function expects different argument type here)
This error occurs when argument passed during function call has invalid type. For example when you pass string instead of array
How can I solve this problem?
thank you
cippo
why it is possible write this:
dynamic_color = IIf( MACD() > 0, colorGreen, colorRed );
Plot( MACD(), "My MACD", dynamic_color );
but it is not possible to write this:
dynamic_style = IIf( MACD() > 0, StyleThick, styleDots );
Plot( MACD(), "My MACD", colorgreen, dynamic_Style );
here below the error message:
Error 5. Argument #1 has incorrect type (the function expects different argument type here)
This error occurs when argument passed during function call has invalid type. For example when you pass string instead of array
How can I solve this problem?
thank you
cippo
Last edited: