طيب مين يقولى دى معناها ايه
كود:if(iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,0)>25)
صح اجابات صحيحة جدا
اذا خط الترند لمؤشر adx باعداد 14 للسعر الاعلى على الشارت المفتوح لاخر شمعة اكبر من 25
Printable View
طيب مين يقولى دى معناها ايه
كود:if(iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,0)>25)
صح اجابات صحيحة جدا
اذا خط الترند لمؤشر adx باعداد 14 للسعر الاعلى على الشارت المفتوح لاخر شمعة اكبر من 25
طيب عايزين نعدل المؤشر
اتفضلوا المؤشر المعدل
هنسميه hadi v-2
كود://+------------------------------------------------------------------+
//| Hadi.mq4 |
//| A H |
//| https://www.arabictrader.com/ |
//+------------------------------------------------------------------+
#property copyright "A H"
#property link "https://www.arabictrader.com/"
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Green
#property indicator_color2 Red
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,233);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexEmptyValue(0,0.0);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,234);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexEmptyValue(1,0.0);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//----
if (counted_bars<0) return(-1);
if (counted_bars>0) counted_bars--;
int i=Bars-counted_bars;
bool aaa=false ;
while(i>=0)
{
//buy
if(iMA(NULL,0,5,0,MODE_SMA,PRICE_CLOSE,i)>=iMA(NULL,0,8,0,MODE_SMA,PRICE_CLOSE,i)&&iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,0)>25&& aaa==true)
{
ExtMapBuffer1[i]=Low[i]-20*Point ;
aaa=false;
}
else
{
ExtMapBuffer1[i]=0;
}
//sell
if(iMA(NULL,0,5,0,MODE_SMA,PRICE_CLOSE,i)< iMA(NULL,0,8,0,MODE_SMA,PRICE_CLOSE,i)&& iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,0)>25 && aaa==false)
{
ExtMapBuffer2[i]=High[i]+20*Point ;
aaa=true;
}
else
{
ExtMapBuffer2[i]=0;
}
i--;
}
return(0);
}
//+------------------------------------------------------------------+
التعديل باللون الازرق
مخمخ فى التعديل و تأمل معناه
و نفذه و جربه
و ادعيلى
ألاستاذ العزيز على قلوبنا أحمد حنفي أنت مطلوب حضورك لهذا
الرابط https://forum.arabictrader.com/showthread.php?t=27610
شاكرين لك جميع مجهودك والله ينور لك طريقك في الدنيا و آلاخره ويستر عليك
احتج
كملتوا الدروس بدونى
اوعى حد يقول انى كنت غايب
لانى انتظرتكم يوم السبت والاحد ولم يدخل احد
كده يا استاذ / احمد تفتح المدرسه بدونى
زعلان جدا
تقبل تحياتى
:013: :013: :compress: :compress:
شباب الورشة انتم فين ؟
نمتم و لا ايه ؟؟؟؟؟؟؟؟؟؟
ممكن برضه الاستفادة من مؤشر ال adx بالخروج المبكر من الصفقات الرابحة وذلك بمراقبة الخط اذا وصل فوق 40 ثم نزل عنه من الافضل المحافظة على ارباحنا حينها واقفال العقد
هل من الممكن برمجة ذلك؟
استاذ / احمد حنفى باشا
قمت بتعديل المؤشر كما هو اعلاه ولكن ظل عدد الاسهم كما هو
كود:int start()
{
int counted_bars=IndicatorCounted();
//----
if (counted_bars<0) return(-1);
//---- last counted bar will be recounted
if (counted_bars>0) counted_bars--;
int i=Bars-counted_bars;
bool aaa=false ;
while(i>=0)
{
//buy
if(iMA(NULL,0,5,0,MODE_SMA,PRICE_CLOSE,i)>=iMA(NULL,0,8,0,MODE_SMA,PRICE_CLOSE,i))
{
ExtMapBuffer1[i]=Low[i] -20*Point ;
aaa=false;
}
else
{
ExtMapBuffer1[i]=0;
}
//sell
if(iMA(NULL,0,5,0,MODE_SMA,PRICE_CLOSE,i)< iMA(NULL,0,8,0,MODE_SMA,PRICE_CLOSE,i))
{
ExtMapBuffer2[i]=High[i]+20*Point ;
aaa=true;
}
else
{
ExtMapBuffer2[i]=0;
}
i--;
}
//----
بسم الله الرحمن الرحيم
بارك الله فيك استاذ حنفي
معاك تمام التمام
بس طريقة عمل
bool aaa
دي لو شرحتها لينا بتفصيا اكتر