Erreur MODE_TICKVALUE ! - page 4

 
superbem:

Le problème est que le courtier ne peut pas tout configurer, le logiciel laisse la possibilité de ne pas montrer certaines données au client...

Je ne sais pas pourquoi certaines personnes ici pensent que ce logiciel est parfait tel quel.

Il est loin d'être parfait... Mais cela ne change rien au fait que MODE_TICKVALUE est configurable du côté du courtier.
 
Dans la prochaine version de correction de metatrader, MODE_TICKVALUE ne devrait pas être configurable du côté du courtier.
 
Je suis sûr que MetaQuotes tient une réunion du conseil d'administration à ce sujet en ce moment même. Ne vous faites pas d'illusions.
 

superbem:

Le marketinfo MODE_TICKVALUE ne donne pas de valeur en devise de dépôt pour les métaux, les indices et les CFD. Fonctionne uniquement pour le forex.

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.
}