[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 470

 
Armagedon_kresh:
And I didn't have it working by 11:00!!! Sorry, I have a question. I heard there are unreliable brokerage companies that do not let you access the market, and it turns out that the trader trades on a computer! As if it turns out cheating! I opened an account with "N****X" have you heard of it??? What are the reviews on it? Is it reliable?

Warning. DTs are not to be discussed on this forum.
 
Vinin:

Warning. DCs are not discussed on this forum
On which forum are they discussed?
 
yosuf:
On which forum are they discussed?

On the forum of the DC you want to discuss.
 

There are two indicators MTF_Stochastic and MTF_ADX. The stochastic data matches but the ADX data does not. Please advise what is the error. Thank you

#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Black
#property indicator_color2 SteelBlue
#property indicator_color3 Crimson

extern int TimeFrame=60;
extern int period = 2;

double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
   SetIndexStyle(0,DRAW_LINE);

   IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+1);
   SetIndexBuffer(0,ExtMapBuffer1); 
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexBuffer(2,ExtMapBuffer3);
   switch(TimeFrame)
  {
   case 1 : string TimeFrameStr="Period_M1"; break;
   case 5 : TimeFrameStr="Period_M5"; break;
   case 15 : TimeFrameStr="Period_M15"; break;
   case 30 : TimeFrameStr="Period_M30"; break;
   case 60 : TimeFrameStr="Period_H1"; break;
   case 240 : TimeFrameStr="Period_H4"; break;
   case 1440 : TimeFrameStr="Period_D1"; break;
   case 10080 : TimeFrameStr="Period_W1"; break;
   case 43200 : TimeFrameStr="Period_MN1"; break;
   default : TimeFrameStr="Current Timeframe";
  }
 IndicatorShortName("MTF_ADX("+period+") ("+TimeFrameStr+")");
 
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   datetime TimeArray[];
   int    i,limit,y=0,counted_bars=IndicatorCounted();
 
// Plot defined time frame on to current time frame
   ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame); 
   
   limit=Bars-counted_bars;
   for(i=0,y=0;i<limit;i++)
   {
   if (Time[i]<TimeArray[y]) y++;

/***********************************************************   
   Add your main indicator loop below.  You can reference an existing
      indicator with its iName  or iCustom.
   Rule 1:  Add extern inputs above for all neccesary values   
   Rule 2:  Use 'TimeFrame' for the indicator time frame
   Rule 3:  Use 'y' for your indicator's shift value
 **********************************************************/  
   ExtMapBuffer1[i]=iADX(NULL, 0, period, PRICE_CLOSE, MODE_MAIN, y);
   ExtMapBuffer2[i]=iADX(NULL, 0, period, PRICE_CLOSE, MODE_PLUSDI, y);
   ExtMapBuffer3[i]=iADX(NULL, 0, period, PRICE_CLOSE, MODE_MINUSDI, y);
   }  
   return(0);
  }
//+------------------------------------------------------------------+
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 SteelBlue
#property indicator_color2 Crimson

extern int TimeFrame=60;
extern int kperiod = 1;
extern int dperiod = 2;
extern int slowing = 1;
extern int method  = 0;

double ExtMapBuffer1[];
double ExtMapBuffer2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
   SetIndexStyle(0,DRAW_LINE);

   IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+1);
   SetIndexBuffer(0,ExtMapBuffer1); 
   SetIndexBuffer(1,ExtMapBuffer2);
   switch(TimeFrame)
  {
   case 1 : string TimeFrameStr="Period_M1"; break;
   case 5 : TimeFrameStr="Period_M5"; break;
   case 15 : TimeFrameStr="Period_M15"; break;
   case 30 : TimeFrameStr="Period_M30"; break;
   case 60 : TimeFrameStr="Period_H1"; break;
   case 240 : TimeFrameStr="Period_H4"; break;
   case 1440 : TimeFrameStr="Period_D1"; break;
   case 10080 : TimeFrameStr="Period_W1"; break;
   case 43200 : TimeFrameStr="Period_MN1"; break;
   default : TimeFrameStr="Current Timeframe";
  }
 IndicatorShortName("MTF_Stochastic("+kperiod+","+dperiod+","+slowing+") ("+TimeFrameStr+")");
 
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   datetime TimeArray[];
   int    i,limit,y=0,counted_bars=IndicatorCounted();
 
// Plot defined time frame on to current time frame
   ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame); 
   
   limit=Bars-counted_bars;
   for(i=0,y=0;i<limit;i++)
   {
   if (Time[i]<TimeArray[y]) y++;

/***********************************************************   
   Add your main indicator loop below.  You can reference an existing
      indicator with its iName  or iCustom.
   Rule 1:  Add extern inputs above for all neccesary values   
   Rule 2:  Use 'TimeFrame' for the indicator time frame
   Rule 3:  Use 'y' for your indicator's shift value
 **********************************************************/  
 
   ExtMapBuffer1[i]=iStochastic(NULL,TimeFrame,kperiod,dperiod,slowing,method,0,MODE_MAIN,y);
   ExtMapBuffer2[i]=iStochastic(NULL,TimeFrame,kperiod,dperiod,slowing,method,0,MODE_SIGNAL,y);
   }  
   return(0);
  }
//+------------------------------------------------------------------+
 
iADX(NULL, 0, 
 
Vinin:

Warning. DCs are not to be discussed on this forum

Sorry about that!!! Just haven't been on the forum long, didn't know what's possible what's not!!!
 

Can you please tell me what to change in the code so that the signal is displayed at the minimum of the last four candles and not at the last one? Screenshot and code attached.

#property indicator_chart_window
#property indicator_buffers 5
#property indicator_color1 Crimson
#property indicator_color2 Crimson
#property indicator_color3 Crimson
#property indicator_color4 Crimson
#property indicator_color5 Crimson

extern int    Target1    = 20;
extern int    Target2    = 30;
extern int    TakeProfit = 40;
extern int    StopLoss   = 40;
extern bool   IsTime     = false;
extern string TimeStart  = "05:00";
extern string TimeEnd    = "17:00";

double SellBuffer[];
double SellTP1Buffer[];
double SellTP2Buffer[];
double SellTP3Buffer[];
double SellSLBuffer[];

int init()
{
    SetIndexBuffer(0, SellBuffer);
    SetIndexBuffer(1, SellTP1Buffer);
    SetIndexBuffer(2, SellTP2Buffer);
    SetIndexBuffer(3, SellTP3Buffer);
    SetIndexBuffer(4, SellSLBuffer);
    SetIndexStyle(0, DRAW_ARROW);
    SetIndexStyle(1, DRAW_ARROW);
    SetIndexStyle(2, DRAW_ARROW);
    SetIndexStyle(3, DRAW_ARROW);
    SetIndexStyle(4, DRAW_ARROW);
    SetIndexArrow(0, 159);
    SetIndexArrow(1, 178);
    SetIndexArrow(2, 178);
    SetIndexArrow(3, 178);
    SetIndexArrow(4, 251);
    SetIndexLabel(0, "Sell");
    SetIndexLabel(1, "Sell Target1");
    SetIndexLabel(2, "Sell Target2");
    SetIndexLabel(3, "Sell TP");
    SetIndexLabel(4, "Sell SL");
    return(0);
}

int start()
{
    int limit;
    int counted_bars = IndicatorCounted();
    if (counted_bars > 0)
        counted_bars--;
    limit = Bars - counted_bars;
    for (int i = 0; i < limit; i++)
    {
        double main1=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,0,i+1);
        double sig1=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,1,i+1);
        double main2=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,0,i+2);
        double sig2=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,1,i+2);
        double main3=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,0,i+3);
        double sig3=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,1,i+3);
        double main4=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,0,i+4);
        double sig4=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,1,i+4);
        double main5=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,0,i+5);
        double sig5=iCustom(NULL,0,"MTF_Stochastic",240,1,2,1,0,1,i+5);
        string   str = TimeDay(Time[i + 1]) + "." + TimeMonth(Time[i + 1]) + "." + TimeYear(Time[i + 1]) + " ";
        datetime t1  = StrToTime(str + TimeStart + ":00");
        datetime t2  = StrToTime(str + TimeEnd + ":00");
        if (!IsTime || (IsTime && Time[i + 1] >= t1 && Time[i + 1] < t2))
        
        {
            if (main1 == main2 && sig1 == sig2 && 
                main2 == main3 && sig2 == sig3 &&
                main3 == main4 && sig3 == sig4 &&
                main1 < sig1 && main2 < sig2 && main3 < sig3 && main4 < sig4 &&
                main5 > sig5)
            {
                SellBuffer[i + 1]    = Low[i + 1] - 1 * Point;
                SellTP1Buffer[i + 1] = Low[i + 1] - (Target1 + 1) * Point;
                SellTP2Buffer[i + 1] = Low[i + 1] - (Target2 + 1) * Point;
                SellTP3Buffer[i + 1] = Low[i + 1] - (TakeProfit + 1) * Point;
                SellSLBuffer[i + 1]  = Low[i + 1] + (StopLoss - 1) * Point;
            }
        
        
        }
    }
    return(0);
}
 
Armagedon_kresh:
And I didn't have it working by 11:00!!! Sorry, I have a question. I heard there are unreliable brokerage companies that do not let you access the market, and it turns out that the trader trades on a computer! As if it turns out cheating! I opened an account with "N***X" have you heard of it??? What are the reviews on it? Is it reliable?

no brokerage houses withdraw money to interbank
 
There are no reliable brokerage companies (this can be clearly seen from their regulations) - there are brokerage companies that do not cheat on trifles.
 

Good evening! Happy New Year to everyone! I have an account on a platform called FXstart, it runs automatically in hidden form. I would like to download more platforms, better the same DC, open a demo account. Can they normally co-exist on one computer? If you try to download another platform, won't it cause zeros in the existing one with trading robots and their settings!

Also, I traded the same robot on EURUSD, GBPUSD and AUDUSD. The robot behaved superbly during the tests! In reality it works with complete nonsense, the lot grows unexpectedly, puts three orders next to each other, for example, the pendulum over the eurodollar, while there should be exactly one. Distance over the price should be set as 20 points, or 30, or any, while it is at one setting not only 20, but 40, or 60, or 100 points! As a result, the deposit drawdown in three days went from 2200 to 1836 !!! I think I got off pretty well, at one point I was down 900 quid!

And what lots, wow!!! Anyway, I turned off this horror... There's over 40 trades with such lots. Can it be due to the fact that the variables of robots, thrown on different currency pairs, interact with each other????


Reason: