السسلام عليكم والرحمة
شباب ياريت من بيقدر يبرمج لنا هذه الفكره
https://forum.arabictrader.com/t7526.html
انا راسلت الاستاذ محمد حنفي وطلبت من فقط كود وكنت مفكر نفسي بقدر اعدل وبضيف اداره رأس المال
وخجلان حتى براسله بعرفه مشغوول
بس ياريت حدى شباب بيضيف له اداراه رأس المال اهم شي
ويعلمني كيف بقدر عدل اداره رأس المال مثلا في حال تحصيل الأكسبيرت عدد من نقاط يتم مضاعفه لوت
مثل 0.1 حصل الاكسبيرت على 300 نقطه مثلا بيضاعف لوت الى 0.2
وعل هل الموال :ongue:
وهذا الكود الأستاذ محمد حنفي ولاتخجلووني :eh_s(7):
//+------------------------------------------------------------------+
//| A Hanafy.mq4 |
//| A H |
//+------------------------------------------------------------------+
#property copyright "A H"
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 MediumSeaGreen
#property indicator_color2 Red
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_ARROW,0,2);
SetIndexArrow(0,217);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexEmptyValue(0,0.0);
SetIndexStyle(1,DRAW_ARROW,0,2);
SetIndexArrow(1,218);
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);
//---- last counted bar will be recounted
if (counted_bars>0) counted_bars--;
int pos=Bars-counted_bars;
while(pos>=0)
{
//buy
if(iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,p os)<=20.00)
{
ExtMapBuffer1[pos]=Low[pos]-10* Point ;
}
else
{
ExtMapBuffer1[pos]=0;
}
//sell
if(iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,p os)>=80.00)
{
ExtMapBuffer2[pos]=High[pos] + 10 * Point;
}
else
{
ExtMapBuffer2[pos]=0;
}
pos--;
}
//----
//----
return(0);
}
//+------------------------------------