Pyrogrid is an Expert Advisor that can be used both for fully automatic trading and for working with existing trades (market and pending orders) opened manually or by another expert. The Expert Advisor applies the pyramid strategy when the market goes in a favorable direction, and also applies the grid when the market goes against you. If the auto-trading parameter is set to true, the Expert Advisor opens trades against the trend when the market reaches its extremes (determined by the RSI).
If the market moves in the direction of your first trade, the Pyrogrid EA will open additional trades (using stop orders) to increase profits.
After opening three trades, the expert Advisor will move the stop loss of all trades to the level of the previous open trade. Thus, three trades will reach the breakeven level, and the pyramid will grow, opening more trades.
If the market moves against you, Pyrogrid will continue to open trades (using limit orders), the size of each trade is larger than the previous one.
All trades will be closed at the same time when the total profit is reached or when the average number of pips of profit reaches a certain level
- Blue line: Shows the average opening price of all trades
- Red line: Shows the stop loss of all trades
- Yellow line: Shows the take profit of trades
[spoiler title=”Read More…”]
Manual trades: (market and pending orders)
It is recommended to use the Expert Advisor in this way
It is recommended to use the Expert Advisor in this way
- Run the Expert Advisor on the chart of the instrument you are going to trade.
- Set up the grid and pyramid
- Set the use_external_manual_trade parameter to true
- Do not run on the same currency more than once if you are going to use trades opened manually
With another expert:
- Place both Expert Advisors on the chart of the instrument you are going to trade
- Set up the grid and pyramid
- Set the use_external_manual_trade parameter to true
- Make sure that both Expert Advisors use the same magic number
- The external Expert Advisor must not open additional trades, close trades, or change the stop loss / take profit
Automatic mode:
- Run the Expert Advisor on the chart of the instrument you are going to trade.
- Set up the grid and pyramid
- Set the auto_trading parameter to true.
- The Expert Advisor will open trades that are opposite to the trend when the market is at the extreme.
(To buy at the close of the RSI with a period of 14 below 30 and on the prod, if the RSI with a period of 14 closes above 70)
- You can place multiple pending orders with a single magic number. They will be deleted as soon as the first trade is triggered.
- You can run multiple instances of the Expert Advisor with different magic numbers on the same tool. It does not work in this mode with trades opened manually.
- Experiment with the grid / pyramid settings using different settings according to the instrument, market conditions, goals, exit strategies.
- Use caution when using this Expert Advisor, as grid strategies can be risky.
- pyramid_trades_gap: distance between trades in the pyramid
- max_pyramid_trades: the number of additional trades in the pyramid.
- grid_trade_gap: distance between trades in the grid
- multiplier: multiplier for deals in the grid
- minutes_between_trades: pause between trades in the grid
- profit_calculation: a method for calculating the total profit for transactions in the grid. 0:average points, 1:exact amount
- net_take_profit_pips: if the profit calculation method is 0, trades will close when the specified average number of points is reached.
- net_take_profit_amount: if the method is 1, the trades will close at this profit amount.
- Max_Orders : maximum number of transactions
- enable_max_loss: close trades when the maximum floating loss is reached
- max_loss_percent: the unprofitable percentage of the balance at which all trades will be closed
- fixed_spread: if true, the spread is fixed
- spread: spread in pips if fixed_spread = true
- commission_in_pips: broker’s commission in pips
- use_external_ea: true if the Expert Advisor should work with trades opened by other experts.
- use_external_manual_trade: true if the EA must work with manually opened trades.
- auto_trading: if true, the EA will open trades automatically based on the RSI
- Lot : the lot size of the first trade
- Auto_Lot: if true, the lot size will be calculated as a percentage of the balance
- Lot_Percents: Percentage of the balance if Auto Lot = true
- Magic: Magic number adviser
[/spoiler]