Login
Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • Home
  • Knowledgebase
  • Blog

TA Functions

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

IWMAOnArray

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

Syntax

Public Sub IWMAOnArray(ByVal Ary As Variant, ByVal Period As Integer, ByRef Result As Variant)

Description

A procedure that calculates Price Weighted Moving Average 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 Period        Dim result()        Period = 14        CopyClose 0, 1, Bars (0), Ary        IWMAOnArray Ary, CInt(Period), Result        AlertMessage "The indicator value of the record 50 :" & Result(50)End Sub  

See Also

  • GoldenDeathCrossOnArray
  • KeltnerOnArray
  • NeuralIndicatorOnArray


Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  iBandsOnArray

GoldenDeathCrossOnArray  

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
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
  • Release Notes
  • Technical Support
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 2023 hybridsolutions.com. All Rights Reserved.