Hello folks, I would like to know how do I add an indicator from a script. I wanna that when I run a script some indicators be added to the chart.
thanks in advance,
Cyberglassed.
thank you very much angevoyageur!
One las thing about this...
do you know how to set some indicators's parameters like: "line style" and "line width"?, I have tried with: PlotIndexSetInteger, but no success,
thank you, Cyberglassed.
One las thing about this...
do you know how to set some indicators's parameters like: "line style" and "line width"?, I have tried with: PlotIndexSetInteger, but no success,
thank you, Cyberglassed.
PlotIndexSetInteger() is for use inside an indicator code.
- 2009.11.23
- Андрей
- www.mql5.com
yes, now with your previous post I know how to add an indicator to the chart but also I wanna change the color, style and width of it's line, so I think the only way is create a custom indicator, so, go from:
string symbol, // symbol name
ENUM_TIMEFRAMES period, // period
int ma_period, // averaging period
int ma_shift, // horizontal shift
ENUM_MA_METHOD ma_method, // smoothing type
ENUM_APPLIED_PRICE applied_price // type of price or handle
);
to a custom (and implemented by me) function:
int Custom_iMA(string symbol, // symbol name
ENUM_TIMEFRAMES period, // period
int ma_period, // averaging period
int ma_shift, // horizontal shift
ENUM_MA_METHOD ma_method, // smoothing type
ENUM_APPLIED_PRICE applied_price, // type of price or handle
color = clrRed, // color of indicator
ENUM_LINE_STYLE line_style = STYLE_SOLID, // style of indicator line
int line_width = 1 // style of indicator line
);
I think I have no option, or yes?, I'm totally new on MQL5,
thank you,
Cyberglassed.
yes, now with your previous post I know how to add an indicator to the chart but also I wanna change the color, style and width of it's line, so I think the only way is create a custom indicator, so, go from:
I think I have no option, or yes?, I'm totally new on MQL5,
thank you,
Cyberglassed.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello folks, I would like to know how do I add an indicator from a script. I wanna that when I run a script some indicators be added to the chart.
thanks in advance,
Cyberglassed.