Volume(Place) as Number

Volume function returns the volume of the day Place argument.

 

This function has one parameter:
Place   Place is the day you want to retrieve the volume.

 

Example:

' This is a report
' Daily Close vs. High and Low Close
' Select stocks that they have a today's volume
' more than the double of the 10 days volume average
Sub Main()
  Header 1, "Date"
  Header 2, "Close"
  Header 3, "Volume"
  Header 4, "Volume average"

  vMA = Mov("Volume", Last, 10)

  If Volume(Last) > (2 * vMA) then
    TakeThisStock
    PutInGrid 1, DateToStr(Last)
    PutInGrid 2, Close(Last)
    PutInGrid 3, Volume(Last)
    PutInGrid 4, vMA
  End If
End Sub