Is there a way to differentiate between buy and sell volume in code?
i.e. if buy volume > X then buy market, if sell volume > X then sell market
Also, can you tell me what figure the volume on Prorealtime is based on? Does it come from the market or is it Prorealtime clients?
Regards
Steve
Currently, Volumes of buy and sell orders cannot be retrieved with code, sorry.
// Conditions to enter long positions
indicator1 = Volume
c1 = (indicator1 > 200000)
IF c1 THEN
BUY PositionSize SHARES AT MARKET
ENDIF
// Conditions to enter short positions
indicator2 = Volume
c2 = (indicator2 < 200000)
IF c2 THEN
Sellshort PositionSize SHARES AT MARKET
ENDIF
Beware that the volume function is stil in some kind of beta stage so there´s not more than a couple of days with volume-data for example DAX.