任何菜鸟问题,为了不给论坛添乱。专业人士,不要路过。没有你就无处可去 - 6. - 页 622

 

谁能建议一下,在MT-4中安装GetTickerHistory插件,运行了,但下载不了,在Windows 7 x64上,是否可以用其他方式下载外部索引。

提前感谢。
 

是否可以下载技术分析的图表,--指数S&P 500期货图,TA 25图,以及S&P 500图,如果可能的话可以提示如何做,也许有解释如何下载的!

我找不到这样的经纪人,你能不能建议一个技术分析的程序,让我下载我感兴趣的指数(可以是实时的)或一个经纪人。

也许有机会下载这些指数MT-4或MT-5。我刚刚开始尝试做技术分析,我非常希望听到专家关于如何应对我的任务的建议。

我非常感谢您的帮助。
 
帮助我想出如何处理物体的方法。
试图找到最后一个物体的价格,知道其名称中的前3个字母。

谢谢你。

double Entry()
{
  double Price;
  string ObjName ="ABC";
  int QuantObjects=ObjectsTotal();
  for(Cnt=QuantObjects-1;Cnt>=0;Cnt--)
  { 
    if(ObjectFind(0,StringSubstr(ObjName,3,StringLen(ObjName)-3)) > -1)
    {
      Price = NormalizeDouble(ObjectGet(StringSubstr(ObjName,3,StringLen(ObjName)-3),OBJPROP_PRICE1),Digits);
    }
    else Price = 0;
  }
  return(Price);
}

 
rustein:
帮助我想出如何处理物体的方法。
试图找到最后一个物体的价格,知道其名称中的前3个字母。

谢谢你。

试试这个。

double Entry()
{
  double Price;
  string ObjName ="ABC";
  int QuantObjects=ObjectsTotal();
  string name;
  for(Cnt=QuantObjects-1;Cnt>=0;Cnt--)
  { 
   name=ObjectName(cnt);
   if(StringSubstr(name,0,3)=ObjName)
    {
      Price = NormalizeDouble(ObjectGet(name,OBJPROP_PRICE1),Digits);
return(Price);

    }
    else Price = 0;
  }
  return(Price);
}
 
Roger:

那就试试吧。


这很有效。
非常感谢你。
 

我有一个指标。

//+------------------------------------------------------------------+
//| T3MA_ALARM.mq4 |
//| Copyright © 2011, Martingeil |
//| fx.09@mail.ru |
//+------------------------------------------------------------------+
//исправленный Martingeil, теперь можно в тестере увидеть его стрелки.
#property copyright "Copyright © 2011, Martingeil"
#property link "fx.09@mail.ru"

//---- indicator settings
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
//---- indicator parameters
extern int period = 4; //12
extern int shift = 0; //сдвиг по бару
//---- indicator buffers
double BufferUp[],BufferDn[];
int q,st=5;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(2);
//---- drawing settings
SetIndexStyle(0,DRAW_ARROW,2);
SetIndexArrow(0,233);
SetIndexStyle(1,DRAW_ARROW,2);
SetIndexArrow(1,234);

SetIndexBuffer(0,BufferUp);//стрелка синяя верх
SetIndexBuffer(1,BufferDn);//стрелка красная вниз
//---- name for DataWindow and indicator subwindow label
IndicatorShortName("T3MA-ALARM ("+period+")");
//---- initialization done
if(Digits==3 || Digits==5) q=10;
st=st*q;
return(0);}

int deinit()
{
ObjectDelete("low");
ObjectDelete("high");
}
//+----------------------------------------------------------------------+
//| Moving Average of Oscillator |
//+----------------------------------------------------------------------+
int start()
{
//---- ArraySetAsSeries --------------------------------------------------
double Ma[500],MaOn[500];
double y0[500],y1[500],y2[500];
int i,limit=ArraySize(Ma);
ArraySetAsSeries(Ma,true);
//---- IndicatorCounted --------------------------------------------------
int counted_bars=IndicatorCounted();
int limit1=Bars-counted_bars;
if (limit1>1){limit1=Bars-period-1;}
//---- EMA ---------------------------------------------------------------
for(i=limit1; i>=0; i--) Ma[i] =iMA(NULL,0,period,0,MODE_EMA,PRICE_CLOSE,i);
for(i=limit1; i>=0; i--) MaOn[i]=iMAOnArray(Ma,limit,period,0,MODE_EMA,i);

for(i=limit1; i>=0; i--)
{
y0[i+shift]=MaOn[i+shift];
y1[i+1+shift]=MaOn[i+1+shift];
y2[i+2+shift]=MaOn[i+2+shift];

if(y0[i+shift]-y1[i+1+shift]<0 && y1[i+1+shift]-y2[i+2+shift]>0){BufferDn[i+1]=High[i+1]+st*Point;}//продажа
if(y0[i+shift]-y1[i+1+shift]>0 && y1[i+1+shift]-y2[i+2+shift]<0){BufferUp[i+1]=Low[i+1]-st*Point;}//покупка
//---- Signal Trend Up || Dn ---------------------------------------------
if(y0[i]-y1[i+1]>0) Comment ("\n SWAPLONG = ",MarketInfo(Symbol(),MODE_SWAPLONG),
" SWAPSHORT = ",MarketInfo(Symbol(),MODE_SWAPSHORT),"\n BUY TREND ",DoubleToStr(Close[i],Digits));

else if(y0[i]-y1[i+1]<0) Comment ("\n SWAPLONG = ",MarketInfo(Symbol(),MODE_SWAPLONG),
" SWAPSHORT = ",MarketInfo(Symbol(),MODE_SWAPSHORT),"\n SELL TREND ",DoubleToStr(Close[i],Digits));
}


//---- done
return(0);}
//+---------------------------------------------------------------------+


我想做一个EA,当箭头出现时,就进入一个位置,在EA中应该写什么条件?

 

大家好!....先生们帮我解决一个关于时间参数的问题。问题是这样的,我有一个关于输入变量的标准,这些变量在某个时间参数中是固定的。

M5maBIG_1= iMA(ed,PERIOD_M5,150,0,MODE_EMA,PRICE_CLOSE,1) 。

M5L=NormalizeDouble(iLow(ed,PERIOD_M5,1),Digits)。

if(M5L<M5maBIG_1){ordersend(520);}尝试了诸如---- ((M5L<M5maBIG_1))__((M5L)<(M5maBIG_1))__((M5L)<(M5maBIG_1))---- 等变体,也没有作用!

if(a==520){RefreshRates();//__________________________________________________________________________________

op=NormalizeDouble(Ask,Digits);sl=NormalizeDouble(op-62*kio*Point,Digits); tp=NormalizeDouble(op+54*kio*Point,Digits)。

ticket=OrderSend(ed,OP_BUY, Lot,op,3,sl,0,comm,magic+520,0,Green); //_____Lot=

err=GetLastError()。

if(err!=0){Print("Error-",err," op-",op," sl-",sl," tp-",tp) ;}}

在相同的M5时间进行测试时,一切正常,但只有改变(例如在H1测试时),结果也会改变,如何正确书写?谢谢!!!。

 

MaperiodAVTO = 750 / Period();

腊梅花


大家好!....先生们帮我解决一个关于时间参数的问题。问题是这样的,我有一个关于输入变量的标准,这些变量在某个时间参数中是固定的。

M5maBIG_1= iMA(ed,PERIOD_M5,150,0,MODE_EMA,PRICE_CLOSE,1) 。

M5L=NormalizeDouble(iLow(ed,PERIOD_M5,1),Digits)。

例如,像这样。

 int MaperiodAVTO; 

if( Period()>1){ 

MaperiodAVTO = 750 / Period();

}

else

{

  MaperiodAVTO = 750;

}

 M5maBIG_1= iMA(ed, Period() , MaperiodAVTO ,0,MODE_EMA,PRICE_CLOSE,1);  


 
benzovoz:

例如,像这样。

int MaperiodAVTO = 750 / Period();

  M5maBIG_1= iMA(ed, Period() , MaperiodAVTO ,0,MODE_EMA,PRICE_CLOSE,1);  



为什么是750?
 
laveosa:

为什么是750?

他只是喜欢这个数字。