I MarketPosition

From MultiCharts
Revision as of 14:54, 24 January 2012 by 194.84.116.138 (talk) (Created page with "Returns a numerical value, indicating the type of the specified position. A value of 1 indicates the current bar has a long position, -1 indicates the current bar has a short...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns a numerical value, indicating the type of the specified position. A value of 1 indicates the current bar has a long position, -1 indicates the current bar has a short position, and 0 is returned only if the current bar has a flat position.

Usage

i_MarketPosition

Notes

This function can only be used in studies.

Example

i_MarketPosition will return a value of 0 if the position on the current bar is flat 

i_MarketPosition will return a value of 1 if the position on the current bar is long 

i_MarketPosition will return a value of -1 if the position on the current bar is short