Vchart

See Also...

Related Topics

 

 

Description

Vchart calls the Chart() function with constants designed to provide a daily chart.

 

 

Syntax

VChart=Chart($1, DAILY_WIDTH, DAY_BAR, STANDARD_PREFETCH, NOGAPS_ON, DAY_ONLY)

 

 

Parameters

$1

A reference to a data series offered by the calling function.

 

DAILY_WIDTH

The DAILY_WIDTH constant sets the bar width parameter to 1.

 

DAY_BAR

The DAY_BAR constant sets the bar type parameter to 2, or day.

 

STANDARD_PREFETCH

The STANDARD_PREFETCH constant sets the number of bars to 200.

 

NOGAPS_ON

The NOGAPS_ON constant removes gaps from the virtual chart.

 

DAY_ONLY

The DAY_ONLY constant sets the night parameter to 3, which gives the day session only.

 

 

Return Value

A price or alternate value.

 

 

Examples

LongWhiteForm(instrument, targetBar)={

  return = FALSE

  if BodyPercent(instrument, targetBar) > CLONG then {

    if RealBody(instrument, targetBar) > CLONGREAL then {

      if vchart(instrument.last[GetBar(targetBar)]) > vchart(instrument.open[GetBar(targetBar)]) then return = TRUE

    }

  }

  return

}

 

 

Comments

NA

 

©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.