هذا كود المؤشر ولكن تواجهني مشكلة عندما اقوم بتشغيل المؤشر في Sterategy testerكود:#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color2 Lime
//---- input parameters
int ExtDepth=12;
//---- buffers
double ExtMapBuffer[];
double ExtArrowBuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer);
SetIndexEmptyValue(0,0.0);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,218);
SetIndexBuffer(1,ExtArrowBuffer);
SetIndexEmptyValue(1,0.0);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
int limit=Bars-counted_bars;
//---- main loop
for(int i=0; i<limit; i++)
{
//---- calculate the indicator value
double open = Open[i];
double close = Close[i];
double high = High[i];
double low = Low[i];
double body = MathAbs(open - close);
double upper_tail = high - MathMax(open, close);
double lower_tail = MathMin(open, close) - low;
double mid_body = body / 2;
if (open == close)
{
//---- do not return any value
ExtMapBuffer[i] = 0.0;
ExtArrowBuffer[i] = 0.0;
}
else if (open < close && (lower_tail <= mid_body && upper_tail > body && low < open))
{
//---- draw an arrow above the candle and write Strong
ExtMapBuffer[i] = high + 10 * Point;
ExtArrowBuffer[i] = high + 4 * Point;
ObjectCreate("N"+i,OBJ_TEXT,0,Time[i],high+10*Point);
ObjectSetText("N"+i,"N",10,"Arial",Lime);
}
else if (open < close && (lower_tail > mid_body && upper_tail >= body))
{
//---- draw an arrow above the candle and write Strong
ExtMapBuffer[i] = high + 10 * Point;
ExtArrowBuffer[i] = high + 4 * Point;
ObjectCreate("N"+i,OBJ_TEXT,0,Time[i],high+10*Point);
ObjectSetText("N"+i,"N",10,"Arial",Lime);
}
else
{
//---- do nothing
ExtMapBuffer[i] = 0.0;
ExtArrowBuffer[i] = 0.0;
}
}
//---- done
return(0);
}
//+------------------------------------------------------------------+
يعمل في شمعه او ثلاث شموع وبعدها يأتي سهم الاشارة فقط وتختفي الكلمة فوق السهم
سأقوم بإدراج صورة للتوضيح اكثر
https://forum.arabictrader.com/attac...1&d=1706337116
كما لاحظتم في الصوره حرف ال N يختفي
ارجوا مساعدتي في حل المشكلة وشكرا جزيلاً لكم مقدماً

