Forum

Alert on certain levels

Hi all, i'm trying to add alert to an indicator, but only on certain levels: if (Extend_Line) { for (i = 0 ; i < Maxbar; i++) { if (UpBuffer[i] > 0 ) { level = UpBuffer[i]; for (c = i; c > 0 ; c--) { if ((Open[c] > level && Close[c] < level)){

3 bar fractals, instead of 5

Hi all, I need to use the fractals indicator , but I need it to use 3 bar config - lower high, higher high, lower high and higher low, lower low, higher low. Is it possible be used this way, and if not, is there any way to achieve that ? 10x

Code not placing all pending orders and returns Error 130

Hi, i've managed to resolve partially my problem with the pending orders described in this post: https://www.mql5.com/en/forum/294301, but now the code returns Error 130 on prices that it should and shouldn't place an order and doesn't place all the orders with the given pip interval between them

Multiple Pending Orders EA Problem

Hi all, i'm having a tough time making my EA place stop orders only once at a given price. It places stop orders every tick which matches the price. I wanna be able to make multiple Buy stop and Sell Stops, but only one at a time. For example if there is a filled Buy stop order and another Buy