Forum

how do I Run a script during the last ea run ....

I need to run a script during the last run of an ea in the strategy tester . The program should loop through start and during the last run of the start program the script should be executed. If I could predetermine the number of times the start program will run I could create a counter and execute

I figured it out ... Had to declare the array size ....

I need to write each row in File 3 (below) to a new file (File 4) if the Column 2 value in the row from File 3 is found in Column 4 in File 1 or File 2. The first row from File 3 will not be placed in File 4 because Black is not in Column 4 in File 1 or File 2. All other rows in File 3 will be

How do i calculate the number of times start will run in the strategy tester...

Is there anyway to predetermine the number of times start will run using the strategy tester on a set period of time such as 4 / 11 / 2012 to 4 / 12 / 2012 . If the period is M1 how many times will start be executed. If the period is M15 how would I predetermine the number of times start() will

OrderProfit() question ...

I am backtesting the following script. The return value for orderprofit is 0 and it should not be. What am I doing wrong. int ticket= OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-.0011,Ask+.0014); // Scenario 1 OrderSelect(ticket, SELECT_BY_TICKET); if(OrderSelect(ticket, SELECT_BY_TICKET)==true) {

I am having trouble with the ArrayBsearch function ...

Here is my script code. It does not return the proper values. //+------------------------------------------------------------------+ //| Test 2.mq4 | //| Copyright 2012, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+