Coding help - page 686

 
super master changed bar count in mt4 option chart window now working good ,,, thanks alottt
 
pls can you help me make an EA OF THIS INDICATOR PLS
 
mladen:
Try it out no

mladen:
Try it out now    

 

dear malden is this a repainting ?? 

 
forexislife:
Did not test it, but since it is using extremes (the same way as zigzag does) to filter out "trends" it is almost sure that it does repaint
 
mladen:
Did not test it, but since it is using extremes (the same way as zigzag does) to filter out "trends" it is almost sure that it does repaint
ya dear mladen tested it repaints even 10 bars at a time thnks ,, any possibility correct it pleaseeee , no problem with the results
 

 PLEASE HELP ME. How to make export .csv file recorded last TF values without overwriting all the others again and again..?

 

//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.ru/"

#property show_inputs
string SymbolsArray[1]={"EURUSD"};

//+------------------------------------------------------------------+
//| string SymbolByNumber                                   |
//+------------------------------------------------------------------+
string GetSymbolString(int Number)
  {
//----
   string res="";
   res=SymbolsArray[Number];   
//----
   return(res);
  }

//+------------------------------------------------------------------+
//| возвращает период                                                |

//+------------------------------------------------------------------+

 

int PeriodNumber(int number)
   {
   int per_min;
   switch (number)
      {
      default: per_min=PERIOD_M1;break;
      case 1: per_min=PERIOD_M5;break;
      }
   return(per_min);   
   }

//+------------------------------------------------------------------+
//|   выводит в файл котировки + значения индикатора                 |
//+------------------------------------------------------------------+
void IFT_output(string SymbolName,int PeriodMinutes)
   {
   int size=iBars(SymbolName,PeriodMinutes);
//----
   if (size==0) return;
   int handle=FileOpen(SymbolName+PeriodMinutes+"_IFT.csv",FILE_WRITE|FILE_CSV);
   if (handle<0) return;
   FileWrite(handle,"Date;Time;Open;Low;High;Close;Volume;IFTm52;IFTm51;IFTm11;IFT2;RVA;RSIOMA_3;RSIOMA_5");
   for (int i=size-1;i>=0;i--)
      {
      FileWrite(handle,TimeToStr(iTime(SymbolName,PeriodMinutes,i))
         ,iClose(SymbolName,PeriodMinutes,i),iVolume(SymbolName,PeriodMinutes,i),iCustom(SymbolName,PeriodMinutes,"IFTm52",0,i),iCustom(SymbolName,PeriodMinutes,"IFTm51",0,i),iCustom(SymbolName,PeriodMinutes,"IFTm11",0,i),iCustom(SymbolName,PeriodMinutes,"IFT2",0,i),iCustom(SymbolName,PeriodMinutes,"RVA",0,i),iCustom(SymbolName,PeriodMinutes,"RSIOMA_3",0,i),iCustom(SymbolName,PeriodMinutes,"RSIOMA_5",0,i));
      }
   FileClose(handle);      
//----
   return;
   }
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
  int SymbolCounter,PeriodCounter; 
//----
   for (SymbolCounter=1;SymbolCounter<13;SymbolCounter++)
      {
      for (PeriodCounter=2;PeriodCounter<=20;PeriodCounter++)
         {
         //Print("NewBar on ",GetSymbolString(SymbolCounter),PeriodNumber(PeriodCounter),"M");
         IFT_output(GetSymbolString(SymbolCounter),PeriodNumber(PeriodCounter));
         }
      }
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
 
Does anybody know what this blue indicator with the red and green arrows is called and where one can find it? Much Appreciated for any info provided - thank you.
Files:
BlueIndi.png  87 kb
 
kostumer27:

 PLEASE HELP ME. How to make export .csv file recorded last TF values without overwriting all the others again and again..?

 

//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.ru/"

#property show_inputs
string SymbolsArray[1]={"EURUSD"};

//+------------------------------------------------------------------+
//| string SymbolByNumber                                   |
//+------------------------------------------------------------------+
string GetSymbolString(int Number)
  {
//----
   string res="";
   res=SymbolsArray[Number];   
//----
   return(res);
  }

//+------------------------------------------------------------------+
//| возвращает период                                                |

//+------------------------------------------------------------------+

 

int PeriodNumber(int number)
   {
   int per_min;
   switch (number)
      {
      default: per_min=PERIOD_M1;break;
      case 1: per_min=PERIOD_M5;break;
      }
   return(per_min);   
   }

//+------------------------------------------------------------------+
//|   выводит в файл котировки + значения индикатора                 |
//+------------------------------------------------------------------+
void IFT_output(string SymbolName,int PeriodMinutes)
   {
   int size=iBars(SymbolName,PeriodMinutes);
//----
   if (size==0) return;
   int handle=FileOpen(SymbolName+PeriodMinutes+"_IFT.csv",FILE_WRITE|FILE_CSV);
   if (handle<0) return;
   FileWrite(handle,"Date;Time;Open;Low;High;Close;Volume;IFTm52;IFTm51;IFTm11;IFT2;RVA;RSIOMA_3;RSIOMA_5");
   for (int i=size-1;i>=0;i--)
      {
      FileWrite(handle,TimeToStr(iTime(SymbolName,PeriodMinutes,i))
         ,iClose(SymbolName,PeriodMinutes,i),iVolume(SymbolName,PeriodMinutes,i),iCustom(SymbolName,PeriodMinutes,"IFTm52",0,i),iCustom(SymbolName,PeriodMinutes,"IFTm51",0,i),iCustom(SymbolName,PeriodMinutes,"IFTm11",0,i),iCustom(SymbolName,PeriodMinutes,"IFT2",0,i),iCustom(SymbolName,PeriodMinutes,"RVA",0,i),iCustom(SymbolName,PeriodMinutes,"RSIOMA_3",0,i),iCustom(SymbolName,PeriodMinutes,"RSIOMA_5",0,i));
      }
   FileClose(handle);      
//----
   return;
   }
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
  int SymbolCounter,PeriodCounter; 
//----
   for (SymbolCounter=1;SymbolCounter<13;SymbolCounter++)
      {
      for (PeriodCounter=2;PeriodCounter<=20;PeriodCounter++)
         {
         //Print("NewBar on ",GetSymbolString(SymbolCounter),PeriodNumber(PeriodCounter),"M");
         IFT_output(GetSymbolString(SymbolCounter),PeriodNumber(PeriodCounter));
         }
      }
   
//----
   return(0);
  }
//+------------------------------------------------------------------+


Try like this :

//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.ru/"

#property show_inputs
string SymbolsArray[1]={"EURUSD"};

//+------------------------------------------------------------------+
//| возвращает период                                                |

//+------------------------------------------------------------------+

 
int PeriodNumber(int number)
   {
   int per_min;
   switch (number)
      {
      default: per_min=PERIOD_M1;break;
      case 1: per_min=PERIOD_M5;break;
      }
   return(per_min);   
   }

//+------------------------------------------------------------------+
//|   выводит в файл котировки + значения индикатора                 |
//+------------------------------------------------------------------+
void IFT_output(string _symbol,int PeriodMinutes)
   {
   int size=iBars(_symbol,PeriodMinutes);
//----
   if (size==0) return;
   int handle=FileOpen(_symbol+PeriodMinutes+"_IFT.csv",FILE_WRITE|FILE_READ|FILE_CSV);
   if (handle<0) return;
   if (FileSize(handle)==0)
   FileWrite(handle,"Date;Time;Open;Low;High;Close;Volume;IFTm52;IFTm51;IFTm11;IFT2;RVA;RSIOMA_3;RSIOMA_5");
   FileSeek(handle,0,SEEK_END);
   for (int i=size-1;i>=0;i--)
      {
      FileWrite(handle,TimeToStr(iTime(_symbol,PeriodMinutes,i))
         ,iClose(_symbol,PeriodMinutes,i),iVolume(_symbol,PeriodMinutes,i),iCustom(_symbol,PeriodMinutes,"IFTm52",0,i),iCustom(_symbol,PeriodMinutes,"IFTm51",0,i),iCustom(_symbol,PeriodMinutes,"IFTm11",0,i),iCustom(_symbol,PeriodMinutes,"IFT2",0,i),iCustom(_symbol,PeriodMinutes,"RVA",0,i),iCustom(_symbol,PeriodMinutes,"RSIOMA_3",0,i),iCustom(_symbol,PeriodMinutes,"RSIOMA_5",0,i));
      }
   FileClose(handle);      
//----
   return;
   }
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
  int SymbolCounter,PeriodCounter; 
//----
   for (SymbolCounter=1;SymbolCounter<=ArraySize(SymbolsArray);SymbolCounter++)
      {
      for (PeriodCounter=2;PeriodCounter<=20;PeriodCounter++)
         {
         //Print("NewBar on ",GetSymbolString(SymbolCounter),PeriodNumber(PeriodCounter),"M");
         IFT_output(SymbolsArray[SymbolCounter-1],PeriodNumber(PeriodCounter));
         }
      }
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
 

Mladen i have a question:

Is it possible to create a panel in mq4 with two icons and when clicked with the mouse it allows to create a text object in the point on the chart where i click? If yes, how should i set the work?

the part that is difficult to me is the onclick event, how to handle it?

 

I usually use to draw a hand by hand points, where i suppose market turning points, created with text label setted with windings texts but it is boring every time click on the button, insert the windings code, set colors and width or even copy an existing point and move to the next position, so this is the idea. 

 
TheJurgFX:
Does anybody know what this blue indicator with the red and green arrows is called and where one can find it? Much Appreciated for any info provided - thank you.
what ever may be indi, but sure its repainter like super signal 
Reason: