Forum

using symbols other than metatrader predefined symbol

Hi I want to write an indicator. But I do not want to use predefined symbols. for example as you see in the definition of iMA indicator: double iMA ( string symbol , // symbol int timeframe , // timeframe int ma_period , // MA averaging

use indicator in a multi symbol or hybrid symbol expert

Hi I want to use mql4 indicators for a symbol that I have defined myself. For example I want an indicator for a new symbol like: (EURUSD-EURJPY) or (EURUSD/EURJPY) or (EURUSD+2*EURJPY) something like what tradingview website does. Indicators in mql4 can be used only for symbols defined in metatrader

Current price on the chart

What is the current price shown on the chart is it bid price or ask price. Or an average of these two? I have an expert that do a job when the current price reach a predefined price how to define the current price? For example I open a long position And I use ask price to open this position Do I

show indicators

Hi I have an expert that works with ichimoko and moving averages .. I want to see these indicators on the chart. Is there any way to call them to be shown on the chart without coding too much... for example I want a simple moving averge with default values to be shown after I initiate my expert

Different SHIFT Number for different currency pairs

Hi I have an expert that works with candles in the past for two or three currency pairs . For example I want to know the open price for GBPJPY for the candle of 2019.01.01 11:02. using the code below:(FirstPair and some_date are defined in the code): int shift= iBarShift (FirstPair, PERIOD_M1

reading data from file without removing expert

I have an expert that write some data into a file . But I can not open the file or read data from the file via another expert until I remove expert. I see a message that tells me the file is using by another program. Is there a way to read data or open file without need to close the expert

Different backtesting result

Why do I have gain different results when backtesting an EA on two different systems? Same Ea, same setting, same broker, same starting and end date

Why this always returns false?

Hello I wrote a boolean function . This code always returns false. I wrote some print order to check the program. I have the value of the deviation and the function prints the calculated value of Parameter2. Most of times it meets the conditions (Parameter2<=-deviation) or (Parameter2>=deviation)

Decode EA

I have written an expert advisor. I want to give it to a trader. I‌s it possible that someone decodes the EX4 files. V‌ersion of meta editor : 5 buld 1526

Prevent code from Calling OnTick()

I want to add the expiry check in the OnInit() section and if returns false , I want to prevent it from going ahead. And I want to stop the code. ‌‌I have written this: int OnInit () { //--- if (expirationdate() != true ) { Alert ( "Expired!!!" ); return ( 0 ); } } ‌I wrote the function: bool