extern string Ìåòêà1="-= Ïàðàìåòðû PriceChannel_Stop_v6 =-"; extern int PriceChannel_ChannelPeriod=26; //Price Channel Period extern double PriceChannel_Risk=0.1; //channel narrowing factor (0...0,5) extern string Ìåòêà2="-= Ïàðàìåòðû ñàìîãî ýêñïåðòà =-"; extern int Îòñòóï_îò_òî÷êè_ñòîïà=20; extern int TP=200; double PCSU,PCSD,PCst; int cbar=0; int start() { RefreshRates(); /* PCSU=iCustom(Symbol(),PERIOD_M15,"PriceChannel_Stop_v6",PriceChannel_ChannelPeriod, PriceChannel_Risk, 1, 0, 0, 0, 1000, 0, 1); if (PCSU==0) PCSU=iCustom(Symbol(),PERIOD_M15,"PriceChannel_Stop_v6",PriceChannel_ChannelPeriod, PriceChannel_Risk, 1, 0, 0, 0, 1000, 2, 1); PCSD=iCustom(Symbol(),PERIOD_M15,"PriceChannel_Stop_v6",PriceChannel_ChannelPeriod, PriceChannel_Risk, 1, 0, 0, 0, 1000, 1, 1); if (PCSD==0) PCSD=iCustom(Symbol(),PERIOD_M15,"PriceChannel_Stop_v6",PriceChannel_ChannelPeriod, PriceChannel_Risk, 1, 0, 0, 0, 1000, 3, 1); Print(" Íèæíÿÿ=",PCSU," Âåðõíÿÿ=",PCSD);*/ if (Hour()==23 && Minute()>45){ Print("inter"); if (OrdersTotal()<1) OrderSend(Symbol(),OP_SELL,0.1,Bid,2,0,0,"-",0,0,Yellow);} if (Hour()==0) { OrderSelect(0,SELECT_BY_POS,MODE_TRADES); OrderClose(OrderTicket(),OrderLots(),Ask,2,Orange); } }
Sample
Analysis
Market Information Used:
Indicator Curves created:
Indicators Used:
Custom Indicators Used:
PriceChannel_Stop_v6
Order Management characteristics:
It automatically opens orders when conditions are reached
Checks for the total of open orders
It Closes Orders by itself
Other Features: