• 10:07 صباحاً




طريقة اضافة الاكسيبرتات والمؤشرات بعد التحديثات الاخيره للميتاتريدر

إضافة رد
Like Tree9Likes

أدوات الموضوع
الصورة الرمزية رابعة
عضو نشيط جدا
الصورة الرمزية رابعة
 
تاريخ التسجيل: Dec 2008
المشاركات: 590
معدل تقييم المستوى: 16
رابعة is on a distinguished road
افتراضي رد: اسهل طريقة لاضافة مؤشر للشارت
31#
03 - 05 - 2009, 11:50 AM
//+------------------------------------------------------------------+ما معنى هذة الارقام والشروحات
//| SelfAjustRSI_v1.mq4 |
//| Copyright © 2006, Forex-TSD.com |
//| Author IgorAD by idea of David Sepiashvili |
//| [عذراً, فقط الأعضاء يمكنهم مشاهدة الروابط ] |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Forex-TSD.com "
#property link "http://www.forex-tsd.com/"

#property indicator_separate_window
#property indicator_minimum 0
#property indicator_maximum 100
#property indicator_level1 30
#property indicator_level2 70
#property indicator_level3 50
#property indicator_buffers 3
#property indicator_color1 DodgerBlue
#property indicator_color2 Lime
#property indicator_color3 Lime
//---- input parameters
extern int Price = 0; // O-Close; 1-Open; 2-High; 3-Low; 4-Median; 5-Typical; 6-Weighted
extern int RSIPeriod =14; // Period of RSI
extern double K = 1; // Deviation ratio
extern int Mode = 0; // RSI mode : 0 - typical(smoothed by SMMA); 1- clssic (smoothed by SMA)
//---- buffers
double RSIBuffer[];
double OBBuffer[];
double OSBuffer[];
double PosBuffer[];
double NegBuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
string short_name;
//---- 2 additional buffers are used for counting.
IndicatorBuffers(5);
SetIndexBuffer(3,PosBuffer);
SetIndexBuffer(4,NegBuffer);
//---- indicator lines
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,RSIBuffer);

SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,OBBuffer);

SetIndexStyle(2,DRAW_LINE);
SetIndexBuffer(2,OSBuffer);
//---- name for DataWindow and indicator subwindow label
short_name="SelfAjustRSI("+RSIPeriod+","+DoubleToS tr(K,2)+")";
IndicatorShortName(short_name);
SetIndexLabel(0,short_name);
SetIndexLabel(1,"Overbought");
SetIndexLabel(2,"OverSold");
//----
SetIndexDrawBegin(0,RSIPeriod);
SetIndexDrawBegin(1,RSIPeriod);
SetIndexDrawBegin(2,RSIPeriod);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Self-Adjusting Relative Strength Index by David Sepiashvili |
//+------------------------------------------------------------------+
int start()
{
int i,limit,counted_bars=IndicatorCounted();
double rel,negative,positive;
//----
if(Bars<=RSIPeriod) return(0);
//---- initial zero
//if(counted_bars<1)
// for(i=1;i<=RSIPeriod;i++) RSIBuffer[Bars-i]=0.0;
//----
if ( counted_bars > 0 ) limit=Bars-counted_bars;
if ( counted_bars < 0 ) return(0);
if ( counted_bars ==0 ) limit=Bars-RSIPeriod-1;

for(i=limit;i>=0;i--)
{
double sumn=0.0,sump=0.0;
if(i==Bars-RSIPeriod-1)
{
int k=Bars-2;
//---- initial accumulation
while(k>=i)
{
rel=iMA(NULL,0,1,0,MODE_SMA,Price,k)-iMA(NULL,0,1,0,MODE_SMA,Price,k+1);
if(rel>0) sump+=rel;
else sumn-=rel;
k--;
}
positive=sump/RSIPeriod;
negative=sumn/RSIPeriod;
}
else
{
//---- smoothed moving average
if (Mode == 0)
{
rel=iMA(NULL,0,1,0,MODE_SMA,Price,i)-iMA(NULL,0,1,0,MODE_SMA,Price,i+1);
if(rel>0) sump=rel;
else sumn=-rel;

positive=(PosBuffer[i+1]*(RSIPeriod-1)+sump)/RSIPeriod;
negative=(NegBuffer[i+1]*(RSIPeriod-1)+sumn)/RSIPeriod;
}
else
if (Mode == 1)
{
sumn=0.0;sump=0.0;
for ( k=RSIPeriod-1;k>=0;k--)
{
rel=iMA(NULL,0,1,0,MODE_SMA,Price,i+k)-iMA(NULL,0,1,0,MODE_SMA,Price,i+k+1);
if(rel>0) sump+=rel;
else sumn-=rel;
}


positive=sump/RSIPeriod;
negative=sumn/RSIPeriod;
}
}
PosBuffer[i]=positive;
NegBuffer[i]=negative;
if(negative==0.0) RSIBuffer[i]=100.0;
else RSIBuffer[i]=100.0-100.0/(1+positive/negative);
// }
//
// for(int j=limit;j>=0;j--)
// {
double SumRSI = 0;
for ( k=RSIPeriod-1;k>=0;k--) SumRSI += RSIBuffer[i+k];
double AvgRSI = SumRSI/RSIPeriod;

double SumSqr = 0;
for ( k=RSIPeriod-1;k>=0;k--) SumSqr += (RSIBuffer[i+k] - AvgRSI) * (RSIBuffer[i+k] - AvgRSI);
double StdDev = MathPow(SumSqr/RSIPeriod,0.5);

OBBuffer[i] = 50 + K * StdDev;
OSBuffer[i] = 50 - K * StdDev;

}
//----
return(0);
}
//+------------------------------------------------------------------+
رابعة غير متواجد حالياً  
رد مع اقتباس

عضو فـعّـال
 
تاريخ التسجيل: Dec 2008
الدولة: في عيون الناس
العمر: 36
المشاركات: 1,503
خبرة السوق: 3 الى 5 سنوات
معدل تقييم المستوى: 17
مصطفى عماشة is on a distinguished road
Exclamation رد: اسهل طريقة لاضافة مؤشر للشارت
32#
03 - 05 - 2009, 02:40 PM
اقتباس:
المشاركة الأصلية كتبت بواسطة رابعة مشاهدة المشاركة
//+------------------------------------------------------------------+ما معنى هذة الارقام والشروحات
//| SelfAjustRSI_v1.mq4 |
//| Copyright © 2006, Forex-TSD.com |
//| Author IgorAD by idea of David Sepiashvili |
//| [عذراً, فقط الأعضاء يمكنهم مشاهدة الروابط ] |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Forex-TSD.com "
#property link "http://www.forex-tsd.com/"

#property indicator_separate_window
#property indicator_minimum 0
#property indicator_maximum 100
#property indicator_level1 30
#property indicator_level2 70
#property indicator_level3 50
#property indicator_buffers 3
#property indicator_color1 DodgerBlue
#property indicator_color2 Lime
#property indicator_color3 Lime
//---- input parameters
extern int Price = 0; // O-Close; 1-Open; 2-High; 3-Low; 4-Median; 5-Typical; 6-Weighted
extern int RSIPeriod =14; // Period of RSI
extern double K = 1; // Deviation ratio
extern int Mode = 0; // RSI mode : 0 - typical(smoothed by SMMA); 1- clssic (smoothed by SMA)
//---- buffers
double RSIBuffer[];
double OBBuffer[];
double OSBuffer[];
double PosBuffer[];
double NegBuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
string short_name;
//---- 2 additional buffers are used for counting.
IndicatorBuffers(5);
SetIndexBuffer(3,PosBuffer);
SetIndexBuffer(4,NegBuffer);
//---- indicator lines
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,RSIBuffer);

SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,OBBuffer);

SetIndexStyle(2,DRAW_LINE);
SetIndexBuffer(2,OSBuffer);
//---- name for DataWindow and indicator subwindow label
short_name="SelfAjustRSI("+RSIPeriod+","+DoubleToS tr(K,2)+")";
IndicatorShortName(short_name);
SetIndexLabel(0,short_name);
SetIndexLabel(1,"Overbought");
SetIndexLabel(2,"OverSold");
//----
SetIndexDrawBegin(0,RSIPeriod);
SetIndexDrawBegin(1,RSIPeriod);
SetIndexDrawBegin(2,RSIPeriod);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Self-Adjusting Relative Strength Index by David Sepiashvili |
//+------------------------------------------------------------------+
int start()
{
int i,limit,counted_bars=IndicatorCounted();
double rel,negative,positive;
//----
if(Bars<=RSIPeriod) return(0);
//---- initial zero
//if(counted_bars<1)
// for(i=1;i<=RSIPeriod;i++) RSIBuffer[Bars-i]=0.0;
//----
if ( counted_bars > 0 ) limit=Bars-counted_bars;
if ( counted_bars < 0 ) return(0);
if ( counted_bars ==0 ) limit=Bars-RSIPeriod-1;

for(i=limit;i>=0;i--)
{
double sumn=0.0,sump=0.0;
if(i==Bars-RSIPeriod-1)
{
int k=Bars-2;
//---- initial accumulation
while(k>=i)
{
rel=iMA(NULL,0,1,0,MODE_SMA,Price,k)-iMA(NULL,0,1,0,MODE_SMA,Price,k+1);
if(rel>0) sump+=rel;
else sumn-=rel;
k--;
}
positive=sump/RSIPeriod;
negative=sumn/RSIPeriod;
}
else
{
//---- smoothed moving average
if (Mode == 0)
{
rel=iMA(NULL,0,1,0,MODE_SMA,Price,i)-iMA(NULL,0,1,0,MODE_SMA,Price,i+1);
if(rel>0) sump=rel;
else sumn=-rel;

positive=(PosBuffer[i+1]*(RSIPeriod-1)+sump)/RSIPeriod;
negative=(NegBuffer[i+1]*(RSIPeriod-1)+sumn)/RSIPeriod;
}
else
if (Mode == 1)
{
sumn=0.0;sump=0.0;
for ( k=RSIPeriod-1;k>=0;k--)
{
rel=iMA(NULL,0,1,0,MODE_SMA,Price,i+k)-iMA(NULL,0,1,0,MODE_SMA,Price,i+k+1);
if(rel>0) sump+=rel;
else sumn-=rel;
}


positive=sump/RSIPeriod;
negative=sumn/RSIPeriod;
}
}
PosBuffer[i]=positive;
NegBuffer[i]=negative;
if(negative==0.0) RSIBuffer[i]=100.0;
else RSIBuffer[i]=100.0-100.0/(1+positive/negative);
// }
//
// for(int j=limit;j>=0;j--)
// {
double SumRSI = 0;
for ( k=RSIPeriod-1;k>=0;k--) SumRSI += RSIBuffer[i+k];
double AvgRSI = SumRSI/RSIPeriod;

double SumSqr = 0;
for ( k=RSIPeriod-1;k>=0;k--) SumSqr += (RSIBuffer[i+k] - AvgRSI) * (RSIBuffer[i+k] - AvgRSI);
double StdDev = MathPow(SumSqr/RSIPeriod,0.5);

OBBuffer[i] = 50 + K * StdDev;
OSBuffer[i] = 50 - K * StdDev;

}
//----
return(0);
}
//+------------------------------------------------------------------+
دا الكود البرمجي بتاع الاسكريبت او المؤشر اللي انتي فتحتيه وانا مش عارف ليه تفتحيه يعني سيبك منه دا ليه ناس بتهتم بيه وبتشتغل عليه

التوقيع


الأحرار يؤمنون بمن معه الحق .. والعبيد يؤمنون بمن معه القوة .. فلا تتعجب من دفاع الأحرار عن الضحية دائماً .. ودفاع العبيد عن الجلاد دائماً.
مصطفى عماشة غير متواجد حالياً  
رد مع اقتباس
الصورة الرمزية رابعة
عضو نشيط جدا
الصورة الرمزية رابعة
 
تاريخ التسجيل: Dec 2008
المشاركات: 590
معدل تقييم المستوى: 16
رابعة is on a distinguished road
افتراضي رد: اسهل طريقة لاضافة مؤشر للشارت
33#
04 - 05 - 2009, 12:27 PM
يعني هيك رايك يا darsh
رابعة غير متواجد حالياً  
رد مع اقتباس
عضو جديد
 
تاريخ التسجيل: Feb 2009
الدولة: مصر
المشاركات: 235
معدل تقييم المستوى: 16
m1_sh is on a distinguished road
افتراضي رد: اسهل طريقة لاضافة مؤشر للشارت
34#
27 - 05 - 2009, 12:43 PM
شكرا سيدي المشرف العزيز
وارجو المزيد قريبا
وشكرااااااااااااااااااااااااااااااااااا
m1_sh غير متواجد حالياً  
رد مع اقتباس
عضو جديد
 
تاريخ التسجيل: Jun 2009
المشاركات: 6
معدل تقييم المستوى: 0
Toreador is on a distinguished road
افتراضي رد: اسهل طريقة لاضافة مؤشر للشارت
35#
29 - 06 - 2009, 11:38 AM
شكرا يا ريس وعقبال ما تفدنا كمان وكمان
Toreador غير متواجد حالياً  
رد مع اقتباس
عضو جديد
 
تاريخ التسجيل: May 2009
الدولة: مصر
العمر: 38
المشاركات: 68
خبرة السوق: أقل من 6 شهور
معدل تقييم المستوى: 15
maged_mohsen6 is on a distinguished road
افتراضي رد: اسهل طريقة لاضافة مؤشر للشارت
36#
01 - 07 - 2009, 09:52 PM
عاوز اجابة بسرعة رجاء كيفية عامل ال pending order
maged_mohsen6 غير متواجد حالياً  
رد مع اقتباس
عضو جديد
 
تاريخ التسجيل: Oct 2009
المشاركات: 19
معدل تقييم المستوى: 0
taha omar is on a distinguished road
افتراضي رد: اسهل طريقة لاضافة مؤشر للشارت
37#
20 - 10 - 2009, 09:29 PM
كلام جميل بس ياريت افهم لانى جديد فحت
taha omar غير متواجد حالياً  
رد مع اقتباس
عضو جديد
 
تاريخ التسجيل: Nov 2009
المشاركات: 27
معدل تقييم المستوى: 0
محمد عويس is on a distinguished road
افتراضي رد: اسهل طريقة لاضافة مؤشر للشارت
38#
20 - 11 - 2009, 01:11 AM
بارك اللة فيك.ريحتنا يا اخي الكريم
محمد عويس غير متواجد حالياً  
رد مع اقتباس
عضو جديد
 
تاريخ التسجيل: Jul 2009
المشاركات: 20
معدل تقييم المستوى: 0
نورمند is on a distinguished road
افتراضي رد: اسهل طريقة لاضافة مؤشر للشارت
39#
25 - 11 - 2009, 01:46 PM
الف شكر
نورمند غير متواجد حالياً  
رد مع اقتباس
الصورة الرمزية akhu
عضو نشيط جدا
الصورة الرمزية akhu
 
تاريخ التسجيل: Oct 2008
الدولة: ســــــوريا
المشاركات: 590
خبرة السوق: 6 شهور الى سنة
معدل تقييم المستوى: 16
akhu is on a distinguished road
افتراضي رد: اسهل طريقة لاضافة مؤشر للميتاتريدر
40#
12 - 01 - 2010, 07:07 PM
مشكووووووووووووووووووور يا مديرنا الغالي

التوقيع

اللهم أنت ربي لا إله إلا أنت خلقتني و أنا عبدك و أنا على عهدك و وعدك ما استطعت أعوذ بك من شر ما صنعت أبوء لك بنعمتك علي و أبوء لك بذنبي فاغفر لي فإنه لا يغفر الذنوب إلا أنت
akhu غير متواجد حالياً  
رد مع اقتباس


إضافة رد

الكلمات الدلالية (Tags)
للجميع, للشارت, لاضافة, مشروح, مؤشر, center, اسهل, بالصور, وبالتوفيق, طريقة



جديد مواضيع منتدى المؤشرات و الاكسبرتات

المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
اسهل طريقة لعمل رسوم متحركة mr.elemad استراحة بورصات 0 04 - 11 - 2009 07:16 PM
حمل مؤشر للميتاتريدر يوضح الفترات الزمنية للاسواق موهوب فوركس منتدى المؤشرات و الاكسبرتات 0 13 - 09 - 2009 04:10 PM
اسهل طريقة لحرق ملفات الايزو alex_m استراحة بورصات 0 18 - 07 - 2009 07:40 AM


10:07 AM