Basket Robots | MT4 EA Download - MetaTrader 4 Resources
This post will be an open source project dedicated to trading basket offline charts.
It was from a robotics lab project because the basket was too big to fit in the lab.
The initial version will be manual overdrive, meaning trading decisions are made by traders rather than robots.
Therefore, the robot will only act as a basket manager, allowing trading on the basket offline chart to be as close as possible to a normal online chart.
The next version will provide fully automated options for bots to trade/exit based on built-in strategies.
Copy files:
M1 historical data:
- Make sure you have "enough" historical data for each pair of M1 to use in each basket you create
- M1 historical data can be refreshed by opening each pair on the M1 timeframe, zooming out to the maximum, scrolling back as far as MT4 allows, and then refreshing the chart by pressing the right mouse button and selecting Refresh from the popup menu.
create basket
- Place Create_Bastet_Script_xx on the chart of your choice on the M1 timeframe
- Enter the required information and press OK:
- Basket Name: This is a user-defined basket name.
- Maximum 12 characters
- Examples: USDBSKT, #USD#, XYZ01, #A1#, ENRGY, HITECH, etc.
- Time range name: The time range used to create the shopping basket offline chart (i.e. M15, H1, H4, etc.)
- Basket Pairs: Here you can define pairs of basket components. Use the exact currency pair name as shown in the market quotes. Correspondences should be separated by commas
- Opposite direction weight:
- If you want the price of the basket to increase when the price of the currency pair increases, the direction should be "positive"; if you want the price of the basket to decrease when the price of the currency pair decreases, the direction should be "negative" and vice versa.
- Weight : can simply use 1 (discussed later)
- Basket Name: This is a user-defined basket name.
- The script will display an alert with the created basket name/time range
- Go to File > Open Offline > and select the Basket Plot you created
Run the robot
- Place the robot Basket_Manager_xx.ex4 on the open offline basket chart
- Happy shopping!
Shopping Basket Manager offers:
- market order
- Buy(3)
- Sell order(3)
- Pending orders
- Buy Stop Order(2)
- Stop Loss Sell Order(2)
- Limit Buy Order(2)
- Limit Sell Order(2)
- Draggable Stop Loss and Take Profit lines are available for all orders
- You can make trading decisions using your favorite strategies/indicators on offline charts
- You can trade multiple basket charts on the same account. Just make sure to specify a different magic number for each robot instance.
- The robot will add 2 digits to the magic number entered in order to differentiate between different basket orders. For example, if you set the magic number to 999, the first buy basket order will have an internal magic number of 99901, the first sell basket order will have an internal magic number of 99911, and so on. So use a magic number of 3 to 5 digits to allow room for the extra 2 digits added by the robot.
- Once a market order is created, its button will display the current P&L of the underlying actual order set. You can turn it off by pressing the button that shows profit and loss.
- The current profit and loss of all market orders will be displayed on the green button. You can close all orders by pressing this button.
- Once a pending order is triggered, it will be converted to a market order (as long as there is room).
- ....to be continued
Basket tools (updated):
- Basket creation script:
- Version 2 (template options). Post #88.
- Version 3 (multiplication instead of summation) Post #160.
- Basket Manager EA:
- Version 2 (final version) Post #84.
- Version 3 (final version) Post #309.
screenshot
greeting,
Khalil Abkewiak
Attachment to original post (4)
📦 Summary of post attachments (40)
Below are all the files (40) shared in the reply.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •