Forum

Placing 2 indicators on same window

I want to code a combined indicator of ROC and Std Dev on same window. The problem is that since scale is different, the Sdt Dev appears "Squeezed". Is there a way to resolve this? In the attached file, I need the bottom one not the top one or one indicator on top of the other

Forex arbitrage engine

I am trying to develop forex arbitrage engine between 2 or more platforms. So far without successes. I do not know if my code is wrong or computer is not fast enough to handle the arbitrage in real time. Here is my 2 version of the code (timer is set to EventSetMillisecondTimer(1);

Error #130

I keep getting error #130. I understand that it has to do with sl or tp however I tried many combinations including atr based and nothing works: OrderSend Sell failed with error-130 symbol=EURTRY Lots=0.01 price=4.54817 sl=4.55851 tp=4.52749 OrderSend Sell failed with error-130 symbol=USDZAR

Extending MqlTick

Hello, I need to extend MqlTick struct to include additional info such as symbol and AccountPlatform. How can it be done

NamedPipes for metatrader 4

Hello, Can someone share a simple client/server named pipes or other simple solution to exchange data between two metatrader 4 terminals? I tested several scripts. None seem to work

Problem opening a file for write and strange behavior of TimeCurrent()

When using the following code in a script, it works fine: CurrentFileName = StringConcatenate(ReportsDir,"\\",title," ",TimeCurrent(),".html"); h = FileOpen(CurrentFileName, FILE_WRITE ); However, using the same code in an expert advisor result in an error opening the file. When removing the