To forum members,
I have been using a volatility based indicator within other programs, Beyond Charts, Metastock, to act as a Macro over an index.
If the market volatility is too great, say above 8%, then I do not enter any positions.
There does not appear to be such an indicator available within Pro Real Time.
The code for such an indicator from Metastock is as follows:
XAOATR:=Security(“C:Trading DataStocksASXIndicesXAO”,ATR(5));
XAO:=Security(“C:Trading DataStocksASXIndicesXAO”,C);
XAOATR/XAO*100;
5;
7;
ATR(5)/C*100; 5; 7;
So if possible can this code be translated into ProRealCode. The index which I am trialing it on is the Nasdaq.
Hoping this makes sense and someone is able to help.
Kind regards
mjharm.
1 user thanked author for this post.