Forum

Last account balance

Hello, I'm blocking on a code. I wish the ea keeps in memory the last highest balance, here is my code but it does not work, can you help me? double highestbalance() { double highestbalance1= 1000 ; if ( AccountBalance() > (highestbalance1 )) highestbalance1 = AccountBalance();

Is it possible to import the buffer of a "Market" indicator ?

Hello, I want to use the data of a market indicator for an expert advisor, is it possible without the source file of the indicator

MT4 Coding Problem

Hello, can you tell me why this coding works: extern double high1= 1.256 ; double low1= 1.255 ; double high2=low1; double low2= 1.254 ; double high3=low2; double low3= 1.253 ; double high4=low3; double low4= 1.252 ; double

Cancel Order with Magic Number MT5 ( mq5 mql5 )

Hello, I'm blocking on a code. I wish to close an order with the number magic but it does not work, can you help me? void CancelOrder() { for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--) { if ( OrderGetInteger ( ORDER_MAGIC )==MagicNumber) {