How Calculate TICKVALUE In 3/5 Digit and 2/4 Digit Brokers ?

 

Hi

Is different between calculation of TICKVALUE in 2/4 digit broker and 3/5 digit broker ?

How i can calculate TICKVALUE in a 3/5 digit broker ?

thanks

 
navid:

[...] How i can calculate TICKVALUE [...]

You can call MarketInfo(symbol,MODE_TICKVALUE) which returns it. If u really want to calculate it yourself, it's discussed somewhere in this thread -> https://www.mql5.com/en/forum/126450.
 
gordon:
You can call MarketInfo(symbol,MODE_TICKVALUE) which returns it. If u really want to calculate it yourself, it's discussed somewhere in this thread -> https://www.mql5.com/en/forum/126450.


hi

When i use formul of ( NormalizeDouble( ( MarketInfo(Symbol(),MODE_TICKVALUE)*OrderLot() ) * ( bid - OrderOpenPrice() ), 2 ) for one buy order in

(GBPJPY ) for calculate current profit of it order result of this calculation is difference with result that get from OrderProfit()function for it order .

this difference in result in INSTAFOREX broker that is one 2/4 broker is right but in FXCM broker that is one 3/5 broker is incorrect .

How i can calculate current profit of one order (sell/Buy) in a 3/5 Broker without use OrderProfit() function ?

please help me .

 
navid:
How i can calculate TICKVALUE in a 3/5 digit broker ?
double PointValuePerLot() { // Value in account currency of a Point of Symbol.
    /* In tester I had a sale: open=1.35883 close=1.35736 (0.00147)
     * gain$=97.32/6.62 lots/147 points=$0.10/point or $1.00/pip.
     * IBFX demo/mini       EURUSD TICKVALUE=0.1 MAXLOT=50 LOTSIZE=10,000
     * IBFX demo/standard   EURUSD TICKVALUE=1.0 MAXLOT=50 LOTSIZE=100,000
     *                                  $1.00/point or $10.00/pip.
     *
     * https://forum.mql4.com/33975 CB: MODE_TICKSIZE will usually return the
     * same value as MODE_POINT (or Point for the current symbol), however, an
     * example of where to use MODE_TICKSIZE would be as part of a ratio with
     * MODE_TICKVALUE when performing money management calculations which need
     * to take account of the pair and the account currency. The reason I use
     * this ratio is that although TV and TS may constantly be returned as
     * something like 7.00 and 0.00001 respectively, I've seen this
     * (intermittently) change to 14.00 and 0.00002 respectively (just example
     * tick values to illustrate). */
    return(  MarketInfo(Symbol(), MODE_TICKVALUE)
           / MarketInfo(Symbol(), MODE_TICKSIZE) ); // Not Point.
}
 
WHRoeder:
Hey guys, I believe the MODE_TICKVALUE, calculates the tickvalue assuming 1 Lot is traded.
 
thavachelvan:
Hey guys, I believe the MODE_TICKVALUE, calculates the tickvalue assuming 1 Lot is traded.
What part of
PointValuePerLot()
wasn't clear?
 
what about this....
//for 1 Lot
//standard account = 100k = 10$$$ profit per pip
//mini account = 10k = 1$$$ profit per pip


double TICK_VALUE = MarketInfo(Symbol(),MODE_TICKVALUE);
if(Point == 0.001 || Point == 0.00001) TICK_VALUE *= 10;


//Assuming u use standard account the TICK_VALUE  will be 10 / for EURUSD/
//if fractional pip broker used, then TICK_VALUE will be 1 so all u need is  to
//multiply that by 10 in order to make it  equal to one pip. 
 
  1. See my PointValuePerLot() don't use tickValue alone.
  2. multiplying by 10, is NOT a tick value, that would be pip value/lot
 
WHRoeder:
  1. See my PointValuePerLot() don't use tickValue alone.
  2. multiplying by 10, is NOT a tick value, that would be pip value/lot
right but at the end of the day is wat u want and u will use for.
 

WHRoeder:

something like 7.00 and 0.00001 respectively, I've seen this
     * (intermittently) change to 14.00 and 0.00002 respectively (just example
Have you actually seen it changed, or are you quoting it in blind faith?
 
blogzr3:
Have you actually seen it changed, or are you quoting it in blind faith?
Faith in the person that was far more knowledgeable on mql4 than me. Also he has tested on various brokers and I haven't
Reason: