[MT4指标]Fibo自动指示指标
主图指标
mt4指标类型:趋势指标
是否能用在mt4手机版上:否
是否含有未来函数:无
//+------------------------------------------------------------------+
//| Fibo.mq4 |
//| Don Perry |
//| www.fxAdvisor.com |
//+------------------------------------------------------------------+
#property copyright \"Don Perry\"
#property link \"donperry1[@t]gmail.com\"
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
ObjectDelete(\"Fibo\");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
extern int lookback = 24;
extern int lastbar = 0;
extern color FibColor= Green;
int start()
{
ObjectDelete(\"Fibo\");
int counted_bars=IndicatorCounted();
//----
double lowest=1000, highest=0;
datetime T1,T2;
for(int i=lookback+lastbar;i>lastbar+1;i--)
{
double curLow0=iLow(Symbol(),Period(),i-2);
double curLow1=iLow(Symbol(),Period(),i+1);
double curLow2=iLow(Symbol(),Period(),i);
double curLow3=iLow(Symbol(),Period(),i-1);
double curLow4=iLow(Symbol(),Period(),i-2);
double curHigh0=iHigh(Symbol(),Period(),i+2);
double curHigh1=iHigh(Symbol(),Period(),i+1);
double curHigh2=iHigh(Symbol(),Period(),i);
double curHigh3=iHigh(Symbol(),Period(),i-1);
double curHigh4=iHigh(Symbol(),Period(),i-2);
if(curLow2<=curLow1 && curLow2<=curLow1 && curLow2<=curLow0 )
{
if(lowest>curLow2){
lowest=curLow2;
T2=iTime(Symbol(),Period(),i);}
}
if(curHigh2>=curHigh1 && curHigh2>=curHigh3&& curHigh2>=curHigh4)
{
if(highest
发表于:2015-07-05 09:44只看该作者
2楼
感谢分享
韬客社区www.talkfx.co
发表于:2016-03-02 06:33只看该作者
3楼
发表于:2017-08-09 03:47只看该作者
4楼
谢谢朋友分享
韬客社区www.talkfx.co
发表于:2018-07-07 06:53只看该作者
5楼
真是厉害啊 先下载试试好不好用
韬客社区www.talkfx.co
发表于:2018-07-09 18:47只看该作者
6楼
没有图吗
韬客社区www.talkfx.co