Results 1 to 3 of 3

Thread: Subscript error

  1. #1
    Senior Member
    Join Date
    Nov 2015
    Posts
    122

    Default Subscript error

    Hi,

    I am trying to convert the attached script from mq4 to vtl. I am converted it as per mq4 but in two dimensional array it gives me error
    'Subscript out of range 'workEma' . Please can you guide me is what is the issue .

    I have attached mq4 as well as my converted vtl file. Please guide me the solution .

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Nov 2015
    Posts
    122

    Default

    Hi sir,
    Please reply me asap if possible.

    Thanks in advance.

  3. #3
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    409

    Default

    Dear BGT


    Quote Originally Posted by BGT View Post
    Hi,

    I am trying to convert the attached script from mq4 to vtl. I am converted it as per mq4 but in two dimensional array it gives me error
    'Subscript out of range 'workEma' . Please can you guide me is what is the issue .

    I have attached mq4 as well as my converted vtl file. Please guide me the solution .

    Thanks in advance.
    You have to know that you are setting the value for the two dimensional using wrong way and that caused the Subscript out of range 'workEma' so you have to replace the ( workEma(r)(instanceNo) = price ) with ( workEma(r,instanceNo) )

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Why Error is coming
    By BGT in forum VertexFX API/VTL Forum
    Replies: 3
    Last Post: 01-02-2017, 02:22 PM
  2. Help needed on Error
    By NCD in forum VertexFX API/VTL Forum
    Replies: 6
    Last Post: 12-02-2015, 11:45 AM
  3. Error in Bridge
    By Finsys Technical in forum VertexFX API/VTL Forum
    Replies: 6
    Last Post: 01-14-2015, 09:43 AM
  4. SMS dll Error
    By rayyan in forum VertexFX API/VTL Forum
    Replies: 36
    Last Post: 04-02-2014, 11:36 AM
  5. Error in Update SL/TP
    By Birju in forum VertexFX API/VTL Forum
    Replies: 1
    Last Post: 02-11-2014, 03:26 PM

Posting Permissions

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