거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
스크립트

TickValue_Compare — diagnose differences between TICK_VALUE, LOSS and PROFIT - MetaTrader 5용 스크립트

조회수:
144
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

PURPOSE


Compares the three tick-value properties exposed by MetaTrader 5 for every symbol in Market Watch:

  • SYMBOL_TRADE_TICK_VALUE (generic).
  • SYMBOL_TRADE_TICK_VALUE_LOSS (used for loss calculations).
  • SYMBOL_TRADE_TICK_VALUE_PROFIT (used for profit calculations).


WHY THIS MATTERS


Many EAs use one of the tick-value properties for risk-based lot sizing. When LOSS and PROFIT differ (as they do for cross-currency pairs on many brokers), choosing the wrong property leads to incorrectly sized positions:

  • Using LOSS: pessimistic loss estimate - smaller lots (safer, conservative for risk management).
  • Using TV: usually equals PROFIT (optimistic) - slightly larger lots than intended.

This script provides empirical per-symbol data so you can make an informed decision based on your specific broker.


USAGE


  1. Add to Market Watch the symbols you want to analyze.
  2. Drop the script on any chart.
  3. Enter the input parameters and click the OK button.
  4. Check the Experts tab for the summary.
  5. If "Save CSV" is enabled, full per-symbol data is exported to a CSV file in MQL5/Files/ (useful for large brokers, since the Experts tab is limited to ~2000 lines).



OUTPUT


Each symbol is classified into one of these categories:

ALL_EQUAL: the three properties match within tol.

TV_MATCHES_PROFIT: TV == PROFIT, LOSS slightly different.

TV_MATCHES_LOSS: TV == LOSS, PROFIT slightly different.

ALL_DIFFER: all three properties are distinct.

A summary at the end aggregates counts per category.

INTERPRETATION


  1. If most/all symbols are ALL_EQUAL, your broker treats LOSS and PROFIT as identical - any of the three properties is safe.
  2. If TV_MATCHES_PROFIT is common (typical pattern), then:

    • For risk-based sizing, use TICK_VALUE_LOSS (most conservative).
    • TV (generic) effectively equals PROFIT, the optimistic value.
Heiken ashi as series Heiken ashi as series

Heiken ashi with all buffers set as series

TransactionCostCollector — Broker Cost Profiling Script TransactionCostCollector — Broker Cost Profiling Script

Triple-barrier labeling pipelines frequently use an arbitrary constant (0.5–1.0%) or a legacy spread assumption as the min_ret threshold. A threshold set below the actual round-trip transaction cost causes the pipeline to label cost-driven noise as tradeable signal. The labeled dataset then systematically overstates edge, and any model trained on those labels overfits to an artifact of the labeling scheme rather than to genuine market structure. TransactionCostCollector.mq5 is a standalone script that resolves the data-collection step of this problem.

SetSLByLoss — set Stop Loss on all open positions by target loss amount SetSLByLoss — set Stop Loss on all open positions by target loss amount

Script to set Stop Loss on every open position based on a target loss in the account's currency (e.g. $50 per position). Works on any deposit currency and any forex symbol. Validates broker stops/freeze levels. Currency conversion handled automatically.

MACD Signals MACD Signals

Indicator edition for new platform.