#property version "1.00"
#property strict
input string Expert_Properties===================================;
input int Expert_Id=8888;
input string Expert_Comment=AlgoTradeSoft;
input string Order_Properties====================================;
input string Spread_Properties=-------------S P R E A D----;
input double Spread_MaxAverage=2.0;
input bool Spread_FastBackTest=true;
input string Lot_Properties=-----------------L O T-----------;
input int Lot_Type=1;
input double Lot_FixedSize=0.1;
input double Lot_Risk=1.0;
input double Lot_Max=0.0;
input double Lot_PersonalPercent=0.0;
input string StopLoss_Properties=----------S T O P - L O S S----------;
input double StopLoss_FixedSize=1.5;
input string TakeProfit_Properties=--------T A K E - P R O F I T----;
input double TakeProfit_FixedSize=150.0;
input string BreakEven_Properties=---------B R E A K - E V E N-----;
input double BreakEven_After=3.0;
input double BreakEven_To=1.0;
input string TrailingStop_Properties=------T R A I L I N G - S T O P----;
input double TrailingStop_Size=1.0;
input double TrailingStop_Step=0.8;
input bool TrailingStop_CorrectSL=true;
input bool TrailingStop_UseRealOPAndSL=true;
input int TrailingStop_TrailingMode=0;
input int TrailingStop_TimeScale=1;
input int TrailingStop_VolatilityScale=3;
input int TrailingStop_VolumeScale=3;
input double TrailingStop_ChangeCorr=1.2;
input string Time_Properties=---------------T I M E----------;
input int EveryDay_StartHour=23;
input int EveryDay_StartMinute=50;
input int EveryDay_EndHour=21;
input int EveryDay_EndMinute=45;
input string FridayStopTime=20:45;
input string Time_GMT_Properties=-----------------------G M T---------;
input int Time_GMT_Mode=0;
input int Time_Manual_GMT_Offset=2;
input string Signal_Properties=======================================;
input double BrokerQuotesShift=0.0;
input double CustomCommission=0.0;
int OnInit()
{
// код доступен только после оплаты
}
void OnDeinit(const int reason)
{
}
void OnTick()
{
// код доступен только после оплаты
}
double spread;spread=Ask-Bid;
int b,s,c,k,cnt,ticket;
double red,blue,daily,weekly;
int init(){
// код доступен только после оплаты
}
int deinit(){return(0);}
int start(){
// код доступен только после оплаты
}
if(accounMM<720) {return(0);}
/* if(!IsTesting() && c<=0) {
" Press \"F8,\" & select \"Common\" tab to check\n"
" \"show object descriptions.\"","FYI it",MB_OK|MB_ICONINFORMATION);
) {
("Given the nature of the custom indicator \n"+
"\"Support Resistance\", and the assignment of \n"+
"StopLoss and TakeProfit values taken from \n"+
"trend lines generated by this indicator, \n"+
"only live demo testing is of any benefit \n"+
"to you, the user of this ea.","Backtesting it",
MB_OK|MB_ICONSTOP);
k++;}*/
red=iCustom(Symbol(),0,"Instant TrendLine",0,0);
blue=iCustom(Symbol(),0,"Instant TrendLine",1,0);
daily=iCustom(Symbol(),0,"Support Resistance",1440,144,13,1,5,true,Aqua,DeepPink,Red,DarkOrange,DeepSkyBlue,Lime,0,0);
weekly=iCustom(Symbol(),0,"Support Resistance",10080,144,13,1,5,true,Aqua,DeepPink,Red,DarkOrange,DeepSkyBlue,Lime,0,0);
PosCounter();
if(Open[1]<red && Close[1]>red && b==0) {
ticket=OrderSend(Symbol(),
OP_BUY,
LotsOptimized(),
Close[0],
spread,
StopLoss(),
TakeProfit(),
Period()+comment,
Magic,
0,//OrderExpiration
Aqua);
Показано первые 50% кода (символов: 5492)
Введите ваш email и нажмите кнопку, чтобы перейти к оплате.