To detect points, let's say 1 and 2, you know... there are indicators and candles or a combination of them. There are multiple ways of doing this - someone may use stoch, other can use MA, two MAs, PSAR, something else. But when you know what should be calculated, "Condition" block(s) are used basically.
Trend is detected mostly with MA or two MAs. When a single MA is rising (lower in older bar) or when the faster MA is above the slower one... you know.
In "Buy pending order" there is an option to put the order on certain level - Dynamic level. Whether it will be stop or limit order depends on where is the open price in relation to the current price, so there is no option to select "Stop/Limit". You can put that order somewhere with open price, sl and tp calculated on that moment, and you can also put the order and then move it depending on the market movement (this will probably require to create a loop - pink blocks).
Now the question is how will you know these points and when are they calculated.
MT5 actually natively supports this event. I have plan to make them.
Connecting the negative output to the input has more logic. Before those little black things were bigger before, but I decided to make connections with less curviness... and now I see that their wicks are invisible in. Maybe I will try to make those self-connections to appear above the block, not behind it.