I am working on a MQL to VTL Conversion of one Expert I need following stuffs in VTL can you please guide me.

l=MarketInfo(Symbol(), MODE_LOTSIZE);
m=MarketInfo(Symbol(), MODE_PROFITCALCMODE);
p=MarketInfo(Symbol(), MODE_POINT);
t=MarketInfo(Symbol(), MODE_TICKSIZE);
v=MarketInfo(Symbol(), MODE_TICKVALUE);

Awaiting for response,

BGT

2. Dear BGT

l=MarketInfo(Symbol(), MODE_LOTSIZE);

To get the lot size use this function SymbolInfoDouble("SymbolName",SYMBOL_CONTRACT_SIZE,I)

m=MarketInfo(Symbol(), MODE_PROFITCALCMODE);

On our system structure there is no mode to calculate the profit loss such as a MT4

p=MarketInfo(Symbol(), MODE_POINT);

To get the point value you can use SymbolInfoInteger("SymbolName",SYMBOL_PIP_LOCATION,P)

t=MarketInfo(Symbol(), MODE_TICKSIZE);
v=MarketInfo(Symbol(), MODE_TICKVALUE);

Unfortunately there is no VTL Function that used to return Tick Size or Tick Value ,So we will study the possibility of adding these features to our development cycle. I will Update you soon.

3. As you refer in this reply i have used p=MarketInfo(Symbol(), MODE_POINT); to get the point value in vtl
In mql it gives 0.0001 value for point and in vtl this function gives -5 for EUR/USD
In mql it gives 0.01 value for point and in vtl this function gives -2 for AUD/JPY

Please suggest how i can get the point value

4. Originally Posted by BGT
As you refer in this reply i have used p=MarketInfo(Symbol(), MODE_POINT); to get the point value in vtl
In mql it gives 0.0001 value for point and in vtl this function gives -5 for EUR/USD
In mql it gives 0.01 value for point and in vtl this function gives -2 for AUD/JPY

Please suggest how i can get the point value
you can calculate the point value by this formula ( Point value = 10 ^ (abs(Pip location value)))

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•