Can I have some help, friends ?
-
Hi, I want to create EA based on this indicator: jurik volty - bands - separate. The conditions are very simple when the price crosses the top line we sell, when the cross bottom line we buy. I made EA with the same conditions but with a bollinger band. With this I failed. I would be grateful as someone help!
[0_1566064637672_jurik volty - bands - separate.ex4]
(Uploading 100%) [0_1566064650353_Jurik volty bands - separate 1.mq4](Uploading 100%) -
You uploaded the ex4 version and that doesn't work. Don't you have the mq4 version?
-
Sorry, it's my first time
0_1566065400968_Jurik volty bands - separate 1.mq4 -

-
Could you please share your project with this indicator?
-
Hi ! I did it, my mistake was that I wrote the "cross" of the bottom and top lines, but they cannot be crossed , only touched. I changed (x <, x>) with (==).
My idea is to open a sales order with every touch of the top line, and with each subsequent trade I increase the volume in steps: 0.01; 0.03; 0.05; 0.08; 0.11. I limit the number of trades to 5. I close all trades when crossing the zero line.
Buying is the opposite way ...My problem now is that I can't make the opening of the next order happen after a certain repulsion off the line. I want to avoid very close orders. As an example of a photo:

https://fxdreema.com/shared/PiP9DE8ic
Sorry for my English, in Bulgarian it would have been easier for me

-
Let me share some initial considerations.
-
Blocks 5 and 6 will always be executed before your main threads (buy and sell). Their block ID are lower. Is that intended?
-
Blocks 50 and 121 are counting buys and sells at the same time. However, they are on top of two different threads, one for buy and another for sell. Is that also intended?
-
-
Yes, in both cases it is intentional.
In the first case, the aim is to close all transactions after crossing the zero line.
In the second case, the aim is to limit the total volume traded.
My question is how can I make the opening of the next order happen after a certain repulsion from the top (bottom) line. For example, when the indicator paints a buy or sell arrow. I've attached an example above!
-
I'm not sure if this is an ok solution?
-
I think this will work. Thanks!