first of all,I confirmthat theSRCbelowyourquotes,notmine,because compared with my code, spare:
datetime time = TimeCurrent();
about theexplanationyou givemetimecrossSELLfunction();understand thatnotwell done,thenyou canbelike this:
timecrossSELL ()
{
Timecurrent ();
}
Sorry ifI do not understandis thatlanguageis a big barrier, lol,
you thinkwhat I'msearching isnecessary to use theTimeCurrent,or can I useanother function, whichIcomparethecrossing timewith anothertime. is that Ican not think ofanother
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.
first of all, I confirm that the SRC below your quotes, not mine, because compared with my code, spare:
about the explanation you give me timecrossSELL function (); understand that not well done, then you can be like this:
timecrossSELL () { Timecurrent (); }Sorry if I do not understand is that language is a big barrier, lol,
you think what I'm searching is necessary to use the TimeCurrent, or can I use another function, which I compare the crossing time with another time.
is that I can not think of another
THANKS
Thanks for responding
first of all, I confirm that the SRC below your quotes, not mine, because compared with my code, spare:
about the explanation you give me timecrossSELL function (); understand that not well done, then you can be like this:
You need to read about and understand function return values . . .
deVries, thanks,
the code of calcule of cross of MA`s is this: no have more
and no understand how can to do it, without take the time, thanks
take the moment that 2 EMAs cross, when happend the cross, wait 3 or 4 candles and in this moment do a sell or buy.
this is what you want to do .....
if we check the value at bar 0 of the two MA's we know that we do it with the lines above you gave
This can give also the information to find out
if ( MAR > MAL ) we have to check at what first bar in the past situation was MAR < MAL and we know the moment it crossed last time
......
also
if ( MAR < MAL ) we have to check at what first bar in the past situation was MAR > MAL and we know the moment it crossed last time
we have to calculate also
until firstcross or 3 or 4 candles + 1
now you have to find out what first bar situation bar 0 is opposite of bar i
if situation happend MAR > MAL at bar 0 and MAR[i] < MAL[i]
When you have determined the cross has happened
Then if the last cross was more than 3 bars ago
When you have determined the cross has happened
Then if the last cross was more than 3 bars ago
thanks, but
if put this code:
= imagen
..........................................................
deVries 2014.01.01 14:23 #
thank you, but i not understand, i am sorry.
thanks, but
if put this code:
Where is the ; at the end ?
Where is the ; at the end ?
yes,
yes,
And it works now ? you can only initialise a static or global scope variable with a constant . . .
deVries 2014.01.01 14:23 #
thank you, but i not understand, i am sorry.
The code of SDC is not needed
you wanna check when happend the cross, wait 3 or 4 candles and in this moment do a sell or buy.
this function i give
And it works now ? you can only initialise a static or global scope variable with a constant . . .