Trade Reentry
-
Sorry yall, I'm sure this is asked somewhere and I tried to do my justice to see if I could make other peoples questions apply to my scenario but I am unable to think about the logic.
See picture, I want to reenter this exact trade when the ask or bid cross last open price.
What I have so far is;
For Each Closed Position.
Once a day.
Check profit last closed (below 0).
?Condition block of, Candle High X> (ontrade)Event Data Open Price?
Buy Now or Sell.I know I need a variable for the trade of the day, I am not sure how to reset that every new day.
The condition block is my guess, but I am sure that won't work since the trade is no longer active, it has nothing to reference on the Right operand.
-
@jsauter86 Do you want to open the same open price, SL and TP? I'm sure you know they can be stored into variables. The question is, how much time are those prices supposed to me stored?
-
yes, basically repeat the trade. Only until the GMT 2359 that day.
-
@jsauter86 Easy. Add this to your EA:

This tree should have the lowest number in the 'On tick tab' so that is it executed first every day. Then all your variables should be reinitiaded to 0 in the 'Modify variables' block.
-
I dont use any variables currently.
-
@jsauter86 Then you will need as many of them as required and store the values as soon as the trade is open.
-
ohh ok. youre saying put all those things into variables, and then modify the variables once a day.
I wonder initially, what is the affect of, sometimes I take multiple trades in a day. I guess I could control those initial trades with a grouping.
-
@jsauter86 Exactly. Obviously the number of variables will depend on your max open trades, their simultaneity, etc.