How to check previous trade level (losing) of the day?
-
Hi, need some help building a logic in the following order:
- Check the most recently closed trade for today with the condition the trade was opened today.
- Check if it is a winning or losing trade.
- If it is a **losing **trade, get the price level of the **open **of that trade.
- If it is a **losing **trade, check if it is a Long or Short.
- With that price level obtained in step 3, if Long, do something A. if Short, do something B.
Thanks!
-
Losing trade in steps 3 and 4?
Here is some example that hopefully can help to get the idea: https://fxdreema.com/shared/p0958FoA -
I got it! You have been very helpful as always, thanks!