Buy if previous Buy was at higher spot
-
I want to make a EA; I have a condition, and then a Buy signal. It also has a kind of betting system,
When Price goes against me, I check againg the condition and Buy again, But I want the price to be lower than the previous Buy (It could be multiple trades)
How can I check if the price is lower than all the Buy Open Trades (Open Price)
-
You have a pink block called "For each Trade" that could work for what you are asking
https://fxdreema.com/examples#Loop-(For each...)
"When you run this block once, it can activate it's orange output multiple times, depending on how many trades are present.
For each iteration the block loads a given trade, and this trade can be manipulated using other pink blocks like "modify stops" or "close"After this block you can connect a "Condition" block where you can get different properties of the trade/s.

Then, you can build
For each trade ->If Price (Ask, Bid, Mid or other PriceLevel) < (in loop) OpenPrice ---> Do something