How do i assign 1pipette to a variable for currency pairs with 5 digits(last digit)

 

Hi guys... am trying to code a breakeven with take profit as 1pipette for currency pairs with 5 digits also for currency pairs with 2 and 3 digits.

Thanks..

 
  1. bulletproof: with take profit as 1pipette

    You can't move stops (or pending prices) closer to the market than the minimum: MODE_STOPLEVEL * _Point or SymbolInfoInteger(SYMBOL_TRADE_STOPS_LEVEL).
              Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial

    On some ECN type brokers, the value might be zero (the broker doesn't know). Use a minimum of two (2) PIPs.

    The checks a trading robot must pass before publication in the Market - MQL5 Articles (2016)

  2. bulletproof: 1pipette for currency pairs with 5 digits also for currency pairs with 2 and 3 digits.

    PIP, Point, or Tick are all different in general.
              What is a TICK? - MQL4 programming forum (2014)

    Unless you manually adjust your SL/TP for each separate symbol, using Point means code breaks on 4 digit brokers, exotics (e.g. USDZAR where spread is over 500 points), and metals. Compute what a PIP is and use it, not points.
              How to manage JPY pairs with parameters? - MQL4 programming forum (2017)
              Slippage defined in index points - Expert Advisors and Automated Trading - MQL5 programming forum (2018)