[MT4指标]i-GAP趋势指标
主图指标
mt4指标类型:趋势指标
是否能用在mt4手机版上:否
是否含有未来函数:无
i-GAP趋势指标
//+------------------------------------------------------------------+
//| i-GAP.mq4 |
//| 疏? 茹铕? ?. aka KimIV |
//| http://www.kimiv.ru |
//| |
//| 04.11.2005 软滂赅蝾? 幂项? |
//+------------------------------------------------------------------+
#property copyright "疏? 茹铕? ?. aka KimIV"
#property link "http://www.kimiv.ru"
//----
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 LightBlue
#property indicator_color2 Salmon
//------- 马屮龛? 镟疣戾蝠? 桧滂赅蝾疣 -------------------------------
extern int SizeGAP =5; // 朽珈屦 幂相
extern int NumberOfBars=10000; // 暑腓麇耱忸 徉痤? 钺聍蛤? (0-怦?)
//------- 秒钺嚯 镥疱戾眄 --------------------------------------
int ArrowInterval;
//------- 项觌 屙桢 忭屮龛? 祛潴脲? ---------------------------------
//------- 馏翦瘥 桧滂赅蝾疣 ------------------------------------------
double SigBuy;
double SigSell;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
void init()
{
SetIndexBuffer(0, SigBuy);
SetIndexStyle (0, DRAW_ARROW);
SetIndexArrow (0, 233);
SetIndexEmptyValue(0, EMPTY_VALUE);
//
SetIndexBuffer(1, SigSell);
SetIndexStyle (1, DRAW_ARROW);
SetIndexArrow (1, 234);
SetIndexEmptyValue(1, EMPTY_VALUE);
ArrowInterval=GetArrowInterval();
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
void start()
{
double ms[2];
int LoopBegin, sh;
//----
if (NumberOfBars==0) LoopBegin=Bars-1;
else LoopBegin=NumberOfBars-1;
//----
for(sh=LoopBegin; sh>=0; sh--)
{
ms[0]=EMPTY_VALUE;
ms[1]=EMPTY_VALUE;
GetSignals(sh, ms);
SigBuy[sh]=ms[0];
SigSell[sh]=ms[1];
}
}
//+------------------------------------------------------------------+
//| 骂玮疣 弪 耔沩嚯? |
//+------------------------------------------------------------------+
void GetSignals(int nb, double& ms)
{
double Cl1=Close[nb+1];
double Op0=Open [nb];
//----
if (Cl1>Op0+SizeGAP*Point) ms[0]=Low[nb]-ArrowInterval*Point;
if (Cl1i-GAP.jpg
发表于:2017-08-11 09:56只看该作者
2楼
阅尽天下指标
韬客社区www.talkfx.co
发表于:2017-08-16 01:35只看该作者
3楼
阅尽天下指标
韬客社区www.talkfx.co
5楼
Cccccccccccccccc
韬客社区www.talkfx.co
发表于:2018-08-25 09:22只看该作者
6楼
[backcolor=transparent]缺钱,灌水赚通宝[/backcolor]
韬客社区www.talkfx.co