[Archive!] I will write any expert or indicator for free. - page 50

 

Hello!

I need an indicator to signal when the Fibo levels of 76.4 and 61.8 are reached from the stretched Fibo. I would be very grateful to you.

 

could you write a simple EA with the following parameters: muving 11 muving 25 crossing muving signal to enter on the next bar profit 100 pips stop loss 50 pips

 

off-topic... who knows about macromedia? help me make the clock work separately - in the exe

have a swf - decompile a couple of minutes :) remove site check and compile the exe

the clock is stock - like this

Files:
razrez8.rar  97 kb
 

Good afternoon.

I have an EA, but I need to refine the entry to open a position. I need to add conditions. Can anyone help?

I have an EA, but I need to fine-tune it by adding conditions. Thank you.

 

need an indicator to write!!! help please!!!

asia: 422-674-800

 

Good afternoon.

Please help me to add trailing point and time limit to my EA. My EA shows good results, but there is always room for improvement :)

Thanks in advance.


Files:
 
Помогите пожайлуста написать индикатор. Я сам вообще не разбираюсь в програмировании. Алгоритм индикатора примерно такой -
1)Есть файл ЦеЭсВэ расширение, он имеет два столбца и неопределённое количество строк.
Первый столбец - это дата, записанная в ковычках - "1990.04.04" - примерно так. Второй столбец - цена - 1,34354. Разделитель между ними - ;.
2)Необходимо чтобы индикатор считал дату и цену по этой дате, прешёл ко второй строке, считал её, затем провел отрезок между этими двумя точками... и так далее..
3)Хотелось бы, чтобы были настраиваемые параметры, такие как - цвет линии и толщина.
Помогите, пожайлуста....

Смысл в том, чтобы нарисовать на графике синусоиду, различных периодов.... Вот это есть закон вибрации (Ганн).... Помогающему выложу все расчеты...... Поверьте, это стоит того...... К примеру - функция второй тенденции, второй по значимости - t*cena + (Sin(t)/2,912) +1,0519 -где t это время в канонической форме.... Это голые расчеты проверенные на графике....


 
//+------------------------------------------------------------------+
//| Sinus.mq4 |
//| Copyright © 2010, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, MetaQuotes Software Corp.
#property link "http://www.metaquotes.net"

#property indicator_chart_window
#property indicator_buffers 8 // number of buffers 8
//---- input parameters
extern color Color_1 = DodgerBlue; //colour
extern int Tolshina =2;
int i; // Formal parameter, counter


//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialisation function |
//+------------------------------------------------------------------+
int deinit()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int LinesCNT=0,i;
int handle;
handle=FileOpen('D1.csv',FILE_CSV|FILE_READ,';');
if(handle<1)
{
Print("File D1.dat not found, last error ", GetLastError());
return(false);
}

while(true)
{
FileReadString(handle);

if(FileIsEnding(handle)) break; // file ended? - exit


// count coordinates of the segment
i++;
string st1=FileReadString(handle);
string sp1=FileReadString(handle);
datetime t1=StrToTime(st1);
double p1=StrToDouble(sp1);
FileSeek(handle,0,SEEK_CUR );
string st2=FileReadString(handle);
string sp2=FileReadString(handle);
datetime t2=StrToTime(st2);
double p2=StrToDouble(sp2);


// draw a line segment
LinesCNT++;
string LineName = (LinesCNT); // create a name for the new line
ObjectCreate(LineName,OBJ_TREND,0,t1,p1, t2,p2); // create a line
if(!ObjectCreate(LineName,OBJ_TREND,0,t1,p1, t2,p2))
{
Print("Line creation failed",GetLastError());
return(0);
}

ObjectSet(LineName,OBJPROP_RAY,False); // make it a line segment instead of a ray
ObjectSet(LineName,OBJPROP_WIDTH,Tolshina); // set the width
ObjectSet(LineName,OBJPROP_COLOR,Color_1); // set colour
ObjectSet(LineName,OBJPROP_PRICE1,p1);
ObjectSet(LineName,OBJPROP_PRICE2,p2);
//---------------------------------------------------

WindowRedraw();
// redraw the window to see the line
}
//---------------------------------------------------------



FileClose(handle);




//----

//----
return(0);
}
//+------------------------------------------------------------------+
Can you tell me what's wrong in the code? My file has 2 columns, and many rows, separated by a semicolon..... The first date is read, but the price is not..... The second one isn't there at all ...... And maybe you can tell me how to make a line to be a line segment and build one after another... There has to be a cycle, right?
 

Good afternoon


Need your help in writing the EA described in my thread https://forum.mql4.com/ru/37219


Thanks in advance

Sincerely

Sergey Ignatov

 

Hello Dear Developers. Please help me to create an indicator based on SSL_fast_sBar_mtf indicator.

The indicator should draw two "rulers", one with value "Lb" bigger and another with smaller one (as well as TIMER FRAME bigger and smaller). If on a bar the colours of both "rulers" are identical (and on the previous bar they were different), then at the beginning of the next bar it is necessary to give a signal to open (to put an arrow).

Arrows should be drawn using indicator buffers, not graphical objects. In the window of external parameters the data of both "rulers" is required (for further selection of their parameters).

I do not know how to pass a reference to the indicator, it is located in the library of the MQL4 MetaTrader

I am passing the code:

//+------------------------------------------------------------------+
//|                                                          SSL.mq4 |
//|ssl bar fast mtf                                          Kalenzo |
//|                                      bartlomiej.gorski@gmail.com |
//+------------------------------------------------------------------+
//mod2008fxtsd   ml ki   
#property copyright "Kalenzo"
#property link      "bartlomiej.gorski@gmail.com"
//----
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1  DodgerBlue
#property indicator_color2  OrangeRed
#property indicator_width1  2
#property indicator_width2  2
#property indicator_minimum 10
#property indicator_maximum 90
//----
extern int     Lb          =10;
extern int     SSL_BarLevel=15;    //BarLevel 10-90
extern int     TimeFrame  =0;
extern string  TimeFrames="M1;5,15,30,60H1;240H4;1440D1;10080W1;43200MN|0-CurrentTF";
//----
double sslHup[];
double sslHdn[];
double hlv[];
string IndicatorFileName;
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int init()
  {
   string TimeFrameStr;
   if (TimeFrame<Period()) TimeFrame=Period();
   switch(TimeFrame)
     {
      case PERIOD_M1:  TimeFrameStr="M1" ;break;
      case PERIOD_M5:  TimeFrameStr="M5" ;break;
      case PERIOD_M15: TimeFrameStr="M15";break;
      case PERIOD_M30: TimeFrameStr="M30";break;
      case PERIOD_H1:  TimeFrameStr="H1" ;break;
      case PERIOD_H4:  TimeFrameStr="H4" ;break;
      case PERIOD_D1:  TimeFrameStr="D1" ;break;
      case PERIOD_W1:  TimeFrameStr="W1" ;break;
      case PERIOD_MN1: TimeFrameStr="MN1";break;
      default :        TimeFrameStr="TF0";
     }
//----
   IndicatorBuffers(3);
   SetIndexBuffer (0,sslHup); SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0,167); SetIndexLabel(0,"SSLup "+Lb+" ["+TimeFrame+"]");
   SetIndexBuffer (1,sslHdn); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1,167); SetIndexLabel(1,"SSLdn "+Lb+" ["+TimeFrame+"]");
   SetIndexBuffer (2,hlv);
//----
   IndicatorShortName("SSL "+Lb+"["+TimeFrameStr+"]");
   IndicatorFileName=WindowExpertName();
//----
   return(0);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int deinit()
  {
   return(0);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int start()
  {
   int  counted_bars=IndicatorCounted();
   int  i,limit;
//----
   if (counted_bars<0) return(-1);
   if (counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
//----
   if (TimeFrame!=Period())
     {
      datetime TimeArray[];
      limit=MathMax(limit,TimeFrame/Period());
      ArrayCopySeries(TimeArray ,MODE_TIME ,NULL,TimeFrame);
      //----
      for(i=0,int y=0; i<limit; i++)
        {
         if(Time[i]<TimeArray[y]) y++;
         sslHup[i]=iCustom(NULL,TimeFrame,IndicatorFileName,Lb,SSL_BarLevel,0,y);
         sslHdn[i]=iCustom(NULL,TimeFrame,IndicatorFileName,Lb,SSL_BarLevel,1,y);
        }
      return(0);
     }
   //----
   for(i=limit;i>=0;i--)
     {
      hlv[i]=hlv[i+1];
      if(Close[i]>iMA(Symbol(),0,Lb,0,MODE_SMA,PRICE_HIGH,i+1)) hlv[i]= 1;
      if(Close[i]<iMA(Symbol(),0,Lb,0,MODE_SMA,PRICE_LOW,i+1))  hlv[i]=-1;
      if(hlv[i]==-1) { sslHdn[i]=SSL_BarLevel; sslHup[i]=EMPTY_VALUE;  }
      else             
                     { sslHdn[i]=EMPTY_VALUE;  sslHup[i]=SSL_BarLevel; }
     }
   return(0);
  }
//+------------------------------------------------------------------+