A vot i indikator
//+------------------------------------------------------------------+ //| DynamicRS+Channel.mq4 | //| Copyright © 2007, Nick A. Zhilin | //| rebus58@mail.ru | //+------------------------------------------------------------------+ #property copyright "Copyright © 2007, Nick A. Zhilin" #property link "rebus58@mail.ru" extern int Filter=31; #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Black #property indicator_color2 Red #property indicator_color3 Aqua //---- buffers double ExtMapBuffer1[]; double ExtMapBuffer2[]; double ExtMapBuffer3[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { IndicatorShortName("DynamicRS+Channel"); //---- indicators SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ExtMapBuffer1); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1,ExtMapBuffer2); SetIndexStyle(2,DRAW_LINE); SetIndexBuffer(2,ExtMapBuffer3); //---- return(0); } //+------------------------------------------------------------------+ //| DynamicRS+Channel | //+------------------------------------------------------------------+ int start() { int i,counted_bars=IndicatorCounted(); double Channel; //---- i=Bars-counted_bars-1; while(i>=0) { if(High[i]<High[i+1] && High[i]<ExtMapBuffer1[i+1]-Filter*Point) ExtMapBuffer1[i]=High[i]; else if(Low[i]>Low[i+1] && Low[i]>ExtMapBuffer1[i+1]+Filter*Point) ExtMapBuffer1[i]=Low[i]; else ExtMapBuffer1[i]=ExtMapBuffer1[i+1]; ExtMapBuffer2[i]=ExtMapBuffer1[i]+Filter*Point; ExtMapBuffer3[i]=ExtMapBuffer1[i]-Filter*Point; i--; } //---- return(0); } //+------------------------------------------------------------------+
OrderModify(OrderTicket(),OrderOpenPrice(),SL,TP,0,Blue);
добавьте везде NormalizeDouble:
OrderModify(OrderTicket(),OrderOpenPrice(),NormalizeDouble(SL, Digits),NormalizeDouble(TP, Digits),0,Blue);
добавьте везде NormalizeDouble:
Sposibo, dobavil, na testere oshibku nepokazivaet bolshe.
Posmotrim, kak budet na realnoj torgovle.
Sposibo, dobavil, na testere oshibku nepokazivaet bolshe.
Posmotrim, kak budet na realnoj torgovle.
Sposibo, dobavil, na testere oshibku nepokazivaet bolshe.
Posmotrim, kak budet na realnoj torgovle.
Opjatj oshibka, no ja ponjal v chom zacepka,
Stop i Profit slishkom blisko, nado shtobi uchitival + Spread ! No kak eto dobavitj v sovetnik???
Pozalujsta pomogite!!!добавьте везде NormalizeDouble:
Opjatj oshibka, no ja ponjal v chom zacepka,
Stop i Profit slishkom blisko, nado shtobi uchitival + Spread ! No kak eto dobavitj v sovetnik???
Pozalujsta pomogite!!!MarketInfo(Symbol(), MODE_STOPLEVEL);
Sposibo, tolko kuda v kod evo vstavitj, i kak?
Ja ne programist, ja tolko uchusj :)
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Вы принимаете политику сайта и условия использования
Pozalujsta pomogite reshitj problemu s sovetnikom.
Vidajot oshibku modify order ERROR!!!
modification of order #2612221 sell 1.00 GBPJPY. at 130.656 sl: 0.000 tp: 0.000 -> sl: 130.518 tp: 130.484 failed [Invalid S/L or T/P]
I na 4 znachnih koterovok vobshe modify nerabotaet!