Quote:
|
Originally Posted by newdigital
4. int ExtCountedBars = 0
It means we are counting everything using curent zero bar. But in some cases we need to xalculate high or low for 300 bars for example.
Should we use
int ExtCountedBars = 300 ?
But if we need to change it from time to time we will use in property?
#property ????
|
The actually number of bars counted will be 301, correct?
Because 0 is counted as well.
<hr>
//---- indicators
SetIndexStyle(0,1, 5);
SetIndexBuffer(0,ExtMapBuffer1);
// Set the index number for the buffer.
string short_name = "My First Indicator is Running!";
IndicatorShortName (short_name);
// Indicator Short name places the name of the indicator in the upper left
// hand corner.
// This fuction has a return type of VOID. meaning it just does it's job and
// does not return any value to the calling function.
//34567891123456789212345678931234567894123456789512 3456789612345678971234567898 3456789912345678911234567892123456789312
// 80 and 132 Character ruler.
//----
return(1);
}
Question: why is return set to 1? Because the int Init () function returns a drawing object?