Forum

EA weird behavior on DEMO account

Hi everyone! I'm fine tuning my EA (code attached) focusing just on placing SELL orders. When I run it on backtesting it executes EXACTLY has coded but when I run it on my demo account then it performs in a very weird way. To highlight this wrong behavior I'm also attaching a file to clarify

EA Backtesting - Inconsistencies

Hello everyone, I've written the attached EA with lot's of help from this forum for which I thank you all, and have started to backtest it and noted that orders (no matter the forex pair or timeframe) are opened and closed not according to the EA's coding. I'm attaching some .png to illustrate these

EA not closinng order as per programed logic!

Hello everyone! I'm starting to work on a simple strategy (just placing SHORTS) but cannot figure out why the EA is behaving as per attached picture . It is closing the SELL completely against the programmed logic. Your help is appreciated. Thanks in advance!! #property strict input string iNote_1

OrderSend / OrderClose Issue

Hello everyone! I've researched for days, including here, using the term "ordersend/orderclose not working". There are lots of questions/answers but I still cannot figure it out. I appreciate your help. I'm attaching 2 of the many attempts I've tried, with notes on the behavior of each of them

EA with SMAs not placing orders

Hello everyone! I'm starting to learn mt4 coding and working on an EA that is using iHighest and iLowest to plot these lines on the chart and I'm using these lines to calculate if the variable "Ranging" is either ZERO or ONE. This part of the code, to my knowledge, is working fine. The problem is

simple sma ea - not entering orders in correct position

Hello!! I'm initiating in programming in MT4 and as such starting with a very simple code using SMAs and simply trying to open a BUY and then closing it (code attached). But when I do backtesting (.png attached) [1] the order is being placed in the wrong position and [2] the order never closes

Simple sma ea - not placing orders!

Hello everyone, Going through the first steps of MQL4 programing and starting from something simple (code attached). Compiling shows 0 errors and no warnings. When I run it on the backtester (during 1 full month) it only places a single BUY order which it closes immediately after opening. I've tried

Help with compiler warning messages

Hello everyone, I'm very keen to start coding EAs for MT4 but because I''m not so much acquainted with the language I decided to follow a tutorial (by the way very good) and after following the instructions I came up with the attached code , but unfortunately I cannot manage to compile it. Lot's of