Forum

How to count string values, how many times are they repeated?

I have a list of symbols. Pairs = "EURUSD,GBPUSD,GBPUSD,USDCHF,USDJPY" ; I want to know how many times "USD" is repeated in this list. Pairs = "EUR USD ,GBP USD ,GBP USD , USD CHF, USD JPY" ; I want to know this for others as well, for example for "GBP" and "EUR"

MQL4 CandleStick Pattern

Can anyone help me with the correct formula for detecting Three White Soldiers and Three Black Crows? I've tried several different patterns and I can't detect them every time. Three White Soldiers: iClose ( NULL , 0 , 1 )> iClose ( NULL , 0 , 2 ) && iClose ( NULL , 0 , 2 )> iClose ( NULL , 0 , 3 )

Need help with "for" loop and "#property strict"

If I enable #property strict, then the loop behaves differently. #property copyright "Copyright 2021, MetaQuotes Software Corp." #property link " https://www.mql5.com " #property version "1.00" #property strict double FastUp[]; double FastDn[];

How To Distinct OrderSymbol() In MQL4

How to distinct OrderSymbol() in MQL4? I have data: Symbol | Type | Size GBPUSD | Buy | 1.5 GBPUSD | Buy | 0.5 EURUSD | Sell | 1 USDJPY | Buy | 2 I want the result: GBPUSD EURUSD USDJY found one way on the internet but am i interested in any other idea? Thanks