Hedged Grid Scalper Gold
- Experts
- Versione: 1.0
- Attivazioni: 5
Hedged Grid Scalper Gold is an automated Expert Advisor for gold (XAUUSD) on the one-minute chart. It is made for cent accounts. It uses two methods at the same time on a hedging account.
Range method: the Expert Advisor places a limit order that follows the price. When this order opens, it adds more limit orders at a fixed distance. Each new order has a slightly larger volume (0.01, 0.02, 0.03 and so on). All orders on one side close together with one common take profit when the price comes back.
Trend method: the Expert Advisor places stop orders above and below the price. These orders follow the price. They open when the price breaks out, and they partly balance the grid during strong moves.
All positions are managed as one group. When the total profit of the group reaches the target, the Expert Advisor closes all positions and pending orders. Then a new cycle starts.
How to use
1. Attach the Expert Advisor to a gold chart with the one-minute timeframe.
2. Allow algorithmic trading in the terminal and in the Expert Advisor settings.
3. Press the green START button on the chart. The button changes to a red STOP button.
4. Press STOP to close all positions and pending orders of the Expert Advisor.
If the terminal or the computer restarts, the Expert Advisor continues the strategy by itself.
Requirements
- A cent account that allows hedging. Netting accounts are not supported.
- The gold symbol must have a contract size of 1 ounce per lot. Then 0.01 lot is 0.01 ounce. You can see the contract size in the symbol specification.
- Recommended capital: about 1.6 to 1.8 million US cents (16,000 to 18,000 US dollars) for each 0.01 initial lot.
- The tests used a leverage of 1:500. A lower leverage needs more free margin.
- A broker with a low spread and a remote server that runs all the time are recommended. The grid orders stay on the broker's server, but the orders that follow the price need a stable connection.
Standard accounts
On a standard account, the gold contract is usually 100 ounces per lot. Then 0.01 lot is 1 ounce. This is 100 times more risk. The same settings would need about 1.6 to 1.8 million US dollars. For this reason, this Expert Advisor is not suitable for standard accounts. Some cent accounts also use 100 ounces per lot. They are not suitable either. If the contract size is larger than 1, the Expert Advisor writes a warning in the Experts log.
Parameters
Trading
- Initial lot size: the volume of the first order on each side. Default: 0.01.
- Grid step between limit orders: the price distance between grid levels. Default: 1.12.
- Distance of trend stop orders: the price distance of the stop orders. Default: 1.12.
- Take profit: the profit target as a price distance. Default: 3.75.
- Max grid levels per side: a limit on the number of grid levels. Default: 500.
Control
- Stop trading after the basket hits take profit: if true, the Expert Advisor stops after the first closed group. Default: false.
- Auto-resume after terminal restart: the strategy continues after a restart. Default: true.
- Emergency close all if margin level falls below: if the margin level falls below this value, the Expert Advisor closes all positions before the broker does it. Zero turns it off. Default: 60 percent.
Other symbols
- Scale distances on symbols other than gold: the distances change in proportion to the price on other symbols.
- Gold reference price used for scaling. Default: 3300.
The default values are the ones used in our tests on gold. The Expert Advisor can run on other symbols, but the settings are not adjusted for them.
Protections
- The volume of each order follows the minimum, maximum and step of the broker.
- Before it places an order, the Expert Advisor checks that the free margin will be enough when the price reaches that order. If the margin is low, it removes the pending orders that are farthest from the price.
- It does not send orders while the market is closed.
- It respects the minimum distances that the broker requires for orders and take profit levels.
Risk warning
This Expert Advisor uses a grid with increasing volume. It does not use a stop loss. During a strong move in one direction, the open loss can be very large. With too little capital, the broker can close the account positions. Results from the past and from tests on historical data do not guarantee future results. Use only money that you can afford to lose. Use a cent account with the recommended capital. Test the Expert Advisor on a demo account first. You can also run the free demo version in the Strategy Tester with the data of your broker before you buy or rent it.
Range method: the Expert Advisor places a limit order that follows the price. When this order opens, it adds more limit orders at a fixed distance. Each new order has a slightly larger volume (0.01, 0.02, 0.03 and so on). All orders on one side close together with one common take profit when the price comes back.
Trend method: the Expert Advisor places stop orders above and below the price. These orders follow the price. They open when the price breaks out, and they partly balance the grid during strong moves.
All positions are managed as one group. When the total profit of the group reaches the target, the Expert Advisor closes all positions and pending orders. Then a new cycle starts.
How to use
1. Attach the Expert Advisor to a gold chart with the one-minute timeframe.
2. Allow algorithmic trading in the terminal and in the Expert Advisor settings.
3. Press the green START button on the chart. The button changes to a red STOP button.
4. Press STOP to close all positions and pending orders of the Expert Advisor.
If the terminal or the computer restarts, the Expert Advisor continues the strategy by itself.
Requirements
- A cent account that allows hedging. Netting accounts are not supported.
- The gold symbol must have a contract size of 1 ounce per lot. Then 0.01 lot is 0.01 ounce. You can see the contract size in the symbol specification.
- Recommended capital: about 1.6 to 1.8 million US cents (16,000 to 18,000 US dollars) for each 0.01 initial lot.
- The tests used a leverage of 1:500. A lower leverage needs more free margin.
- A broker with a low spread and a remote server that runs all the time are recommended. The grid orders stay on the broker's server, but the orders that follow the price need a stable connection.
Standard accounts
On a standard account, the gold contract is usually 100 ounces per lot. Then 0.01 lot is 1 ounce. This is 100 times more risk. The same settings would need about 1.6 to 1.8 million US dollars. For this reason, this Expert Advisor is not suitable for standard accounts. Some cent accounts also use 100 ounces per lot. They are not suitable either. If the contract size is larger than 1, the Expert Advisor writes a warning in the Experts log.
Parameters
Trading
- Initial lot size: the volume of the first order on each side. Default: 0.01.
- Grid step between limit orders: the price distance between grid levels. Default: 1.12.
- Distance of trend stop orders: the price distance of the stop orders. Default: 1.12.
- Take profit: the profit target as a price distance. Default: 3.75.
- Max grid levels per side: a limit on the number of grid levels. Default: 500.
Control
- Stop trading after the basket hits take profit: if true, the Expert Advisor stops after the first closed group. Default: false.
- Auto-resume after terminal restart: the strategy continues after a restart. Default: true.
- Emergency close all if margin level falls below: if the margin level falls below this value, the Expert Advisor closes all positions before the broker does it. Zero turns it off. Default: 60 percent.
Other symbols
- Scale distances on symbols other than gold: the distances change in proportion to the price on other symbols.
- Gold reference price used for scaling. Default: 3300.
The default values are the ones used in our tests on gold. The Expert Advisor can run on other symbols, but the settings are not adjusted for them.
Protections
- The volume of each order follows the minimum, maximum and step of the broker.
- Before it places an order, the Expert Advisor checks that the free margin will be enough when the price reaches that order. If the margin is low, it removes the pending orders that are farthest from the price.
- It does not send orders while the market is closed.
- It respects the minimum distances that the broker requires for orders and take profit levels.
Risk warning
This Expert Advisor uses a grid with increasing volume. It does not use a stop loss. During a strong move in one direction, the open loss can be very large. With too little capital, the broker can close the account positions. Results from the past and from tests on historical data do not guarantee future results. Use only money that you can afford to lose. Use a cent account with the recommended capital. Test the Expert Advisor on a demo account first. You can also run the free demo version in the Strategy Tester with the data of your broker before you buy or rent it.

