bybruno2 / Publications
Forum
calculate diference value from openprice and market to add a stoploss when the profit is positive
Hello, for the currency that have 5 digits i use this: dif = (OrderOpenPrice() - vbid) / 100; and i can see the diference between openprice and market to calculate the stoploss, for example: stoploss = vbid - dif; this work fine for 5 digits the stoploss is ok because the digits number are the same
calculate diference of pips/points between openprice order and market price
Hello, how can i calculate diference of pips or points between openprice order and market price ? thanks