How do you Get tick value for symbols in Mql5 Code?
How do you Get tick value for symbols in Mql5 Code?
Loading saved threads...
Maryam Azhdari · External communityPost link
External answer — Stack Overflow Stack Exchange
Author: Maryam Azhdari
Original post: https://stackoverflow.com/a/78865928
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
in your chart, you can use this bot in mql5 and run on your chart.
Github :
https://github.com/MaryamAzhdari/BotInfo
//+------------------------------------------------------------------+
//| 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);
}
//+------------------------------------------------------------------+
Quote
Report
Maryam Azhdari · External communityPost link
External question — Stack Overflow Stack Exchange
Author: Maryam Azhdari
Original post: https://stackoverflow.com/questions/78865927
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
When I am trading on different symbols in the forex market,
At the time of risk calculation ,
I can't calculate the risk correctly because I don't know Tick Value.
How can I find out how much dollars I will take for each pip movement?
Quote
Report
Post Reply
Quoted from Forex.com.bd-Editorial External answer — Stack Overflow Stack Exchange Author: Maryam Azhdari Source score (net votes, not local likes): 0 Original post: https://stackoverflow.com/a/78865928 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. in your chart, you can use this bot in mql5 and run on your chart. Github : https://github.com/MaryamAzhdari/BotInfo //+------------------------------------------------------------------+ //| 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); } //+------------------------------------------------------------------+
Checking account access…