Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 950
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
Please advise who can. How to close a position after n (number eg 5) candles after its opening? You don't know the opening time beforehand.
Count n candles in seconds, add to the opening time and compare with the current time. As soon as the current time is greater - an order to close.
Please advise who can. How to close the deal after n (number eg 5) candles after its opening? In advance the time of opening of the position is unknown.
The number of candles that have passed since the order was opened (remember to highlight it beforehand):
Further it is easier as "a piece of cake". ;)
Colleagues, my NormalizeDouble function doesn't work (I can't explain it otherwise). It outputs 16 digits, although I wrote 5 in the second parameter. Please tell me what's wrong in the code:
Thank you! And now it's 0.12346.
How would you do that without rounding?
Then it will not be normalised and may cause an error! Why aren't you happy with a more accurate normalised price?
If you need it for some reason, you can multiply the original number by 100000, turning it into an integer, and then multiply it by _Point or 0.00001:
Then it will not be normalised and may cause an error! Why are you not happy with a more accurate normalised price?