1. Welcome to the #1 Gambling Community with the best minds across the entire gambling spectrum. REGISTER NOW!
  2. Have a gambling question?

    Post it here and our gambling experts will answer it!
    Dismiss Notice

Forex Basket Robots

Discussion in 'Forex Forum' started by abokwaik, Mar 8, 2015.

  1. abokwaik

    abokwaik Guest

    Attachment 1626270

    This thread will be dedicated to trading Basket(s) off-line charts.
    It was pulled from the Robot Lab Project as the basket was too big to fit in the lab. :rofl:

    The initial version will be a Manual Overdrive, which means that trading decisions are made by the trader not the robot.
    So the robot will act only as a basket manager allowing to trade the basket off-line chart as close as possible to a normal on-line chart.

    Next versions will provide Fully Automatic options, so that the Robot will trade/exit according to built-in strategies.

    Copying Files:

    1. Copy Create_Basket_Script_01.ex4 into ...\MQL4\Scripts\ folder.
    2. Copy Basket_Manager_02.ex4 into ...\MQL4\Experts\ folder.

    M1 Historical Data:

    1. Make sure that you have “enough” M1 history data for each pair that will be used in the each basket you create
    2. M1 history data can be refreshed by opening each pair on M1 time frame, zoom out to the maximum, scroll back as much as MT4 allows you to, and Refresh the chart by pressing Mouse Right Click and selecting Refresh from the pop up menu.

    Creating the Basket

    1. Place Create_Bastet_Script_01 on a chart of your choice on M1 time frame
    2. Input the required information and Press OK:
      1. Basket Name : This is a user defined name for the basket.
        1. Maximum 12 characters
        2. Examples: USDBSKT,#USD#,XYZ01,##A1,ENRGY,HITE CH etc

    3. Time Frame Name: The time frame to be used to create the Offline Chart for the Basket (i.e. M15, H1, H4 etc)
    4. Basket Pairs: Here you define the Basket Component Pairs. Use Exact Pair Name as it appears in Market Watch. Pairs should be separated by comma
    5. Pairs Directional Weight :
      1. Direction should be Positive if you want the basket price to go up when the pair price goes up, and Negative if you want the basket price to go down when the pair price goes down, and vice versa
      2. Weight : You can simply use 1 (to be discussed later)




    • The script will show an alert with the created basket name/time frame
    • Go to File>Open Offline> and select the basket chart that was created

    Running the Robot

    1. Place the robot Basket_Manager_02.ex4 on the opened offline basket chart
    2. Start Shopping ! (sorry the Market is closed :crying:).

    The Basket Manager Provides:

    1. Market Orders
      1. Buy Orders (3)
      2. Sell Orders (3)


    • Pending Orders

    1. Buy Stop Orders (2)
    2. Sell Stop Orders (2)
    3. Buy Limit Orders (2)
    4. Sell Limit Orders (2)


    • All orders offer Draggable SL and TP Lines
    • You can make trade decisions using your favorite strategy/indicator(s) on the off-line chart
    • You can trade multiple basket charts on the same account. Just make sure you give different Magic Number for each Robot Instance.
    • The robot adds 2 digits to the input magic number in order to differentiate between different basket orders . For example if you set the magic number to 999, the first buy basket orders will have an internal magic number of 99901, the first sell basket order internal magic number will be 99911, and so on. So use magic number of 3 to 5 digits in order to allow space for the additional 2 digits added by the robot.
    • Once market order is created, its button will show the current P/L for the underlying set of actual orders. You can close it by pressing on the button showing the P/L.
    • Current P/L of all market orders will show on the Green Button. You can close all the orders by pressing this button.
    • Once a Pending Order is triggered, it will be converted to a Market Order (provided there is space for it).
    • .... to be continued

    A screen shot


    Attachment 1626414

    I actually wasn't able to fully try the last version as market is closed...
    I expect many bugs .. thoughts ... ideas .. criticism .. So start Shooting


    Regards,

    Khalil Abokwaik

    Attached Thumbnails
    Attached Images (click to enlarge)
    attachment.png attachment.png
    Attached Files
    Attached Files
    [​IMG] Create_Basket_Script_01.mq4 13 KB
    [​IMG] Create_Basket_Script_01.ex4 19 KB
    [​IMG] Basket_Manager_02.ex4 161 KB
    [​IMG] Basket_Manager_02.mq4 68 KB

    Source.
     
  2. Diego San

    Diego San Member

    Joined:
    Dec 10, 2019
    Likes:
    2
    Location:
    US
    Limit orders are placed in an order book until the deal is either executed or canceled. To take advantage of this highly liquid market you should do forex trading with [removed, pay to advertise] forex broker. In the foreign exchange industry, dealers can either make or take liquidity. Liquidity is made via a limit order, in which the dealer is willing to buy or sell at a predetermined price and in a specified quantity. In average, the speed of client order execution, from the moment they come to the trading server until the moment a confirmation is sent to the client is 100 ms. The foundation of the project's technological infrastructure is built on the STP/NDD model avoiding not only a conflict of interest between the company and the client, but also, in general, increasing service quality by means of narrow spreads and high speed trading order execution.
     

Share This Page