Hello external variable like bool if i selected manually to one of 2 cases and from program inside i want to reset it as if i remove the EA and attach it again on chart external bool Run= true ; int start() { if (!Run) {
Hello I want to Disable / Enable Expert (Auto Trading) button programmably as if i click on it to enable or disable Expert according to condition. I am searching MQL4 code to do that but i did not find. Any help please
Hello I am thinking on making compare current price with greater or less than fixed points to enter transaction one time. Example: int Difference= (( OrderOpenPrice ()- OrderClosePrice ())/( Point )); if (Difference== 20 ) { OrderSend (
Hello i want to make EA that depends on magic number for closing a group of orders but, i want the first order to take its ticket as magic number and that order will be the master of 3 orders and the 3 orders will take the first magic number of the
Hello when i make backtest for EA and total pending orders and orders exceeded more than 200, broker gives error in journal 148 148 mean "The amount of open and pending orders has reached the limit set by the broker." so how to avoid that
Hello sometimes i see some EAs have return(-1), return(-2) and return(0) as we know it returns nothing, but what about return(-1) and return(-2)? as in the article here https://www.mql5.com/en/articles/1355
Hello I am trying to make daily pivot indicator to draw short vertical lines, but i want to draw it not using objectcreat() function but using indicator functions. Precisely, i want how to draw a vertical line between 2 candles stick and the lines
Hello I am building simple EA for showing Error messages ans numbers as test. The following codes open 2 orders buy and sell, the buy has a big lot 150 and that is so big and when i do it manually it gives me error not enough money , but when i do it
Hello I made EA for trading with day range and it is working as i want. It is depending on daily range and takes the high and the low of day candle, i attached the EA on 1H TF and takes the day H&L using below instruction, but i noticed
Hello I have noticed something it is weird to me. I made an EA and attached to the chart and run as good as i want, but when i change the timeframe to an other on the same chart, the EA start up its functions again. I know when the EA removed from
Hello I am making an EA to put pending orders a distance from current price, if the current price for EURUSD 1.38243 and buy limit at 1.38253 as example, i see the price on the platform flip very fast and passes the 1.38253 and does not activate the
Hello I want to count how many indicators on window 0 (not sub window), i searched for an instruction to show that, but i did not find. So any help to count no. of indicators on the main chart? Thanks
Hello When i am making a EA and back tested i found some times the condition not executed . example let us make simple EA if (Ask== 1.3097 ) { Comment ( "The Ask got the price" ); } So, when i backtested with Insta broker from 1/1/2013 until July