Forum

How is margin converted to account currency after position close?

If I open position with pair AB where base currency A is different from my account currency C, I need AC ASK price to calculate required margin. What happens when I close my position? Is the margin converted back to my account currency via AC BID price? Does it mean I can loose my equity on AC

How to calculate CCI from current price

I wonder how MetaTrader calculates the current value of CCI (i.e. the value based on current price). Let's suppose we have prices from timeframe T. The last closed bar is closed at time j. The formula for CCI calculation is: (where M is period for SMA and stdev, TP is typical price ). When I