Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

ATR_Momentum_Colour - MetaTrader 5 Script - MT4/MT5 Resource

author EAcpu | 4 reads | 0 comments |

ATR_Momentum_Colour - indicator for MetaTrader 5

ATR_Momentum_Colour - indicator for MetaTrader 5

A combination of indicators familiar to many novice traders

ATR_Momentum_Colour - indicator for MetaTrader 5

The EA only trades buy positions and does not use Sl and TP.

The indicator implements a non-linear smoothing algorithm

This function performs the main logic of opening a trade. It calculates the opening price, take profit level and stop loss based on the trading symbol information and parameters provided by the user. Prepare a trading request (MqlTradeRequest) that contains necessary information, such as trading symbol, trading volume, order type, slippage, comments, magic number, etc. Call the OrderSend function to send a transaction request and obtain the result. SetTypeFillingBySymbol function: Determines the order fulfillment type (Fill or Cancel, Immediate or Cancel, or Return) based on the tag's fulfillment policy. GetMinTradeLevel function: Calculates the minimum trading level based on the freeze level and stop level of the trading symbol. Adjust the minimum level to ensure it is within certain limits and return results.

JSON library supporting MQL4/MQL5


Attachment download

📎 ATR_Momentum_Color.mq5 (9.46 KB)

📎 ATR_Momentum_Color_2.mq5 (8.26 KB)

Source: MQL5 #66064

Verification code Refresh