Get in touch with developers using Service Desk! - page 99

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi i test my strategy in meta stertegy tester 5.
when i use ohlc , my take profit dont touch in correct number .for exmplay buy gold in 1900 tp 1902 but it take 1903 .every tick is ok but ohlc isnt ok
You buy at the Ask and sell at the Bid:
Forum on trading, automated trading systems and testing trading strategies
Entry point 41 pip difference
William Roeder, 2021.10.08 01:43
PIP, Point, or Tick are all different in general.
What is a TICK? - MQL4 programming forum (2014)
You buy at the Ask and sell at the Bid. Pending Buy Stop orders become market orders when hit and open at the Ask.
Your buy order's TP/SL (or Sell Stop's/Sell Limit's entry) are triggered when the Bid / OrderClosePrice reaches it. Using Ask±n, makes your SL shorter and your TP longer, by the spread. Don't you want the specified amount used in either direction?
Your sell order's TP/SL (or Buy Stop's/Buy Limit's entry) will be triggered when the Ask / OrderClosePrice reaches it. To trigger close to a specific Bid price, add the average spread.
MODE_SPREAD (Paul) - MQL4 programming forum - Page 3 #25
The charts show Bid prices only. Turn on the Ask line to see how big the spread is (Tools → Options (control+O) → charts → Show ask line.)
Most brokers with variable spreads widen considerably at end of day (5 PM ET) ± 30 minutes. My GBPJPY shows average spread = 26 points, but average maximum spread = 134 (your broker will be similar).
Hello, i have a big problem, every time i download mt4, it is automatically mt5 that downloads. What I want is not mt5, it is mt4, why does it happen automatically like this? Even I tried with other brokers, but always the same thing. i cannot open an account on mt4. / it is automatically opened on mt5 / Can someone help me please?
Hello, i have a big problem, every time i download mt4, it is automatically mt5 that downloads. What I want is not mt5, it is mt4, why does it happen automatically like this? Even I tried with other brokers, but always the same thing. i cannot open an account on mt4. / it is automatically opened on mt5 / Can someone help me please?
It means that we can download MT4 from the brokers' websites only.
Hi
Suddenly I got an error which I have not seen before.
The end of the journal goes;
Core 1- common synchronization competed
Tester- quality of analyzed history is 100%
Tester -cannot open tester chart
Core 1 - connection closed
It takes quite some time after clicking start, much longer than before.
Then the stratregy tester window freezes wth a white screen only, not possible to edit or check anything.
I tried reinstall but problem is still there.
Br
Thomas
I have noticed that SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE) gives the a wrong value in the MQL5 Strategy Tester while it gives the correct value when running the EA.
Has anyone come across this before? Is there a solution to this issue?
I will be grateful for any ideas.
I have noticed that SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE ) gives the a wrong value in the MQL5 Strategy Tester while it gives the correct value when running the EA.
Has anyone come across this before? Is there a solution to this issue?
I will be grateful for any ideas.
Can you confirm this? Please provide your MQL5 code. Provide terminal and operating system details:
Forum on trading, automated trading systems and testing trading strategies
Very Glitchy MetaTrader
Vladimir Karputov, 2021.03.16 04:20
If you have a question, first of all you should show the first three lines from the 'Journal' tab
(select these lines, copy to the clipboard and paste into the message using the button
). It should look like this:
Indicate on which symbol and on which server are you running the tests?
Can you confirm this? Please provide your MQL5 code. Provide terminal and operating system details:
Indicate on which symbol and on which server are you running the tests?
I have noticed that SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE) gives the a wrong value in the MQL5 Strategy Tester while it gives the correct value when running the EA.
Has anyone come across this before? Is there a solution to this issue?
I will be grateful for any ideas.
Hi Valadimir,
Thank you for your prompt response.
Relevant Section of the code:
double MinLots = SymbolInfoDouble(Pair[pIndex],SYMBOL_VOLUME_MIN);
double AccountBalance = AccountInfoDouble(ACCOUNT_BALANCE);
double TickValue = SymbolInfoDouble(Pair[pIndex],SYMBOL_TRADE_TICK_VALUE);
LotSize=NormalizeDouble(AccountBalance*RiskPerCent/100/(StopLoss/sPoint)/TickValue,2);
Here are the fist few lines from the Strategy Tester Journal:
Please note that this is a multi pair EA running on a single chart.
As I said before the variable TickValue gives a wrong value when the Strategy tester is running. (Usually 100.0 for JPY pairs and 1.0 for other pairs)
But it gives the correct value when the EA is running normally.
I have tried running the tester on several symbols and had the same issue. My Broker is FXTM (Forex Time)
Hi Valadimir,
Thank you for your prompt response.
Relevant Section of the code:
double MinLots = SymbolInfoDouble(Pair[pIndex],SYMBOL_VOLUME_MIN);
double AccountBalance = AccountInfoDouble(ACCOUNT_BALANCE);
double TickValue = SymbolInfoDouble(Pair[pIndex],SYMBOL_TRADE_TICK_VALUE);
LotSize=NormalizeDouble(AccountBalance*RiskPerCent/100/(StopLoss/sPoint)/TickValue,2);
Here are the fist few lines from the Strategy Tester Journal:
Please note that this is a multi pair EA running on a single chart.
As I said before the variable TickValue gives a wrong value when the Strategy tester is running. (Usually 100.0 for JPY pairs and 1.0 for other pairs)
But it gives the correct value when the EA is running normally.
I have tried running the tester on several symbols and had the same issue. My Broker is FXTM (Forex Time)
Please provide some code that I can compile and run. Without a code and a detailed explanation, the chances of finding an error are close to −273
Please provide some code that I can compile and run. Without a code and a detailed explanation, the chances of finding an error are close to −273
Thank you, Vladimir
I created a simple EA to illustrate my problem, which is attached hereto. Please compare the Tick Values in the Strategy Tester journal and in the Alert window when the EA runs.
The former shows 100.0 for JPY pairs and 1.0 for others, whereas the latter shows the correct values for all the pairs.
Thank you, Vladimir
I created a simple EA to illustrate my problem, which is attached hereto. Please compare the Tick Values in the Strategy Tester journal and in the Alert window when the EA runs.
The former shows 100.0 for JPY pairs and 1.0 for others, whereas the latter shows the correct values for all the pairs.
When testing, you must make sure that the symbols are in the "Market Watch" window.
Example:
and log: