Discussing the article: "Developing Advanced ICT Trading Systems: Implementing Signals in the Order Blocks Indicator"

 

Check out the new article: Developing Advanced ICT Trading Systems: Implementing Signals in the Order Blocks Indicator.

In this article, you will learn how to develop an Order Blocks indicator based on order book volume (market depth) and optimize it using buffers to improve accuracy. This concludes the current stage of the project and prepares for the next phase, which will include the implementation of a risk management class and a trading bot that uses signals generated by the indicator.

In this article, we explored how to create an Order Block indicator based on market depth volume and optimized its functionality by adding additional buffers to the original indicator.

Our final result:

Final Example GIF


Author: Niquel Mendoza

 

https://www.mql5.com/en/articles/16268

5. Setting TP and SL Levels When Opening Trades

Finally, we set Take Profit and Stop Loss levels for buy and sell trades. For buy trades, use the Ask price; for sell trades, use the Bid price. Then draw the TP and SL lines on the chart for monitoring.

tp1_buffer[iBarShift(_Symbol,PERIOD_CURRENT,iTime(_Symbol,_Period,0))] = tp1;
tp2_buffer[iBarShift(_Symbol,PERIOD_CURRENT,iTime(_Symbol,_Period,0))] = tp2;
sl1_buffer[iBarShift(_Symbol,PERIOD_CURRENT,iTime(_Symbol,_Period,0))] = sl1;
sl2_buffer[iBarShift(_Symbol,PERIOD_CURRENT,iTime(_Symbol,_Period,0))] = sl2;

This looks like it could be a bit simplified.