
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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:
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 . . .