It worked. The question was about the "form" of the string variable declaration. I'm still learning, if anything, gentlemen programmers.
Everyone's learning, that's normal.
My question arose because your example was not of beginner's level, and the question about variable types and scope is the first thing you have to understand when you first try to write your code - without understanding this, you will not get anything at all in the future
Hello! I'm trying to draw a trend line using lower fractals and it's not working. Takes the beginning of times as the first point, draws one line and that's it. It does not go to the next fractal. What am I doing wrong, how can I fix it?
datetime firsttime1;
datetime firsttime2;
datetime secondtime1;
datetime secondtime2;
double firstprice1;
double firstprice2;
double secondprice1;
double secondprice2;
//+------------------------------------------------------------------+//| Expert initialization function |//+------------------------------------------------------------------+intOnInit()
{
//---//---return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+//| Expert deinitialization function |//+------------------------------------------------------------------+voidOnDeinit(constint reason)
{
//---
}
//+------------------------------------------------------------------+//| Expert tick function |//+------------------------------------------------------------------+voidOnTick()
{
if(Hour()>=9 && Hour()<22)
{
Fun_New_Bar();
if(New_Bar)
{
double vallo=iFractals(NULL,0,MODE_LOWER,2);Alert("vallo = ",vallo);
{if(vallo>0)
{
//забиваем координаты второй точки для линии Low
secondtime1=(TimeCurrent()-7200);
secondprice1=iLow(NULL,0,2);
//рисуем трендовую линию LowObjectCreate("LowLine",OBJ_TREND,0,firsttime1,firstprice1,secondtime1,secondprice1);
firsttime1=secondtime1;
firstprice1=secondprice1;
}
}
}
}
}
AudioPrice Revision 1 Have audio output of latest price in stereo! Revised to cater for fractional pips as now offered by some brokers to MT4. Stochastic Net Stochastic net for the the classification problems with the instruction provided.
I made a mistake by inserting this add-on separately. The arrows should be put only at the moment of buffer change. At the same time, do not forget to put an empty value in the buffer in all other cases.
Even better: put an empty value at once, and fill one of the buffers with an arrow when the trend changes.
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.
My indicator works, I ' m just expanding.
OK, I'll get it myself.
If this is your indicator, the question looks, to put it mildly, alarming...
If this is your indicator, the question looks, to put it mildly, alarming...
It's working. The question was about the "form" of the string variable declaration. I'm still learning, if anything, gentlemen programmers.
It worked. The question was about the "form" of the string variable declaration. I'm still learning, if anything, gentlemen programmers.
Everyone's learning, that's normal.
My question arose because your example was not of beginner's level, and the question about variable types and scope is the first thing you have to understand when you first try to write your code - without understanding this, you will not get anything at all in the future
It worked. The question was about the "form" of the string variable declaration. I'm still learning, if anything, gentlemen programmers.
I'm still learning too )))) And hopefully I can still learn a lot ;)
Greetings All ! How to pass to the button , name + value ( example button Lots = 0.1 ) ?
Thanks in advance !
Added arrows to the SuperTrend indicator downloaded from kodobase. It draws the arrows normally on startup,
but if I scroll back/left on the chart, the gibberish appears and everything crashes.
Here is the code:
Please tell me what's wrong with it.
Please tell me what I did wrong.
I made a mistake by inserting this add-on separately. The arrows should be put only at the moment of buffer change. At the same time, do not forget to put an empty value in the buffer in all other cases.
Even better: put an empty value at once, and fill one of the buffers with an arrow when the trend changes.
but if I scroll backwards/leftwards, the gibberish appears and everything breaks.
is the history being swept up? you don't have a recalculation for this case and the new indicator buffer items that appear are filled with rubbish.