A simple quick modification would be to set a bool variable to true or false depending on the result of the filter instead of using return, then check this bool before placing a new trade . . . for example . . .
pieronetto: Thanks i will work on it, let you know how i do
That what i have so far, getting 0 error(s),0 warning(s) so far so good but not opening trades. need a hint here thanks
That what i have so far, getting 0 error(s),0 warning(s) so far so good but not opening trades. need a hint here thanks
You are using 2 different local variables, the TimeFilterAllowTrading in start() is not the same as the TimeFilterAllowTrading in OpenAtMarket() use a globally declared variable ( above start() ) and get rid of the 2 local TimeFilterAllowTrading variables.
RaptorUK: You are using 2 different local variables, the TimeFilterAllowTrading in start() is not the same as the TimeFilterAllowTrading in OpenAtMarket() use a globally declared variable ( above start() ) and get rid of the 2 local TimeFilterAllowTrading variables.
RaptorUK: You are using 2 different local variables, the TimeFilterAllowTrading in start() is not the same as the TimeFilterAllowTrading in OpenAtMarket() use a globally declared variable ( above start() ) and get rid of the 2 local TimeFilterAllowTrading variables.
everything works now thank you very much for you help, im sure i come back with other problems.
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.
Thank you for editing your post.
A simple quick modification would be to set a bool variable to true or false depending on the result of the filter instead of using return, then check this bool before placing a new trade . . . for example . . .
Thanks i will work on it, let you know how i do
That what i have so far, getting 0 error(s),0 warning(s) so far so good but not opening trades. need a hint here thanks
pieronetto:
That what i have so far, getting 0 error(s),0 warning(s) so far so good but not opening trades. need a hint here thanks
You are using 2 different local variables, the TimeFilterAllowTrading in start() is not the same as the TimeFilterAllowTrading in OpenAtMarket() use a globally declared variable ( above start() ) and get rid of the 2 local TimeFilterAllowTrading variables.
0 error(s) 0 warning(s) and opens trades at right time
You are using 2 different local variables, the TimeFilterAllowTrading in start() is not the same as the TimeFilterAllowTrading in OpenAtMarket() use a globally declared variable ( above start() ) and get rid of the 2 local TimeFilterAllowTrading variables.
everything works now thank you very much for you help, im sure i come back with other problems.
I wish you the best.
my regards untill then
everything works now thank you very much for you help, im sure i come back with other problems.