• Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX

TA Functions

home/Knowledge Base/Technical Support/API/Client API's/VTL/VTL Client Scripts/TA Functions/TRIXOnArray

TRIXOnArray

21 views 0 Updated on December 16, 2021 hybrid-solutions

Syntax

Public Sub TRIXOnArray(ByVal Ary As Variant, ByVal Period As Double, ByRef Result As Variant)

Description

A procedure that calculates TRIX based on a custom array, and the result passed by result parameter as an array, each index of the result array represent indicator value corresponds to that index of the source array.

Parameters

Parameter Description
Ary The source array, that contains prices
Period Period as an integer value
Result The Result Array

Return value

Returns a double value.

Sample

Public Sub main()        Dim ary ()        Dim result()        Dim Period        Period = 14        CopyClose 0, 1, Bars (0), Ary        TRIXOnArray Ary, CInt(Period), Result        AlertMessage "The indicator value of the record 50 : " & Result(50)End Sub  

See Also

  • TypicalPriceOnArray
  • UltimateOscillatorOnArray
  • VerticalHorizontalFilterOnArray


Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  SwingIndexOnArray

StochasticMomentumIndexOnArray  

About
VertexFX Trader has a closed-loop trading structure with BackOffice dealing desk, Client Terminals, Dedicated Hosting, White Labelling and Bridging Capabilities. Through VertexFX Risk Management Bridge...
Categories
  • Release Notes
  • Technical Support
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • Media Center
Need Support?
If you need any further help, don't hesitate to send a support request to our support team.
Contact Support
  • Privacy Policy
  • Brokers Terms
  • Traders EULA
  • ISV Terms
  • Plugins EULA
  • Copyright 2024 hybridsolutions.com. All Rights Reserved.