[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 418
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
Thank you. So period M1 corresponds to value 1, and period M5 corresponds to value 5, so it turns out that period H1 corresponds to value 60, and period H4 corresponds to value 240 right?
Yes, that's right.
Hello!
Please help me to understand. I am trying to write a simple indicator, but it somehow gives out empty values.
It seems to me that the error lies somewhere in this place
because the field of this operation in the ExtVolumesBuffer array does not change anything.
I understand that somewhere I made a mistake, but I do not understand where.
Thanks in advance!
Thank you. So period M1 corresponds to value 1, and period M5 corresponds to value 5, so it turns out that period H1 corresponds to 60, and period H4 to 240 right?
I need this construction to work: when period M1 is selected case 1 and when period M15 is selected case 15. Will it work, or is it necessary to do case 1 case 2 case 3 - in order?
Thank you. So period M1 corresponds to value 1, and period M5 corresponds to value 5, so it means that period H1 corresponds to value 60, and period H4 corresponds to value 240 right?
I want this construction to work: when the period M1 is set to case 1 and when the period M15 is set to case 15. Will it work this way or is it necessary to make case 1 case 2 case 3 - in order?
First, you'd better use named constants instead of numbers 1, 5, etc. : PERIOD_M1, PERIOD_M5, etc.
Second, there is an error in your example. The Ba variable will always take value 1.
Thank you. So period M1 corresponds to value 1, and period M5 corresponds to value 5, so it means that period H1 corresponds to value 60, and period H4 corresponds to value 240 right?
I want this construction to work: when the period M1 is set to case 1 and when the period M15 is set to case 15. Will it work or is it necessary to make case 1 case 2 case 3 - in order?
1) It will work if you add a break in each line.
2) Instead of 1, 5, 15, it is better to use PERIOD_M1, PERIOD_M5, PERIOD_M15, etc.
Good afternoon, just came across the fact that the trading robot doesn't close the positions, about once in 50, when it reaches a profit. It then has to close everything, pendants and all, and set up again. Not closing creates order confusion and drawdown.
Can you imagine that sometimes it turns out that an order, which was definitely closed at takeprofit, has an ordercloseprice equal to zero !!!!!.
Here, look at the screenshot, here is the fifth line from the bottom; the order, conventionally called 49, closed on TakeProfit. And in the ninth line from the bottom Orderclosepriche equals zero!!!!!
Secondly, there is an error in your example. The variable Ba will always take the value 1.
Good afternoon, just came across the fact that the trading robot doesn't close the positions, about once in 50, when it reaches a profit. It then has to close everything, pending orders and all, and set up again. Not closing creates order confusion and drawdown.
Can you imagine that sometimes it turns out that an order, which was definitely closed at takeprofit, has an ordercloseprice equal to zero !!!!!.
You can see in the screenshot below, here is the fifth line; the order nominally called 49 closed on TakeProfit. And in the ninth line from the bottom Orderclosepriche equals zero!!!!!
This is not orderclossepriche - it's Clowes Price - closing price of the order.
Your Expert Advisor's code needs to be corrected. It's the one that's fighting.
I see. It's not like there's anything in the code that's particularly complicated... I'll post it now.
When I place orders, I save the time in wremjapomnim. As soon as any order is closed at currentprofit, I delete all orders and again remember the time in the wremjapomnim pyrimen and set them.
Hello!
Please help me to understand this. I am trying to write a simple indicator, but it somehow gives out empty values.
It seems to me that the error lies somewhere in this place
because the field of this operation in the ExtVolumesBuffer array does not change anything.
I understand that I made a mistake somewhere, but I don't understand where.
Thanks in advance!
Is my case so complicated?