This is a "AverageMoving" code.
int init()
{
int draw_begin;
string short_name;
//---- drawing settings
SetIndexStyle(0,DRAW_LINE);
SetIndexShift(0,MA_Shift);
IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
if(MA_Period<2) MA_Period=13;
draw_begin=MA_Period-1;
//---- indicator short name
switch(MA_Method)
{
case 1 : short_name="Pierre EMA("; draw_begin=0; break;
case 2 : short_name="Pierre SMMA("; break;
case 3 : short_name="Pierre LWMA("; break;
default :
MA_Method=0;
short_name="Pierre SMA(";
}
IndicatorShortName(short_name+MA_Period+")");
SetIndexDrawBegin(0,draw_begin);
........
}
I don't know about this "IndicatorshortName();"
The method explain: Sets the "short" name of a custom indicator to be shown in the DataWindow and in the chart subwindow.
But I can't see the display. where are "Datawindow and subwindow", who can help me and get me a screenshot. Thank you very much.
int init()
{
int draw_begin;
string short_name;
//---- drawing settings
SetIndexStyle(0,DRAW_LINE);
SetIndexShift(0,MA_Shift);
IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
if(MA_Period<2) MA_Period=13;
draw_begin=MA_Period-1;
//---- indicator short name
switch(MA_Method)
{
case 1 : short_name="Pierre EMA("; draw_begin=0; break;
case 2 : short_name="Pierre SMMA("; break;
case 3 : short_name="Pierre LWMA("; break;
default :
MA_Method=0;
short_name="Pierre SMA(";
}
IndicatorShortName(short_name+MA_Period+")");
SetIndexDrawBegin(0,draw_begin);
........
}
I don't know about this "IndicatorshortName();"
The method explain: Sets the "short" name of a custom indicator to be shown in the DataWindow and in the chart subwindow.
But I can't see the display. where are "Datawindow and subwindow", who can help me and get me a screenshot. Thank you very much.