Forum

Price/CCI Divergence Indicator

I know price/indicator divergence indicators are available on platforms such as TradeStation and Trade Navigator. However, I'm looking for a reliable price divergence indicator for Metatrader 4. Specifically, I'd like to track divergence between price and CCI. One scenario is represented in the

Precision problem with OBJPROP_PRICE

I'm trying to adjust the precision of what I get back on OBJPROP_PRICE within ObjectGet. But, it's not working. The code below does not adjust the precision to 4 as expected. Am I doing something wrong? string name1; double normprice; for(int i=0;i<ObjectsTotal();i++) { name1=ObjectName(i);