www.opentraders.ru/downloads/889/

Сколько по вашему мнению Андрей в среднем надо время, чтоб с нуля этим делом более менее овладеть?
Среди друзей програмЁров увы нету
Мне первого числа новый топик сделать?
а каким образом уровень влияет на просьбу доработать советник? и как повысить уровень?
//+------------------------------------------------------------------+
//| Entry.mq4 |
//| Copyright 2015, AM2 |
//| http://www.forexsystems.biz |
//+------------------------------------------------------------------+
#property copyright "Copyright 2015, AM2"
#property link "http://www.forexsystems.biz"
#property version "1.00"
#property strict
#property indicator_separate_window
#property indicator_minimum 0.0
#property indicator_maximum 100.0
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Lime
input int BarsCount=500;
input int Trend=1; //0-Flat. 1-Trend
input string MA_Inputs="---------------";
input int MAPeriod=30;
input string Stochastic_Inputs="---------------";
input int Kperiod = 5;
input int Dperiod = 3;
input int Slowing = 3;
input int Level = 30;
double buf1[];
double buf2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- indicator buffers mapping
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,5);
SetIndexBuffer(0,buf1);
SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,5);
SetIndexBuffer(1,buf2);
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
//---
for(int i=1;i<BarsCount;i++)
{
double st1 = iStochastic(NULL,0,Kperiod,Dperiod,Slowing,0,0,0,i);
double st2 = iStochastic(NULL,0,Kperiod,Dperiod,Slowing,0,0,0,i+1);
double ma = iMA(NULL,0,MAPeriod,0,0,0,i);
if(Trend==0)
{
if(st2>70 && st1<70) buf1[i] = 100;
if(st2<30 && st1>30) buf2[i] = 100;
}
if(Trend==1)
{
if(close[i+1]>ma && close[i]<ma) buf1[i] = 100;
if(close[i+1]<ma && close[i]>ma) buf2[i] = 100;
}
}
//--- return value of prev_calculated for next call
return(rates_total);
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| Entry.mq4 |
//| Copyright 2015, AM2 |
//| http://www.forexsystems.biz |
//+------------------------------------------------------------------+
#property copyright "Copyright 2015, AM2"
#property link "http://www.forexsystems.biz"
#property version "1.00"
#property strict
#property indicator_separate_window
#property indicator_minimum 0.0
#property indicator_maximum 100.0
#property indicator_buffers 2
#property indicator_color1 Aqua
#property indicator_color2 Magenta
double buf1[];
double buf2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- indicator buffers mapping
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,5);
SetIndexBuffer(0,buf1);
SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,5);
SetIndexBuffer(1,buf2);
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
//---
for(int i=1;i<500;i++)
{
double st1 = iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,i);
double st2 = iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,i+1);
if(st2>70 && st1<70) buf1[i] = 100;
if(st2<30 && st1>30) buf2[i] = 100;
}
//--- return value of prev_calculated for next call
return(rates_total);
}
//+------------------------------------------------------------------+
Размещайте заказ, все что нужно поправлю.
AM2