buying and selling at the same time

buying and selling at the same time
Download ALL MT4 experts (885)
YouTube Video Thumbnail



Similar MetaTrader Tools

buying and selling at the same time

Info

The buying and selling at the same time is a Expert Advisor for MetaTrader 4 that let's say that a trader enters the market with a buy and sell active when a currency is at a level of, say, 100. the price then moves to 200.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.


How to Install and Use buying and selling at the same time

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

let's say that a trader enters the market with a buy and sell active when a currency is at a level of, say, 100.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.

Description & Settings

Related: simple continuous trend-following strategy for buying and selling based on predefined conditions - another powerful expert for MetaTrader 4 traders.


Also recommended: daily target, max daily losses with magic number - similar expert with strong performance on MetaTrader 4.

let's say that a trader enters the market with a buy and sell active when a currency is at a level of, say, 100. the price then moves to 200. the buy will then be positive by 100 and the sell will be negative by 100. at this point we start breaking trading rules. we cash in our positive buy and the gain of 100 goes to our account. the sell is now carrying a loss of -100.
the grid system requires one to make sure that cash in on any movement in the market. to do this, one would again enter into a buy and a sell transaction. now, for convenience, let's assume that the price moves back to level 100.
the second sell has now gone positive by 100 and the second buy is carrying a loss of -100. according to the rules, one would cash the sell in and another 100 will be added to your account. that brings the total cashed in at this point to 200.
now the first sell that remained active has moved from level 200 where it was -100 to level 100 where it is now breaking even.
the 4 transactions added together now magically show a gain: 1st buy cashed in +100, 2nd sell cashed in +100, 1st sell now breaking even and the 2nd buy is -100. this gives an overall a gain of 100 in total. we can liquidate all the transactions and have some champagne.
there are many, many other market movements that turn this strange "buy and sell at the same time" activity into gains.

You may also like: simple check open orders filter boolean function for expert advisors - excellent alternative for expert users on MetaTrader 4.

Source Code

#property copyright "robotfx"
#property link "https://robotfx.org"
#property version   "1.00"
#property strict
double            minlot,
maxlot,
lotstep,
stoplevel,
tickvalue,
spread;

.......

Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.