Check for open trades and the entry points
-
Good Day,
I am newby to this site. I need help and hope someone could help me.
How doe you check at a specific time of day if there is an active trade open, buy or sell, and check the entry point of that trade.Thanx alot
-
@wiehan1981 There are several ways to do it. How many open trades are supposed to be open at any moment in the day?
-
For now only two, I can alway add extra and modify at a later stage.
-
@wiehan1981 Ok. So you want an EA findung how many (if any) open trade are right now on the chart and then store its open price into a variable. Right? I guess those trade can be open at a previous day. Correct?
-
Hi, Thats all correct except that if there was a trade still open from the previous day it should not use that.
-
@wiehan1981 Then you will need a loop searching for all open trades and then an array to store all open prices. I'm afraid that will need custom code that I cannot provide (I'm nort a programmer, sorry). Maybe miro or roar can help.