Forum

Problem with break

Hi I have got a problem in my code, so I cut and change part of it for my question; I need to get the last index of open buy or sell orders that already numbered in its comment. but when the same orders become more than 1, it doesn't return (return -1) its index, it seems break doesn't work and

Combination of checking Values in input

Hi I need to check the combination of my boolean functions which actually are situations that may happen in chart and are in extern. let you explain it by an example. I have 10 different functions that their names are OPT1, OPT2,.... OPT10. to check them I have to make groups of them, So I have to

SIGNAL alert!

Hi Is there anyway that meta trader sends open and close info email notification from a running SIGNAL

Double to int

How do I write this function without " possible loss of data due to type conversion" warning ? int S10; int StepIndex( int PosIndex) { if ( OrderSelect (PosIndex,SELECT_BY_POS,MODE_TRADES) == true ) S10 = NormalizeDouble (((Bid-OrderOpenPrice())/ 10 * Point ), 0 ); return

check the highest and lowest price live

hi i am new in mql4 an i need to make an EA that get the Max and Min price in a period of time and as it goes. for example now it is 12:00 o'clock, and i need to check the highest price between 14:00 and 16:00 and if we would be in 15:00 , comment the max price in every tick . i write this, but it

If it is not an integer

HI How do I write that an variable is (or not) an integer, or my integer variable does not have value

functin errors

Hi I get 2 errors on this function #property strict #import "stdlib.ex4" #import void CloseLongTicket() { for ( int i= OrdersTotal ()- 1 ;i>= 0 ;i--) if ( OrderSelect (i,SELECT_BY_POS,MODE_TRADES) == true ) { if (OrderType() == OP_BUY)