顺水外汇EA交易网MT4
标题:
新手请教,sidus指标怎么用?是否会重绘?
[打印本页]
作者:
diana
时间:
2018-1-11 11:52
标题:
新手请教,sidus指标怎么用?是否会重绘?
新手请教,sidus指标怎么用?是否会重绘?
[attach]16989[/attach]
//+------------------------------------------------------------------+
//| Sidus.mq4 |
//| Copyright © 2006, GwadaTradeBoy |
//| racooni_1975@yahoo.fr |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, GwadaTradeBoy"
#property link "racooni_1975@yahoo.fr"
//----
#property indicator_chart_window
//----Section #property
#property indicator_buffers 7
#property indicator_color1 Red
#property indicator_color2 Red
#property indicator_color3 Aqua
#property indicator_color4 Yellow
#property indicator_color5 Green
#property indicator_color6 Red
#property indicator_color7 Red
//---- Indicateurs
double EMA18, EMA28, WMA5, WMA8, tuncross;
double EMA18Current, EMA18Previous, EMA28Current, EMA28Previous;
double WMA5Current, WMA5Previous, WMA8Current, WMA8Previous;
extern double digit=0;
int nShift;
//---- buffers
double ExtMapBuffer1[]; //EMA18
double ExtMapBuffer2[]; //EMA28
double ExtMapBuffer3[]; //WMA5
double ExtMapBuffer4[]; //WMA8
double ExtMapBuffer5[]; //Fleche Haut
double ExtMapBuffer6[]; //Fleche Bas
double ExtMapBuffer7[]; //Croix
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//---- Styles et couleur des Lignes
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexStyle(2,DRAW_LINE);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexStyle(3,DRAW_LINE);
SetIndexBuffer(3,ExtMapBuffer4);
SetIndexStyle(3,DRAW_LINE);
//---- Styles et couleur des Fleches
SetIndexStyle(4, DRAW_ARROW, 0, 1); // Fleche vers le haut
SetIndexArrow(4, 233);
SetIndexBuffer(4, ExtMapBuffer5);
SetIndexStyle(5, DRAW_ARROW, 0, 1); // Fleche vers le bas
SetIndexArrow(5, 234);
SetIndexBuffer(5, ExtMapBuffer6);
SetIndexStyle(6, DRAW_ARROW, 0, 1); // Croix rouge fin de trade
SetIndexArrow(6, 251);
SetIndexBuffer(6, ExtMapBuffer7);
//----
switch(Period())
{
case 1: nShift=1; break;
case 5: nShift=3; break;
case 15: nShift=5; break;
case 30: nShift=10; break;
case 60: nShift=15; break;
case 240: nShift=20; break;
case 1440: nShift=80; break;
case 10080: nShift=100; break;
case 43200: nShift=200; break;
}
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int i,j,limit,counted_bars=IndicatorCounted();
//----
if(counted_bars0)
counted_bars--;
//----
limit=Bars-counted_bars;
//----
for(i=0; i EMA28Current + digit*Point) &&( EMA18Previous WMA8Current && WMA5Previous EMA28Current + digit*Point) &&( EMA18Previous WMA8Current + digit*Point) &&( WMA5Previous EMA18Current+ digit*Point) && ( WMA5Previous EMA28Current+ digit*Point) && ( WMA5Previous EMA18Current+ digit*Point) && ( WMA8Previous EMA28Current+ digit*Point) && ( WMA8Previous WMA8Current+ digit*Point )&&(WMA5Previous EMA28Current+ digit*Point) &&(WMA8Previous WMA5Current && WMA8Previous = EMA28Previous)) && // Croisement Tunnel
//((WMA5Current = WMA8Previous)) && // Croisement WMA
//((WMA5Current WMA5Current+ digit*Point )&&(WMA8Previous WMA8Current+ digit*Point) &&(WMA8Previous>=EMA28Current)) // Croisement WMA8 down bord infйrieur du tunnel
{
ExtMapBuffer6
=High
+ nShift*Point;
} /*}*/
}
//---- Dessin des croix, future sortie en trade
return(0);
}
//+------------------------------------------------------------------+
作者:
diana
时间:
2018-1-11 12:27
指标文件
作者:
sjansk
时间:
2018-1-11 13:17
谢谢分享
作者:
winfyha
时间:
2018-1-11 14:24
謝謝分享
作者:
uyytgr75kg
时间:
2018-1-11 15:16
要。。。。。。
作者:
yeyue888
时间:
2018-1-11 15:32
我也想知道怎么用
作者:
15806593088
时间:
2018-1-11 16:18
谢谢楼主分享!!!
欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/)
Powered by Discuz! X3.2