Forum

ObjectCreate() ObjTrend function only creates 1 trend drawing at the beginning.

for ( int i=pos; i>= 0 ;i--) { if (RSI_current_peak[i] != EMPTY_VALUE ) { int count = 0 ; for ( int k = i+ 4 ; k <= pos; k++ ) { if (RSI_current_peak[k] == EMPTY_VALUE ) { count = count+ 1 ;

MQL5 Symbolinfodouble mode tickvalue returns 100 for jpy pairs and 1.0 for other major pairs.

Hi guys really need help for this please. When i call SymnolInfoDouble(Symbol, SYMBOL_TRADE_TICK_VALUE ) i returns 100 for JPY apirs and 1.0 for other major pairs. My deposit is in USD. This code was running perfectly fine initially but after a few rounds of back testing from EA, it gives 1.0 and

Custom indicator values disappears after new tick forms

//+------------------------------------------------------------------+ //| renko.mq5 | //| Copyright 2020, MetaQuotes Software Corp. | //| https://www.mql5.com |

MT5 EA Icustom buffer value 0.0 help please

Hi guys, I've been stuck at this problem of Icustom in MT5 EA returning 0 values all the time. All i wanted is to call previous Bar value from a indicator buffer . The indicator data window shows accurate values but when called using Icustom in EA it returns all 0. Ive read and studied on using