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
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
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
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
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
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
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
I have written an expert advisor . I want to give it to a trader. Is it possible that someone decodes the EX4 files. Version of meta editor : 5 buld 1526
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 (
Hello I placed a text object on chart But only a part of my text is shown on the chart. And it only occupies halp of the chart width. ObjectCreate (objname3, OBJ_LABEL , 0 , 0 , 0 ); ObjectSet (objname3, OBJPROP_XDISTANCE , x3);
Hello I want to know how to calculate the initial negative profit immediately after opening a position. Is it just a function of spread and lotsize? Or there are something else that must be considered//? Please tell me the formula for
I need a short code to add expiration date and time to my expert. void OnTick () { //1 if (!expire) { //2 expert body } //2 else message( "Expired" ); } //1 bool expire() { if expiration date reached return ( 1 ) else if exp date did not reached
I want to get the output result of a function and show it on the chart: ObjectCreate (pastaverage, OBJ_LABEL , 0 , 0 , 0 ); string value1= DoubleToStr (checkaverage(), 7 ); ObjectSetText (pastaverage, "Average
Hello I want to obtain the high price of the previous candles and calculate the average price . double average1() { //average1 start double highfirst[]; CopyHigh (FirstSymbol,timeframe, 0 , 50 ,highfirst); sum= 0 ; for ( int k= 0 ;k<=noofbars;k++)
Hi I wrote an expert to open two position at the same time. and close them when the total profit/loss of the two order reach the profit/koss target. User can enter the symbol names and type of two orders as input. I did this: input string