Globally, I want to compare the low of the first bar with the "n" upper fractal behind the first arrow of the called indicator (first buffer).
And find out the maximal price between the first bar and the bar of the found fractal.
The condition is as follows: if the low (+-10 points) of the first bar is equal to the price (let it be the first) of the fractal behind the indicator arrow and the maximum price between the fractal bar and the first bar minus the price of the fractal found is greater than 50 points, then put the arrow.
Actually, in order to find the fractal, I need the number of the bar where the arrow is. I want to look through the fractals starting from this bar and go further into history.
Maybe I started from the wrong place and you can give me another solution.
Globally, I want to compare the low of the first bar with the "n" upper fractal behind the first arrow of the called indicator (first buffer).
And find out the maximal price between the first bar and the bar of the found fractal.
The condition is as follows: if the low (+-10 points) of the first bar is equal to the price (let it be the first) of the fractal behind the indicator arrow and the maximum price between the fractal bar and the first bar minus the price of the fractal found is greater than 50 points, then put the arrow.
Actually, in order to find the fractal, I need the number of the bar where the arrow is. I want to look through the fractals starting from this bar and then back to the history.
Maybe I started from the wrong place and you can suggest another way of solving it.
This one should simply put points through the history on the distance in bars which you set in the settings.
I.e., if you set 10 bars, then in case there is a signal from the custom indicator to the left of the cycle index for 10 bars, it will set a point on the current bar (index i) of the cycle
//+------------------------------------------------------------------+//| ProjectName |//| Copyright 2012, CompanyName |//| http://www.companyname.net |//+------------------------------------------------------------------+#property copyright"Copyright 2017, MetaQuotes Software Corp."#property link"https://www.mql5.com"#property version"1.00"#property strict#property indicator_chart_window#property indicator_buffers2#property indicator_plots2//--- plot UP#property indicator_label1"UP"#property indicator_type1DRAW_ARROW#property indicator_color1clrLawnGreen#property indicator_style1STYLE_SOLID#property indicator_width11//--- plot DN#property indicator_label2"DN"#property indicator_type2DRAW_ARROW#property indicator_color2clrDeepPink#property indicator_style2STYLE_SOLID#property indicator_width21//--- input parametersinputuint InpNumberOfBars = 10; // Количество баров отступаinputint InpDistance = 5; // Отступ в пунктах//--- indicator buffersdouble BufferUP[];
double BufferDN[];
//---int num_bars;
double distance;
//+------------------------------------------------------------------+//| Custom indicator initialization function |//+------------------------------------------------------------------+intOnInit()
{
//--- indicator buffers mappingSetIndexBuffer(0,BufferUP);
SetIndexBuffer(1,BufferDN);
//--- setting a code from the Wingdings charset as the property of PLOT_ARROWSetIndexArrow(0,233);
SetIndexArrow(1,234);
//--- setting variables
num_bars=(int)InpNumberOfBars+1;
distance=InpDistance*Point();
//---return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+//| Custom indicator iteration function |//+------------------------------------------------------------------+intOnCalculate(constint rates_total,
constint prev_calculated,
constdatetime &time[],
constdouble &open[],
constdouble &high[],
constdouble &low[],
constdouble &close[],
constlong &tick_volume[],
constlong &volume[],
constint &spread[])
{
//---if(rates_total<num_bars) return(0);
int limit=rates_total-prev_calculated;
if(limit>1)
{
limit=rates_total-num_bars-1;
ArrayInitialize(BufferUP,EMPTY_VALUE);
ArrayInitialize(BufferDN,EMPTY_VALUE);
}
for(int i=limit; i>=0; i--) // 1000 - 11 - 1 = 999-11 = 988
{
double val_0=iCustom(NULL,0,"Arrow v.3",0,i+num_bars); // rates_total=1000, i=988, val from 988+11=999double val_1=iCustom(NULL,0,"Arrow v.3",1,i+num_bars); // rates_total=1000, i=988, val from 988+11=999if(val_0>0 && val_0<EMPTY_VALUE)
BufferDN[i]=low[i]-distance; // BufferDN[988]=valif(val_1>0 && val_1<EMPTY_VALUE)
BufferUP[i]=high[i]+distance;
}
//--- return value of prev_calculated for next callreturn(rates_total);
}
//+------------------------------------------------------------------+
However, "must" doesn't mean I have to. I dumbly drew it on my knees while I was sleeping. I can't check it, I don't have a custom one. You know...
Greetings. Really need some help. Does anyone know any script or method to highlight trades in the deal history and then save these selections in the history, for example: https://yadi.sk/d/7aHIs_vh3RxLvW or here:
https://yadi.sk/i/Ft8yNn1e3RxMEH - thank you in advance
civic111: Greetings. Really need some help. Does anyone know any script or method to highlight trades in the deal history and then have these selections saved in the history, like https://yadi.sk/d/7aHIs_vh3RxLvW or here:
https://yadi.sk/i/Ft8yNn1e3RxMEH - thanks in advance
civic111: Greetings. Really need some help. Maybe someone knows some script or method, how can I select some deals in the deal history and then these selections will be saved in the history, for example: https://yadi.sk/d/7aHIs_vh3RxLvW or here:
https://yadi.sk/i/Ft8yNn1e3RxMEH - thanks in advance
In the standard panel - no way.
But CodeBase or (maybe) Market should have tools for working with order history. Or, as an alternative, you can do it yourself or request a freelance "alternative order history panel with blackjack and devs" :-)
Or quite simply, export to CSV and then use Excel to analyze the history in it.
انا اعتقد ان كل مسافه معينه افضل لان ممكن نفتح شرا و السعر ينزل ويجيب اشاره بيع ويفضل علي البيع كتير وينزلجامد واتحين كل دا صفق واحده بس شرا ومنتظرين اشاره شرا تانيه عشان ندخل بلوت اكبر
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I still don't understand: what do you want to find and display? Simply in words - without code.
So you are writing:
The question is: Why are you looking for it on the tenth bar?
On the tenth bar, I took it as an example.
I need to set points after 10 or "N" bars after the arrow of the called indicator appears.
as if I only needed to place the points on the tenth bar, I would do it this way
And attach the entire indicator, not OnCalculate()
This is the first option
.Globally, I want to compare the low of the first bar with the "n" upper fractal behind the first arrow of the called indicator (first buffer).
And find out the maximal price between the first bar and the bar of the found fractal.
The condition is as follows: if the low (+-10 points) of the first bar is equal to the price (let it be the first) of the fractal behind the indicator arrow and the maximum price between the fractal bar and the first bar minus the price of the fractal found is greater than 50 points, then put the arrow.
Actually, in order to find the fractal, I need the number of the bar where the arrow is. I want to look through the fractals starting from this bar and go further into history.
Maybe I started from the wrong place and you can give me another solution.
Globally, I want to compare the low of the first bar with the "n" upper fractal behind the first arrow of the called indicator (first buffer).
And find out the maximal price between the first bar and the bar of the found fractal.
The condition is as follows: if the low (+-10 points) of the first bar is equal to the price (let it be the first) of the fractal behind the indicator arrow and the maximum price between the fractal bar and the first bar minus the price of the fractal found is greater than 50 points, then put the arrow.
Actually, in order to find the fractal, I need the number of the bar where the arrow is. I want to look through the fractals starting from this bar and then back to the history.
Maybe I started from the wrong place and you can suggest another way of solving it.
This one should simply put points through the history on the distance in bars which you set in the settings.
I.e., if you set 10 bars, then in case there is a signal from the custom indicator to the left of the cycle index for 10 bars, it will set a point on the current bar (index i) of the cycle
However, "must" doesn't mean I have to. I dumbly drew it on my knees while I was sleeping. I can't check it, I don't have a custom one. You know...Greetings. Really need some help. Does anyone know any script or method to highlight trades in the deal history and then have these selections saved in the history, like https://yadi.sk/d/7aHIs_vh3RxLvW or here:
Is this the way
to put the pictures in?
Greetings. Really need some help. Maybe someone knows some script or method, how can I select some deals in the deal history and then these selections will be saved in the history, for example: https://yadi.sk/d/7aHIs_vh3RxLvW or here:
In the standard panel - no way.
But CodeBase or (maybe) Market should have tools for working with order history. Or, as an alternative, you can do it yourself or request a freelance "alternative order history panel with blackjack and devs" :-)
Or quite simply, export to CSV and then use Excel to analyze the history in it.
please close job
I need free slot
يعني ممكن صفقة شرا لم تحق هدفها فلذلك مكن تعزيزها بصفقة اخرى شراء اذاا اعطى الاكسبيرت اشارة بذلك
لان ممكن نفتح شرا و السعر ينزل ويجيب اشاره بيع
ويفضل علي البيع كتير وينزلجامد واتحين كل دا صفق واحده بس شرا ومنتظرين اشاره شرا تانيه عشان ندخل بلوت اكبر