Forum

erorr code

Hello friends I want to write a simple indicator as follows According to the close price of the week and day Or any time the amount of ATR of the same time Draw a line above and below the chart as follows high_line= close price+ ATR low_line = close price - ATR for mt4 #property

opening one position in everey trend by EA

this expert opens up a lot of positions in the position. i want to just open one position in up trend or a down trend thank you if (NumBuy== 0 &&NumSell== 0 ) { // for SELL if ( v1!= EMPTY_VALUE && v0== EMPTY_VALUE && v2== EMPTY_VALUE && v3== EMPTY_VALUE && Ask <v1 && Bid< v1)

EA can not take position

i wrote an EA but this simple EA cannot take the position Please help me. THANKS #property copyright "Copyright 2018, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict extern double Lot = 0.01 ; extern int Stoploss = 10 ; extern int