Close Open Position After 'x' Minutes With Crossover Condition
-
Hello please i need help in setting a EA. I want to open a buy position when EMA (9) crosses above EMA (55) and close the buy position when EMA (9) crosses below EMA (55) but only 150mins after the buy entry. That is to say if EMA (9) crosses below EMA (55) and the time is less than 150mins, for example (148mins) the EA does nothing but if the time is greater than 150mins and the said condition EMA (9) crosses below EMA (55) then the EA closes the position. The EA only starts looking for the exit condition (EMA (9) crosses below EMA (55) ) only after 150mins have passed from the open of the buy entry. Thank you in advance for your contribution.
-
@ozonevista said in Close Open Position After 'x' Minutes With Crossover Condition:
Hello please i need help in setting a EA. I want to open a buy position when EMA (9) crosses above EMA (55) and close the buy position when EMA (9) crosses below EMA (55) but only 150mins after the buy entry. That is to say if EMA (9) crosses below EMA (55) and the time is less than 150mins, for example (148mins) the EA does nothing but if the time is greater than 150mins and the said condition EMA (9) crosses below EMA (55) then the EA closes the position. The EA only starts looking for the exit condition (EMA (9) crosses below EMA (55) ) only after 150mins have passed from the open of the buy entry. Thank you in advance for your contribution.
will you be attempting the project yourself and posting a link or are you asking someone to do it for you?
-
@tipsywisdom The said above is an example to lay emphasis on the exit strategy, this is the project link text so the question is, am i getting the exit strategy right or am i getting it wrong, i want to exit the trade with the condition only after 500mins has passed from the time of entry.
-
@ozonevista Both 'close trades' settings are correct but no 'condition' blocks should be connected below them. If those trades were open with a different condition then yo should use variables.