I wonder if mc has ability to reference past bid&ask price and bid&ask volume in el?
just like close,i can reference 1 bar ago close as close[1].
how to reference past bid&ask price and bid&ask vol in el?
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: how to reference past bid&ask price and bid&ask vol in e
Dear z7c9,
You should add data series and reference them the following way:
data1 - Trade
data2 - Bid
data3 - Ask
----
Close[1] of data1 - Trade of the previous bar
Close[1] of data2 - Bid of the previous bar
Close[1] of data3 - Ask of the previous bar
You should add data series and reference them the following way:
data1 - Trade
data2 - Bid
data3 - Ask
----
Close[1] of data1 - Trade of the previous bar
Close[1] of data2 - Bid of the previous bar
Close[1] of data3 - Ask of the previous bar