عرض مشاركة واحدة
قديم 09-07-2007, 12:18 AM   #3
Abo Elias
متداول نشيط
 
تاريخ التسجيل: Jul 2005
المشاركات: 445

 
افتراضي كود أرون لامي بروكر

هذا هو السكربت الصحيح الذي أعددته وبامكان المستخدم تغيير الفترة حسب رغبته بسهولة ( لا يقتصر على 14 يوم فقط ).

//Aroon Indicator
//Abo Elias July-07-2007
SetChartOptions(0,0,chartGrid30|chartGrid50|chartG rid70);
_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",UPc olor,UPstyle);
Plot(IIf(Aroonswitch,Null,Aroon_Down),"Aroon_Down" ,DNcolor,DNstyle);
Plot(IIf(OSswitch,Null,Aroon_Osc),"Aroon_Osc",OSco lor,OSstyle);

Abo Elias غير متواجد حالياً   رد مع اقتباس