Forum

How to use iMaOnArray function in EA system?

I have written my own indicator. It uses iMaOnArray function and works properly. When I transform it into an EA system and run testing, everything seems fine except no trades occur. And no error was reported. I looked through the forum and saw many EA systems. Nearly none uses iMaOnArray function. I

About icustom function

I wonder if the following could be realized with icustom function . I have written my own indicator. I'd like to leave the timeframes unspecified as a and b. And then in my EA, I use the icustom function to give a and b different numbers and get results from the indicator. Can anybody tell me if

About cycle control, help!

I wrote the following to close orders. Actually I set two different situations to close long positions. The structure is as follows: for ( int i = 0 ; i < OrdersTotal () ; i ++ ) { if ( OrderSelect ( i , SELECT_BY_POS , MODE_TRADES ) == false ) break ; if ( OrderType () == OP_BUY ) if ( ******* )

How to set the close price of bar[2] as stoploss price when opening an order?

I designed my EA based on the M5 chart. I'd like to set the close price of bar[2] of the M15 CHART as the stoploss price when opening a position. How can I quote the price? Thanks

Can this be realized?

I'd like to set different closing conditions for two different orders. Is it possible to give different "marks" to the two order so the system can differentiate them? Thanks

I test my EA based on 5 min period chart, but

the result is that huge amount of trades occur and each of them was opened and closed within 1 min. What might caused the problem? I am driven crazy