当我在外汇市场上使用不同的交易品种进行交易时, 在风险计算时, 我无法正确计算风险,因为我不知道刻度值。 我怎样才能知道每个点的变动我需要多少钱?
在您的图表中,您可以在 mql5 中使用此机器人并在您的图表上运行。
//+------------------------------------------------------------------+
//| Info.mq5 |
//| Copyright 2024, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2024, MetaQuotes Ltd."
#property link "https://www.mql5.com"
#property version "1.00"
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//double tick_value = MarketInfo(_Symbol,MODE_TICKVALUE);
double tick_value = SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE);
Comment("\n\n\n\n",
"TickValue = " ,tick_value);
}
//+------------------------------------------------------------------+