Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jun 2020
    Posts
    2

    Default Auto Trader Client side

    Hi there..

    I'm seeking help on developing an auto trader script which will run on client side. Need help on start scripting this as I'm new to VLT scripting.

    lets say market is in an up trend and ASK price for given symbol is fluctuating between the range of $2-$3 in 60 seconds time frame. I need to open a buy limit order for lowest ASK price and set the take profit on highest on BID range.

    Any idea how to achieve above?

    Thanks.
    Ishira

  2. #2
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    386

    Default

    Dear ishirawic

    At first to start with VTL You have to know about it , you can check the following link for more help


    Lets say market is in an up trend and ASK price for given symbol is fluctuating between the range of $2-$3 in 60 seconds time frame. I need to open a buy limit order for lowest ASK price and set the take profit on highest on BID range.
    1- On the main sub procedure save the current time which is determined the The Starting time
    2- On OnTick event which is fired when getting a new tick at specific symbol save the Bid and Ask Prices on two arrays which you can get its values by calling the SymbolInfoDouble
    3 - After 60 seconds update the starting time value with a current time then start comparing between the low prices buffer and get the lowest value and comparing between the bid prices buffer and get the highest value .
    4- Open the new limit order by calling NewLimitOrder with a lowest prices and set the TP value with a the highest

  3. #3
    Junior Member
    Join Date
    Jun 2020
    Posts
    2

    Default

    Thank you Rawan for the quick response. Much appreciated if you could provide me with an example code. where I can build on top of that.

  4. #4
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    386

    Default

    Dear ishirawic

    Check the sample code on the attachment file and for more samples to how write the VTL Script Check this Link
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to dowload a webpage in Client Side VTL
    By Edakad in forum VertexFX API/VTL Forum
    Replies: 2
    Last Post: 10-19-2016, 12:13 PM
  2. How to send a pending Limit Order from client side VTL
    By Edakad in forum VertexFX API/VTL Forum
    Replies: 13
    Last Post: 03-01-2015, 11:14 AM
  3. Running same client side script on multiple chart
    By nhasan in forum VertexFX API/VTL Forum
    Replies: 4
    Last Post: 01-09-2014, 10:04 AM
  4. Convert VTL from Server-side to Client-side
    By tjdm1980 in forum VertexFX API/VTL Forum
    Replies: 2
    Last Post: 01-09-2014, 09:19 AM
  5. Please help to check open orders in client side script
    By nhasan in forum VertexFX API/VTL Forum
    Replies: 6
    Last Post: 01-09-2014, 09:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •