Skip to content
CPlugin logo
  • Home
  • Blog
  • Store
  • Contact
  • FAQ
  • Cart
  • My account
  • Knowledge Base
CPlugin logo
  • Home
  • Blog
  • Store
  • Contact
  • FAQ
  • Cart
  • My account
  • Knowledge Base

General

  • How to obtain files

MT4 ManagerAPI .NET Wrapper

  • Installation
  • Connection pool
  • Price Helper

Standalone Apps

  • Join two MT4 Servers
  • Compress MT4 database
  • Quotes Monitor
  • Quotes Monitor (WPF)
  • MT4 Report Server extended replication
  • EMIR
  • DividenderLT
  • Tools to calculate dividends
  • CopyTrading
    • Sentiment Strategy (LMAX)
    • MT4 (ManagerAPI) to LMAX
    • MT4 Plugin
    • MT4 (ManagerAPI) to MT4

Plugins for MT4/MT5

  • Flexible Leverage
  • GapHelper plugin
  • Multi Account Manager (MAM)
  • Spread Extender
  • HedgeHelper
  • Multi-Tier IB
  • Multi-Tier IB advanced version

Cloud

  • General info
  • WebAPI
    • WebAPI
    • Authorization
    • Pricing and terms
    • RESTful
    • Web Sockets (SignalR)
  • Home
  • Docs
  • MT4 ManagerAPI .NET Wrapper
  • Price Helper

Price Helper

This class very helpful if you need to calculate conversion coefficient from one currency to another. It does not connect to MT4 server, all calculations happen locally. 

PriceHelper class lays under CPlugin.PlatformWrapper.MetaTrader4.Utilities namespace.

Get conversion coefficient #

For example, you need to know, what value would be if you need to convert from GBP to XAU?

// instantiate variable of class PriceHelper
var ph = new PriceHelper();
 
// write there all needed prices
ph.UpdatePrices("GBPUSD", 1.60, 1.61);
ph.UpdatePrices("XAUUSD", 1300, 1301);
// etc
  
// get coefficient
var pc = pc.GetPriceCoeffInCurrency("GBP", "XAU");

Get price of single pip #

To get price of one pip you can use function GetPriceOnePipsInCurrency.

For example:

// instantiate variable of class PriceHelper
var ph = new PriceHelper();
 
  
// write there all needed prices
ph.UpdatePrices("GBPUSD", 1.60, 1.61);
// etc
  
// get pip price in USD when you trade GBPUSD
var pop = pc.GetPriceOnePipsInCurrency("GBPUSD", "USD");
Still stuck? How can we help?

How can we help?

Updated on June 29, 2023
Connection pool

Powered by BetterDocs

Table of Contents
  • Get conversion coefficient
  • Get price of single pip

Copyright © 2015  - 2025 CPlugin

Telegram Email EmailLinkedinFacebookTwitter

Powered by CPlugin