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
Those are two separate functions calls. You fixed it in #4.
Ok so far I understand that it is better to use a variable than a function for dealing with the static datetime function. I'm adding a new condition for opening a position. my code is like this:
that code always return the it's sell and never says about buy. I assume it only works only on this line of code. From the previous code into this code there's not much different except checking if there's a open order by magic number and few new condition.
First of all, this does not detect a new bar.
This does
I'm confused.
The code from Ernst (on previous page) is working but I don’t know why it’s not working after I add new condition. I will try to use your code and see if it works on my code.
I just realize it that I’m comparing the bool with double. That line should tell me wether the price is above the ema line. I think I’m to focus on that static datetime that I use the bool and not the price. Let me try your code if it works in my code.The code from Ernst (on previous page) is working but I don’t know why it’s not working after I add new condition. I will try to use your code and see if it works on my code.
I just realize it that I’m comparing the bool with double. That line should tell me wether the price is above the ema line. I think I’m to focus on that static datetime that I use the bool and not the price. Let me try your code if it works in my code.Hi already change the code and it works now. Thank you for your assist Keith