Codes

Check Last Closed Trade (Profit / Type / Symbol etc.) pour MetaTrader 5

Select the last closed deal (trade) to further work

Code blocks for "Counters" like Count "X" time and pass pour MetaTrader 5

Here are some examples of codes for set counters based on "Count"

A Code block to detect A "New Candle/Bar" using bars history (very effective way) pour MetaTrader 5

If you only want to execute your code blocks "only once per bar" it's important to check if there is new bar arrived or not

Code Block for "Trailing Stop" based on current market price. (Ask / Bid) pour MetaTrader 5

This code block loops through all opened position and do trailing based on Ask and Bid prices

Simple Code for Detect A "New Bar or New Candle " Received pour MetaTrader 5

This code block detects a New Bar or a New Candle when it has received