Last high and last low is very subjective, it depends. There are indicators to do that. Otherwise for fixed number of candles or fixed time, look in Condition -> Market properties -> Highest... Lowest... you will see these
Normally you check past indicator data. Click on "More settings" and you will see Candle ID there. This is at which candle you want to get value. 1 = previous candle. 2 = prev. to previous. And so on... positive values means that you are going past into the history. Here is some info: https://fxdreema.com/documentation/gett ... indicators
So it is the opposite of what you are thinking. Instead of looking at conditions now and say "I want to buy after 30 minutes", at the current time you are looking 30 minutes back to see what were the conditions. This is how normally EAs are made.
When you use "Draw horizontal line" block it has an option to choose at what price level to draw that line, and by default it is Bid.
Now the problem with your project is that the initial value of that Formula variable is 0 and block 7 is true from the beginning 🙂
HM... I thought, that the Condition only say that Profit < 0, the result is true or false and if it is tru, the ea draw an arrow. Give this condition a real number of the negative Provit like 12 Pips ore 12 USD?
http://fxdreema.com/shared/RVb6OVwZd
This one does not draw arrows for me, now it's 00:25 server time. If you have another configuration, give me some example or tell me the id ot the project.
There is a block "Check current unrealized profit" that checks the profit made from a group of trades, but time factor is not considered in this block, so it does not care if the profit/loss is made for today, yesterday...