السلام عليكم
نعم هناك مشكلة في المؤشر ولكن هذي المشكلة ليست في المعادلة انما في كتابتك للمعادلة في الموضوع
عدل السطور الثالث التالية وان شاء الله كل شي تمام
SetChartOptions(0,0,chartGrid30|chartGrid50|chartG
*rid70);
السطر رقم 3
Plot(IIf(Aroonswitch,Null,Aroon_Up),"Aroon_Up",UPc o
*lor,UPstyle);
السطر رقم 30
Plot(IIf(OSswitch,Null,Aroon_Osc),"Aroon_Osc",OSc
*olor,OSstyle);
السطر رقم 32
يوجد مكان النجوم الحمراء مسافة في كتابتك للمؤشر , شيل المسافة من هذه الاماكن ثم ضع المعادلة داخل كود هتمل وليس الى الموضوع مباشرة وان شاء الله تزبط معاك
السبب هو نقلك للمعادلة الى الموضوع بعمل نسخ ولصق مباشرة , يجب عمل كود هتمل للمعادلات في المواضيع حتى ما يكون هناك لخبطة هذي معادلات حساسة a7
وهذي المعادلة بعد التعديل صحيحة وكاملة داخل كود هتمل :
كود بلغة HTML:
//Aroon Indicator
//Abo Elias July-07-2007
SetChartOptions(0,0,chartGrid30|chartGrid50|chartGrid70);
_SECTION_BEGIN("Aroon");
if( ParamToggle("Tooltip Shows", "Aroon|Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}
Aroonswitch = ParamToggle("Aroon","On,Off");
Periods = Param("Aroon Periods", 14, 1, 100, 1 );
_SECTION_END();
_SECTION_BEGIN("Aroon_UP");
UPcolor = ParamColor( "Aroon_UP Color", colorGreen );
UPstyle = ParamStyle("Aroon_UP Style",styleThick);
_SECTION_END();
_SECTION_BEGIN("Aroon_DN");
DNcolor = ParamColor( "Aroon_DN Color", colorRed );
DNstyle = ParamStyle("Aroon_DN Style",styleThick);
_SECTION_END();
_SECTION_BEGIN("Aroon_Oscillator");
OSswitch = ParamToggle("Aroon_OSc","On,Off");
OScolor = ParamColor( "Aroon_OSc Color", colorBlack );
OSstyle = ParamStyle("Aroon_OSc Style",styleHistogram | styleOwnScale, maskHistogram );
_SECTION_END();
HHVBarsSince = HHVBars(H, Periods+1);
LLVBarsSince = LLVBars(L, Periods+1);
Aroon_Up = ((Periods - HHVBarsSince) / Periods) * 100;
Aroon_Down = ((Periods - LLVBarsSince) / Periods) * 100;
Aroon_Osc = Aroon_Up - Aroon_Down;
Plot(IIf(Aroonswitch,Null,Aroon_Up),"Aroon_Up",UPcolor,UPstyle);
Plot(IIf(Aroonswitch,Null,Aroon_Down),"Aroon_Down" ,DNcolor,DNstyle);
Plot(IIf(OSswitch,Null,Aroon_Osc),"Aroon_Osc",OScolor,OSstyle);
وأخيرا اشكرك كل الشكر على هذا المؤشر الاكثر من رائع
أخوك