Right now, for each bar, it puts one cloze in the array. And if I don't do that, then I have to calculate from which bar to collect data, loop and filter. And this leaves only the latter.
int start()
{
//----int start=3;
int end1=30;
int end2=90;
int array[];
ArrayResize(array, (end1-start) );
int size1=ArraySize(array);
ArrayResize(array, (end2-start) );
int size2=ArraySize(array);
Comment("start=",start,", end1=",end1,", end2=",end2,", size1=",size1,", size2=",size2);
//----return(0);
}
In the comments it comes out: start=3, end1=30, end2=90, size1=27, size2=87.
Using the SetTLine() function from KimIV https://forum.mql4.com/ru/38949/page6#434255 . The problem is that I need two lines (top and bottom), but it doesn't work for me. Made another function SetTLine1() with other variables, but it still doesn't work. How to do it?
datetime d0=StrToTime(TimeToStr(TimeCurrent(), TIME_DATE));
datetime d1=TimeCurrent()-24*60*60;
while (TimeDayOfWeek(d1)==0 || TimeDayOfWeek(d1)==6) d1-=24*60*60;
d1=StrToTime(TimeToStr(d1, TIME_DATE));
datetime d2=d1-24*60*60;
while (TimeDayOfWeek(d2)==0 || TimeDayOfWeek(d2)==6) d2-=24*60*60;
d2=StrToTime(TimeToStr(d2, TIME_DATE));
int b2=iBarShift(NULL, 0, d2); // номер бара начала второго дняint b1=iBarShift(NULL, 0, d1); // номер бара начала первого дняint b0=iBarShift(NULL, 0, d0); // номер бара начала текущего дняint n2=iLowest(NULL, 0, MODE_LOW, b2-b1-1, b1);
int n1=iLowest(NULL, 0, MODE_LOW, b1-b0-1, b0);
datetime t1=Time[n2];
double p1=Low[n2];
datetime t2=Time[n1];
double p2=Low[n1];
SetTLine(Magenta, "", t1, p1, t2, p2, True, STYLE_SOLID, 3);
datetime di0=StrToTime(TimeToStr(TimeCurrent(), TIME_DATE));
datetime di1=TimeCurrent()-24*60*60;
while (TimeDayOfWeek(di1)==0 || TimeDayOfWeek(di1)==6) di1-=24*60*60;
di1=StrToTime(TimeToStr(di1, TIME_DATE));
datetime di2=di1-24*60*60;
while (TimeDayOfWeek(di2)==0 || TimeDayOfWeek(di2)==6) di2-=24*60*60;
di2=StrToTime(TimeToStr(di2, TIME_DATE));
int bi2=iBarShift(NULL, 0, di2); // номер бара начала второго дняint bi1=iBarShift(NULL, 0, di1); // номер бара начала первого дняint bi0=iBarShift(NULL, 0, di0); // номер бара начала текущего дняint ni2=iHighest(NULL, 0, MODE_HIGH, bi2-bi1-1, bi1);
int ni1=iHighest(NULL, 0, MODE_HIGH, bi1-bi0-1, bi0);
datetime t1i=Time[ni2];
double p1i=High[ni2];
datetime t2i=Time[ni1];
double p2i=High[ni1];
SetTLine(..................................................
atwas: On 30 and 31 March 2013 we held a 2-day conference on "All the secrets of winning bets". Everyone was satisfied. On 5 March we will post it on the YouTube channel stavkana1000000. Programme: 5. Study of matches. 6. Identification of sequences. 7. Allocating a reserve - Bank. 8. Calculate at the average KEF bet. Enter stavkana1000000 in any search engine and get the sports (football) betting strategy for free. Or come to the online conferences, which are held every Saturday for free. Andrey Player.
Hey! What casino did you come from?! Perpetual ban to the player!
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 don't know how many elements an array should have. It could be 40 or 65. In a word, we need a dynamic array.
Use ArraySize to change the size of the array:
In the comments it comes out: start=3, end1=30, end2=90, size1=27, size2=87.Good afternoon, Please help, the robot with 0.1 lot multiplies volumes and with 0.01 does not.... What can I change?
And there is a bed! SRC! To insert the code!
And there's the bedlam! SRC! To insert code!
I'm not very good at it yet... tell me what to do....
Using the SetTLine() function from KimIV https://forum.mql4.com/ru/38949/page6#434255 . The problem is that I need two lines (top and bottom), but it doesn't work for me. Made another function SetTLine1() with other variables, but it still doesn't work. How to do it?
Good afternoon! Please help me with error:ERR_INVALID_FUNCTION_PARAMVALUE - 4051 -Invalid value of function parameter.
I cannot find this invalid parameter.
I don't understand it very well yet... tell me what to do....
SRC is here:
And if the code is very large, as in your case, attach the file:
I don't know much yet... tell me what to do....
I answered you in the other thread! And delete your "portmanteau" posts!
Now the error is 130, I don't understand why. Who can tell me where I'm going wrong.
On 30 and 31 March 2013 we held a 2-day conference on "All the secrets of winning bets". Everyone was satisfied. On 5 March we will post it on the YouTube channel stavkana1000000. Programme: 5. Study of matches. 6. Identification of sequences. 7. Allocating a reserve - Bank. 8. Calculate at the average KEF bet. Enter stavkana1000000 in any search engine and get the sports (football) betting strategy for free. Or come to the online conferences, which are held every Saturday for free. Andrey Player.
Hey! What casino did you come from?! Perpetual ban to the player!