Forum

Select last orderType

I coded this ea but there is something wrong that I can not solve. The EA should not place an order buy if the last order is Buy and it should not place a sell order if the Last orderType is Sell. Sometes it is ok but if there are many open order so there is something wrong(it place same order

iteration(code too large)

Please help me to solve my code, it is too large, I want to use 'i iteration' but I do not know how can I use it in my code This is my code: void CheckForOpen() { int res; //////////////////////////////////////// bool SellCandle1= iOpen ( Symbol (), Period (), 1 )- iClose ( Symbol ()

mq5-placing limit order

Hello, I have a problem with my source code The EA should place a limit order once it finds a good entry even if there is still an open limit order However, it does not work like that, please help me to fix it(if I remove the OrderTolatl()==0, it works but it places many orders) Thanks in advance