how to assign each new trade to its OBV indicator value ?
-
I will open a buy trade and sell trade and assign the OBV value to each one of them at the moment of opening them.
Then if the OBV increase or decrease for a certain amount the Ea must open or sell a new trade AND ASSIGN THE NEW OBV VALUE TO IT… AND SO ON..
Hope you can help me with this: How can I assign the value of the indicator used to open a trade to this trade id ? so that I can use it to open a new trade?? -
You can store the value of the indicator into a variable at the exact moment a trade is open. Then you can do that every time a new trade is open. Are you familiar with using variables?
-
Thank you sir for your answer
Being new client of fxdreema I hope you will help me with this..
The EA must open the first buy and sell trades randomly
Then a new buy or sell trade must be opened each time the OBV increase or decrease for 1% above or below the OBV related to the last opened trade.
I did the below EA but it dos not work properly..
https://fxdreema.com/shared/0ZT6Z3tdcPls try to rectify or tell me h ow to do it, tks.
-
pls help , tks
-
@bacharchoura1 You can remove blocks 33 and 37. They are redundant. Then you need to add this on both 'for each trade' blocks:

And then add a pink block named 'once per trade/order' just below the condition block.
-
thank you sir for your replay
following your instruction it became better but unfortunately it keeps opening new trades even if the OBV still did not increase/decrease for 1%.....!!!! , while it must open new trade (buy/sell) only when the OBV increase or decrease for 1%
i will be very grateful if you kindly tell me what is wrong and how to fix it.., this is the EA made as per your instruction:
https://fxdreema.com/shared/I3K2XtVwd
kind regards -
GOOD DAY FREIND
KINDLY HELP ANSWERING MY QUESTION...TKS -
Now you need to connect block 34 to block 47 and block 38 to block 48. Everything els is correct.