igrun, а формулу расчёта флета можешь дать.
Только простым языком, на уровне третего класса.
в основном в жизни имел дело с «киркой и лопатой»
<code>Alert("Fozzy Cross for "+Symbol()+" on the "+Period()+" minute chart.");</code><code>//Alert("Fozzy Cross for "+Symbol()+" on the "+Period()+" minute chart.");</code><code>Print(Crossed (RSI[0],RSIMA[0])); </code>
<code>// Print(Crossed (RSI[0],RSIMA[0])); </code>
<code>//+------------------------------------------------------------------+
//| Fozzy Daily Indicator |
//| Programmed by Aidrian O'Connor |
//| http://www.unitone.org |
//+------------------------------------------------------------------+
#property copyright "Fozzy"
#property link "http://"
#property indicator_separate_window
#property indicator_buffers 5
#property indicator_color1 Aqua
#property indicator_color2 Red
#property indicator_color3 MediumSeaGreen
#property indicator_color4 MediumSeaGreen
#property indicator_color5 MediumSeaGreen
//---- indicator parameters
extern int RSIPeriod = 9;
extern int RSIMAPeriod = 8;
extern int BandsPeriod=40;
extern int BandsShift=0;
extern double BandsDeviations=2.0;
//---- buffers
double RSI[];
double RSIMA[];
double BBMid[];
double BBUp[];
double BBDn[];
int i;
int init()
{
IndicatorBuffers(5);
//---- drawing settings
SetIndexStyle(0,DRAW_LINE);
SetIndexDrawBegin(0,i-1);
SetIndexBuffer(0, RSI);
SetIndexLabel(0,"RSI");
SetIndexStyle(1,DRAW_LINE);
SetIndexDrawBegin(1,i-1);
SetIndexBuffer(1, RSIMA);
SetIndexLabel(1,"RSI-MA");
SetIndexStyle(2,DRAW_LINE,STYLE_DOT,0,MediumSeaGreen);
SetIndexDrawBegin(2,i-1);
SetIndexBuffer(2, BBMid);
SetIndexLabel(2,"BB-Mid");
SetIndexStyle(3,DRAW_LINE,STYLE_DOT,0,MediumSeaGreen);
SetIndexDrawBegin(3,i-1);
SetIndexBuffer(3, BBUp);
SetIndexLabel(3,"BB-Up");
SetIndexStyle(4,DRAW_LINE,STYLE_DOT,0,MediumSeaGreen);
SetIndexDrawBegin(4,i-1);
SetIndexBuffer(4, BBDn);
SetIndexLabel(4,"BB-Dn");
return(0);
}
//------------------------------------------\\
int start()
{
i=Bars-BandsPeriod;
while(i>=0) {
RSI[i] = iRSI(NULL,0,RSIPeriod,PRICE_CLOSE,i);
i--;
}
i=Bars-BandsPeriod;
while(i>=0) {
RSIMA[i] = iMAOnArray(RSI,0,RSIMAPeriod,0,MODE_SMA,i);
i--;
}
i=Bars-BandsPeriod;
while(i>=0) {
BBMid[i] = iMAOnArray(RSIMA,0,BandsPeriod,BandsShift,MODE_SMA,i);
BBUp[i] = iBandsOnArray(RSIMA,0,BandsPeriod,BandsDeviations,BandsShift,MODE_UPPER,i);
BBDn[i] = iBandsOnArray(RSIMA,0,BandsPeriod,BandsDeviations,BandsShift,MODE_LOWER,i);
i--;
}
return(0);
}
//+------------------------------------------------------------------+</code>
которые работают без strict.
return value of 'OrderSend' should be checked
Возможно, сильнее, чем строгость.
1. Ошибки компиляции
При наличии ошибок в коде программа не может быть скомпилирована.
Для полного контроля всех ошибок рекомендуется использовать строгий режим компиляции, который устанавливается директивой:
#property strict
Этот режим значительно упрощает поиск ошибок.
www.mql5.com/ru/articles/1391
Забаньте (//) strict в стр.16. Или удалите строку.
Не всё так просто оказалось

string NEA = "SuperGold-EA"; + "SUPER GOLD EA"string gs_316 = "[Elise-EA-Sell]";string gs_316 = "[EA-Sell]";string gs_528 = "[@EliseTrendEA]";string gs_528 = "[TrendEA]";string gs_744 = "[Elise-EA-Buy]";string gs_744 = "[EA-Buy]";
//--- indicator lines
SetIndexStyle(0,DRAW_HISTOGRAM,0,1,ExtColor1);
SetIndexBuffer(0,ExtLowHighBuffer);
SetIndexStyle(1,DRAW_HISTOGRAM,0,1,ExtColor2);
SetIndexBuffer(1,ExtHighLowBuffer);
SetIndexStyle(2,DRAW_HISTOGRAM,0,3,ExtColor3);
SetIndexBuffer(2,ExtOpenBuffer);
SetIndexStyle(3,DRAW_HISTOGRAM,0,3,ExtColor4);
SetIndexBuffer(3,ExtCloseBuffer);//--- indicator lines
SetIndexStyle(0,DRAW_NONE,0,1,ExtColor1);
SetIndexBuffer(0,ExtLowHighBuffer);
SetIndexStyle(1,DRAW_NONE,0,1,ExtColor2);
SetIndexBuffer(1,ExtHighLowBuffer);
SetIndexStyle(2,DRAW_LINE,0,3,ExtColor3);
SetIndexBuffer(2,ExtOpenBuffer);
SetIndexStyle(3,DRAW_LINE,0,3,ExtColor4);
SetIndexBuffer(3,ExtCloseBuffer);bishop.opentraders.ru/129141.html
Судя по вашим опусам, вы далеки от программирования
Тут уже был один такой умник
Может легче будет и дешевле.
alex30774