Forum

Moving Average Pullback EA

Does anyone have a basic moving average pullback EA that I could use as the basis for coding a new EA? The functionality I am looking for is: - Price passes through a moving average, and then a trade is entered once price moves back and touches the moving average again. Thanks in advance, Josh

EA Modify External Variables of Another EA?

Is it possible for one EA to modify the External Variables of another EA? If so how could this potential be done? Many thanks

EA keeps trading multiple times per bar

I am having issue with the attached EA trading multiple times per bar. I only want it to place max one trade per bar. I have tried to edit the code but it still seems not to work. Please could someone have a look and tell me where I have gone wrong? Many thanks

Issue with TotalOrdersCount

I want my EA to only place up to 3 trades, and only once 1 manual trade is already open. Currently I have set up an external variable of TotalTrades and set this to 3. This is limiting the max trades to 3. I can't seem to work out how to set the requirement of 1 trade already open though. I

How to check if all previous open trades for pair are in profit?

I am currently building an EA to automate part of my trading system. However, I am unsure how to program one of the criteria. I only want the EA to place trades when all current open orders for the currency pair are all in profit. These could be both manual trades and EA placed trades. I believe I

Little help needed with EA code

Below is an EA that I am using as a template to build an EA for a system that I use. I am not an experienced programmer and I am hoping this project will allow me to build my knowledge of mql4. The below code is working well however I am stuck on one small part. This EA will currently only have one