Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1046

 
AlexeyVik:
Doesn't the FILE_COMMON flag work in the tester?
It does ;) But you'd better explain where the file will be written to. Otherwise he will write that it's a pain to find the file :)))))
 
AlexeyVik:
Doesn't the FILE_COMMON flag work in the tester?
aaaaaaaaaaaa!!!! is a shared folder ... didn't occur to me at all. thank you !!!!!!!!
 
artmedia70:
It works ;) But you'd better explain where the file will go afterwards. Otherwise he will write that it's a pain to find the file :)))))
See, you don't have to explain anything. It's nice to talk to people like you.
 
AlexeyVik:
You see, you don't have to explain anything. It's nice to talk to people like that.
Noted, agreed.
 
SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE_LOSS)
In MT5 it works,in MT4 it gives 0, am I doing something wrong?
 
nasdaq:
In MT5 it works, in MT4 it gives 0, am I doing something wrong?


This is the only way

SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE)

 
Thank you
 

Good afternoon.

From the compiler's point of view this:

void SetParam(String nm, int ag)
{
   this.name = nm;
   this.age = ag;
}
and this:
void SetParam(int ag, String adr)
{
   this.address = adr;
   this.age = ag;
}
have different signatures and are permissible overload options?
 

Hello!

The indicator draws the bar graph the other way round. How do I get it to the right side?

//--- indicator settings
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Silver
//--- input parameter
//--- buffers
double ExtBullsBuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
void OnInit(void)
  {
   string short_name;
//--- 1 additional buffer used for counting.
   IndicatorBuffers(2);
   IndicatorDigits(Digits);
//--- indicator line
   SetIndexStyle(0,DRAW_HISTOGRAM);
   SetIndexBuffer(0,ExtBullsBuffer);
//--- name for DataWindow and indicator subwindow label
   short_name="Spred";
   IndicatorShortName(short_name);
   SetIndexLabel(0,short_name);
  }
//+------------------------------------------------------------------+
int limit=0;
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
double Spread=NormalizeDouble((high[0]-low[0])/Point,0);      

limit++;
ExtBullsBuffer[limit]=Spread;
//---
   return(rates_total);
  }
//+----
 
abeiks:

Hello!

The indicator draws the bar graph the other way round. How do you make it to the right side?

You just need to get used to it.

In general, it's better to repost the code here: https://forum.mql4.com/ru/42301/page15