#Draw Arrow - Open
Hi,
I need to add " Draw Arrow " to my Custom Indicator ( CI ) which one that Arrow can be seen only first of Trend bar below ( for long ) above ( for short ) bars.
Thanks in advance.
( I need to finish this part of code of my CI as soon as possible, I am working hard on it )
Hi,
I need to add " Draw Arrow " to my Custom Indicator ( CI ) which one that Arrow can be seen only first of Trend bar below ( for long ) above ( for short ) bars.
Thanks in advance.
( I need to finish this part of code of my CI as soon as possible, I am working hard on it )
Inserted Code
int OnCalculate(...) { //--- int limit=rates_total-prev_calculated; if(rates_total<=maPeriod) return(0); if(prev_calculated>0) limit++; for(i=limit-1; i>=0; i--) { // Line - this is works perfect for me. maOne[i] = iMA( Symbol(), 0, 13, 0, MODE_SMA, PRICE_MEDIAN, 0 ); maTwo[i] = iMA( Symbol(), 0, 26, 0, MODE_SMA, PRICE_MEDIAN, 0 ); priceOne = maOne[i]; priceTwo = maTwo[i]; // Arrow - this fills tons of arrows but I need only one for first bar. if ( priceOne > priceTwo ) { drawArrow_one[i] = Low[i + 1] - 10 * Point; } } return(rates_total); }