Repeat buy or sell from the same price point
-
Repeat buy or sell from the same price point if the price comes to the starting price ( condition- once a bar )
-
@vijithtr What do you exactly mean by 'starting price'? Do you maybe mean the open price of the previous trade?
-
@l-andorrà I want to start a trade at 9:30 , that trade is my starting price
-
@vijithtr
Hello, have you tried placing time filter? -
@vijithtr Ok. So do you want to open a trade every time price hits that price throughout the day? Which minimum distance do you need to stop opening unlimited trades per day?
-
100 pips away from starting point and it should take trade 3 times (eg : if initial price : 2000 buy trade at 2100-repeat this trade 3 times)
-
Then you definitely need variables. Are you familiar with them?
-
@l-andorrà pls show me with example
-
@l-andorrà yes
-
Ok. Then you need a counter variable used to identify how many times price was hit. If I understand correctly your strategy, as soon as price hits 2100, it needs to hit again 2000 before hitting 2100 once more to count the second 'touch'. Is that correct?
-
@l-andorrà strategy is correct. How to add counter variable and which block I have to add before buy now block
-
That would require a full structure doing that. It is not that easy as to upload a screenshot. Those are the substructures necessary (for buys only):
- Variable 1 counting how many times the level is hit.
- Variable 2 counting how many times the open price is hit after the previous level was hit.
- Matching variables 1 and 2 structure monitoring when the condition is met.
- Resetting variables 1 and 2 when point 3 happens.
As you can see that is not a trivial thing to do. You can try to begin it and I will assist you to review it.
-
@l-andorrà where to add these variables , under which block these variables should be added
-
As I pointed out. You need to create a completely separated structure doing that. Additionally, They do not need necessarily to be connected together. They can be separated depending on your current structure. There is no simple description to be embedded in one block or two, if that is your question.
-
@l-andorrà Assume First trade started with the price of 2000( TP = 100 pips) and if trade closed , then price again comes to 2000 second trade will be initiated ( TP =100 pips ) and if second trade also closed initiate third trade in price 2000 ( TP = 100 pips ) like that… second and Third trade starting after the take profit of previous one.
-
Yes, I fully understand how it works. The problem is that building such a structure is not that easy. Have you tried an initial version? We can begin from there.
-
@l-andorrà ok

-
@l-andorrà pls check this EAhttps://fxdreema.com/shared/LTcGl8rEc
-
-
Ok. That's a good beginning. Now please notice that price_1 variable is supposed to store two different values at the exact same time by adding +50 and subtracting -50. This means you will need two different variables. One for adding +50 and the other one for subtracting -50.