Forum

Fibonacci Levels:

hello, maybe my question is too basic for a lot of you guys, and for that i apologize. but this is the first time that i want to work with fibonacci lines. i have created the code to import Fibonacci retrecment lines into my EA and it works. but how can i return the value of the fibo levels? for

difference of Tick and point

hello, i apologize if this question is too elementry for some of you. i have resently found out that Tick and Point are different. and i can not modify my order if it is not more than a Tick. (i get error 1 , for not doing that currently) in mql5 we can call TickSize() to get the size of the Tick in

how to find maximum value of an indicator in Limited number of Bars

hello, i know how to return the value of an indicator in a Bar that we know the shift number of it. but what if we dont have the shift number. for example: i want to find the highest amount of Standard Deviation in the last 20 bars. how do i do that? if it was an indicator like Moving Average we

invalid Ticket and invalid Price error, and it dose not make sense

hello i have developed an EA that use to work well. but since almost a week ago when it wants to close orders, it gives me invalid Ticket and invalid Price error. the strange part is that right after the OrderClose a put an Alert to see if the Ticket or the Price is Wrong. but it is right. Alert

how to return an uncommon time frame for an Indicator

hello, I need the data of Stochastic indicator in time frame of 2 or 3 minutes in MT4. problem is that in MT4 these time frames dose not exist. my question is this: can i create the data of 2 minutes by doubling the period of 1 minute Indicator? i tested this and it did not work. i do not think it

How to return Time of an Order

Hello, I have a Simple Question that may seem elementry to you. How do i wright a Line of code that shows me the Time of Opening of an Order? i know about the time Operators, but they all can return the time of a Bar, not time of an Order Opening. even when i use TimeCurrent() in the Function of

how to find Values of pitchfork

hello, I am writing an EA that uses pitchfork. the higher and lower Lines for interring and the middle Line for Exiting position. as you know unlike Fibo Lines that are flat and the price of them is set in the EA, pitchfork is not flat. it is always upward or downward. problem is how can i wright in

teoretical question about Indicators

Hello, I have a question about the indicators. this is a Normal format of an indicator like MACD: BarZero=iMACD(NULL,1,12,26,9,PRICE_CLOSE,MODE_MAIN,0) this is for price Close of the current Bar (Bar Zero) of MACD. problem is when we are talking about the bar zero, that means the close price is not

correct this simple code if you can

hello, I have a very simple code. i do not know why it dose not work. the " ResistanceOnexmt " and " ResistanceOnexpt " are prices and they are 5 points above and under one of the Resistance Lines, and " PriceBID " is SYMBOL_BID . all these variables are global in client terminal and refreshed just

importing Data from Calendar Automaticly

Hello my friends. I want to add a news part to my EA. for EA to Automaticly import the time of the News from an Online Calendar. like the Online Calendar of MQL website. and I want my EA to stop Trading 2 minutes before and after every important News. I know This is not an original Idea, and I have