Forum

As working, Save Objects,Text on the Chart . Prevent from Losing items Due to a Unexpected crash of PC.

MT4 Platform The Mt4 Platform automatically saves objects,Indicators,Text on the chart when it is closed. When my PC Closes unexpectedly/Crashes, it doesn't save the objects,Lines,Indicators,Text on the chart. How can I save the things I have put on the chart eg; objects,Lines,Indicators,Text on

How to Extract from a String

I have date in CSV file with the Date formatted as: month /day /year . How can I extract the month / day / year ( 04/ 23/ 2015 ) from the String ? I can't use anything that converts it to Datetime otherwise it becomes day/month/year format. Thanks

Checking for Price multiples of 20 points to Pyramid trade

I would like to Enter the trade and then have the 1st Pyramid order occur at the next Bid with a multiple of 20pips. Example: Entry 1.3315 then (Pyramid at next Bid with 20pip multiple after entry) 1st Pyramid occurs at 1.3320 (5 Pips from Entry in this example , but varies depending on when the

Store Array Data or Static Data, In the event Terminal shuts down

When using arrays or Static variables which are calculating values needed to be kept for processing in an EA, Is there away to constantly back up those values calculated somewhere so that if the MT4 Terminal is unexpectedly closed the EA can retrieve those values ? Any links where I can read more on

Using the Metaeditor 5.00 Build 914 Compilers "Start Profiling"

I am looking for where I can find some information about "Start Profiling " button on Metaeditor, what its does/purpose is for debugging ? I have ran it and it seems to give statistic, Is it showing yhe efficiency of the code ? Any explanations as well would be helpful . Thanks

UAC and MT4 600 and above with Wind 7

I have always installed MT4 509 and below in ( C:/ MetaTrader-Broker ) to avoid issues with UAC in windows 7, Does the MT4600++ cause UAC issues if it is installed in Program files ? Thanks

Sum of pips for open trades

for(int otsb=OrdersTotal()-1;otsb>=0;otsb--) //Check through open orders { if(OrderSelect(otsb,SELECT_BY_POS,MODE_TRADES)==true) { if(OrderType()==OP_SELL) // if(OrderMagicNumber()==magicnumber) { sell++;

Ea works in DEMO trading , But Strategy tester does not

I have a Ea which I can run in our Demo account and it buys and sells with NO issues. when I try to run it in the Stategy Tester, The chart shows " Waiting for Update", next message, "MetaTrader has stopped working". I have checked : 1/Mt4 "IS not in Program files", So NOT UAC issue. 2/ The .ex4 and

Strategy Tester -Question

In strategy tester/expert Properties/"inputs Tab", Where can I find information about "Step" and "Stop" columns ? I am using MT4 Build Version 4.00 Build 509. Thanks

What Code Doesn't work in Strategy tester

I am using StringConcatenate converted to a datetime variable for open and close times as a filter for when trades can be opened. Does it work in strategy tester ? I also am using a cycle to check profitable orders in Account History, Does this work in Strategy tester ? I haven't been able to get