Creating StopLoss & TakeProfit Code

 

Hello!

I am new here, also new with the MT5 & Trading etc, and i want to create a simple EA that sets buy/sell with StopLoss and TakeProfit.

Anybody got an example on the code for SL and TP? it doesnt have to be an automated sell and buy, just to make it Takt Profit or Stop Loss at a certain value.


Thank You Very Much

 

There are a lot of examples here in CodeBase so you can search it by yourself, for example:

How to make a search on the forum/CodeBase/Market
https://www.mql5.com/en/forum/193510