Forum

Drawing horizontal line on the chart

Hi I am trying learning MQL5 programming . I would like to draw horizontal line on the chart swing high and swing low pick.( ie turning point on the chart ) and extend this line to the right of the chart. Is there any MQL5 function or a library I can use. or any other way. Please can some point me

How do capture or find out when StopOrder or ProfitTarget get trigger on order

Hi I am new and trying to learn programming Expert Advice. I have simple EA and it is running fine. eg ticket = OrderSend(_Symbol, OP_BUY, lots, Ask, 100, stopOrder, orderTarget, "Buy Order", 1,0, clrGreen); How do capture or find out when StopOrder or ProfitTarget get trigger on a given order. I

Resetting variable value after Stoploss or Profit Taken using EA

Hi I am very new to MQL4 programming and I am try to write Expert Advisor . Here is my simple EA using RSI. It is working fine and also put order. But have a ticket id, which I want to reset to 0 (Zero) after stopLoss or profitTaken. I am having a problem to reset ticket to 0. Here is the code

MACD not displaying MACD line

Hi I am using MT4 platform for Forex trading . I am new to MT4 and trading. I am trying to learn MACD indicator and using it on the chart in MT4. But when I insert MCAD on the chart, It only display signal line and bars, but it is not displaying MACD line. ie only have MACD with 1 lines and

Creating an Array of object, getting error

Hi Sorry asking simple question, I am very new and trying to learn MQL4 programming with MT4. I am trying to create an Array of objects. as shown below; But I a getting error and finding it difficult to fix. Please can someone help *** Thank you

How do I create constructor in my class

Hi I am very to MQL4 and I am a learner at the moment. I am creating a simple class as shown below. I would to add constructor in my class, so I can use to build object. I have this simple script, but getting error; #property strict void OnStart(){ CurrencyCount currencyCount1 =

How do I run Python script from MT4 Platform

Hi I am new to MT4 platform. I am Java Programmer for sometime and good with it. I would like to learn Python and use with MT4. Please can someone point me into right direction where I can find some examples and tutorials on this topic. I would like to go learn Algorithmic Trading and learn to write

How do I used CHashMap

Hi I am very new to MQL4 programming . But I am programming in another language. I an trying to learn CHashMap to store key/value pairs in my test. I show this example using CHashMap online CHashMap< string , int > d; d.Add( "one" , 1 ); d.Add( "two" , 2 ); d.Add( "three" , 3 ); When add

Changes Chart color globally

Hi I am very new MT5 Platform and trying to get use to it. How do I change or update chart property globally. eg if I change candle color, it take effect on all the charts i am using. Please any help. thank you ISH

How can I Synchronize two or more charts.

Hi I am very new to MT4 and would like to learn in details. I have three chart windows open, each chart with different time frame. I would like to synchronize all these three charts. So When I draw any indicator or trade line in one chart, I would like to appear on other two charts. Please can you