Jump to content
  • 0

MT4 platform strategy tester incorrect currency spread on non trading days


Guest kirc

Question

Hi,

 

I am currently using MT4 platform provided by IG. All seems well except for one problem which was consistently observed.

 

I am using MT4 expert trader to back test strategy on EURO/USD currency pair. I noticed that when i use strategy tester during the trading days (Mon - Fri), i was able to get accurate simulation on the trades with the correct spread (0.6 - 0.8). However, if i were to run the strategy tester during non trading days, i was getting false spread as high as 30 - 50 pips.  This greatly affected the effectiveness of using strategy tester during non trading days. 

 

I tried to adjust my expert trader code to close the trades at "adjusted Ask/bid" prices, unfortunately, the  error : "EURUSD,M1: OrderClose error 138" occurred and no trades could be closed properly due to the wrong quotes on currency spread. 

 

Attached a figure which details the incorrect spread (eg 50 pips) instead of the usual IG spread (6-8 pips)

 



 

 

Is this a known problem in the system? Anyone knows of a workaround?

Link to comment

4 answers to this question

Recommended Posts

Hi 

 

Welcome to the IG community!

 

The error you are referring to  is the strategy is trying to close a trade when the market is closed and so a 'Requote' related error should be seen.

 

The strategy I assume is triggering to do this because of the spreads being put to a wider level and so it is seeing this as a trading opportunity. With that in mind a solution if this was during trading days would be to use the RefreshRates function, however this would have no impact given the market is closed. I have looked into a number of other sources that suggest this may be related to the code itself. With that in mind I would be inclined to suggest checking the metaquotes coding forum that will be able to shed some light on this error.

 

MetaQuotes - MT4 Tech Forum

 

I hope that helps!

 

 

 

 

 

 

Link to comment

Hi Tim,

 

Actually what i am trying to highlight here is that the data feed from MT4 on the currency pair EURO/USD appears to be wrong during the non trading days. I am trading on mini forex (0.1 contract).

 

In my previous screenshot which was captured from http://www.ig.com/sg/ig-forex/eur-usd (IG webpage) , the currency spread quote from IG MT data centre was 50 pips.  Now today, if you visit the website again on non trading days, the currency spread becomes 46 (please refer to the Sell and Buy prices). I attach the screenshot taken from same IG website for your reference.

1stOct2016.jpg

 

When running strategy tester on non trading days, none of my trades will be profitable based on the spread value of 46 as shown above. Is this expected?  

Link to comment

Here's the corresponding screenshot of the live quote prices for ASK and BID on EURO/USD on an active trading day. Apparently, the spread is correct (6 pip points, 5 decimal).  On non trading days, this goes up to 40-50 pip points as indicated in my earlier screenshots. Is this a technical issue?

 



 

 

Link to comment

Hi 

 

Thanks for sharing the screenshots. Given the market is closed there will be technically be no price at all given the market is not trading and so the spread value of 50 is simply a value that we have set just for illustrative purposes so charts can be viewed on the weekend.

 

I hope that helps and if there is antyhing else you would like me to clarify then please let me know and I will be glad to help.

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • image.png

  • Posts

    • SBI LIFE INSURANCE CO – SBILIFE (1D Chart) Elliott Wave Technical Analysis Function: Larger Degree Trend Higher (Intermediate degree, orange)  Mode: Motive  Structure: Impulse  Position: Minute Wave ((v)) Navy   Details: Minute Wave ((v)) looks complete around 1940 or could be soon terminating within Minor Wave 5 Grey of Intermediate Wave (5) Orange. Traders are advised to book profits here as prices have turned lower.  Invalidation point: 1667. SBI Life Insurance Co Daily Chart Technical Analysis and potential Elliott Wave Counts:  SBI Life Insurance Co daily chart indicates a progressive impulse wave higher between March 2023 and now as prices hit 1935-40 highs. Probability remains high for the fifth to have terminated at multiple degrees here. If correct, expect a larger degree corrective wave to begin soon against 1940.  The stock terminated Intermediate Wave (4) Orange around 1060-65 range in March 2023. Since then, prices have rallied through 1935-40 highs, sub dividing into five waves. Please note that Minute Wave ((v)) of Minor Wave 5 Grey could be complete or near to completion around 1960-65.  The fibonacci 0.618 extension of Wave 1 through 3 was missed by a small margin and bulls could attempt another push through. Alternatively, a slip through 1667 would confirm a top is in place and bears are back in control.   SBI LIFE INSURANCE CO – SBILIFE (4H Chart) Elliott Wave Technical Analysis Function: Larger Degree Trend Higher (Intermediate degree, orange)  Mode: Motive  Structure: Impulse  Position: Minute Wave ((v)) Navy   Details: Minute Wave ((v)) looks complete around 1940 or could be soon terminating within Minor Wave 5 Grey of Intermediate Wave (5) Orange. The sub waves within Wave ((v)) are not clear yet and prices could print a shallow high through 1960 before reversing.  Invalidation point: 1667. SBI Life Insurance Co 4H Chart Technical Analysis and potential Elliott Wave Counts:  SBI Life Insurance Co 4H chart highlight sub waves after Minor Wave 4 Grey completed around 1311 on June 04, 2024 alongside most stocks. Minute Wave ((iii)) was extended and Wave ((iv)) a flat. The sub waves with Minute Wave ((v)) are not very clear and possibility remain for a re-test of 1940. The key level is 1667 though. Conclusion: SBI Life Insurance Co might have completed its Intermediate Wave (5) Orange around 1935-40 range or could be near to termination. A break below 1667 will confirm. Elliott Wave Analyst: Harsh Japee Source : Tradinglounge.com get trial here!  
    • Ada resistance have been very strong though my FA shows a bullish signals. There are so many imbalances to be filled. Anyway good analysis there.  
    • NIFTY 50 (INDIA) Elliott Wave Analysis - Daily Chart NIFTY 50 (INDIA) Elliott Wave Technical Analysis Function: Trend Mode: Impulsive Structure: Orange Wave 1 Position: Navy Blue Wave 3 Direction Next Lower Degrees: Orange Wave 2 Details: Navy Blue Wave 2 appears complete, with Orange Wave 1 of Navy Blue Wave 3 now in play. Wave Cancel Invalidation Level: 23,826.0 The NIFTY 50 (India) Elliott Wave analysis on the daily chart suggests the market is currently in a trending phase. The overall movement is categorized as impulsive, and the structure under observation is Orange Wave 1. This signifies the early development of a larger wave formation, indicating that the market is embarking on a new upward cycle within the Elliott Wave framework. At present, the market is positioned within Navy Blue Wave 3, which follows the completion of Navy Blue Wave 2. Historically, Wave 3 within Elliott Wave theory tends to exhibit strong upward momentum, aligning with the impulsive nature of the broader trend. The shift from Wave 2 to Wave 3 often signals the beginning of a more powerful and sustained movement in the direction of the overall trend. Key Observations: Navy Blue Wave 2 is now presumed complete. Orange Wave 1 of Navy Blue Wave 3 is currently unfolding, suggesting the market is in the early stages of a potentially significant upward move. The impulsive structure indicates that further upward progression is likely, with Orange Wave 2 expected to follow once Orange Wave 1 concludes. Wave Invalidation Level: The invalid level for the current wave scenario is set at 23,826.0. If the price drops below this threshold, the existing wave pattern would be considered invalid, requiring a reevaluation of the market structure. As long as the price remains above this level, the ongoing impulsive trend is expected to persist, with Orange Wave 1 continuing its formation within Navy Blue Wave 3. Summary: On the daily chart, the NIFTY 50 is in an impulsive phase, with Orange Wave 1 of Navy Blue Wave 3 actively progressing. The bullish trend is anticipated to continue, provided the price does not break below the invalidation level of 23,826.0.   NIFTY 50 (INDIA) Elliott Wave Analysis - Weekly Chart NIFTY 50 (INDIA) Elliott Wave Technical Analysis Function: Trend Mode: Impulsive Structure: Navy Blue Wave 3 Position: Gray Wave 5 Direction Next Higher Degrees: Navy Blue Wave 3 (continuing) Details: Navy Blue Wave 2 of 5 appears complete, with Navy Blue Wave 3 now unfolding. Wave Cancel Invalidation Level: 23,826.0 The NIFTY 50 (India) Elliott Wave analysis on the weekly chart indicates the market is in a strong upward trend, classified as impulsive. The structure being analyzed is Navy Blue Wave 3, which is part of the larger Gray Wave 5. This setup suggests the market is in the midst of a significant upward cycle, with further upward potential as Wave 3 progresses. Currently, the market is positioned within Navy Blue Wave 3, following the completion of Navy Blue Wave 2 of 5. This implies that the correction phase linked to Wave 2 has concluded, and the market has entered the impulsive phase of Wave 3. Historically, Wave 3 often represents a robust and extended movement in the trend's direction, aligning with the current market conditions. Key Insights: Navy Blue Wave 3 is expected to push the market further upward, continuing the momentum from the impulsive phase. The market’s trend is not only sustained but appears to be strengthening as it progresses through Navy Blue Wave 3. Wave Invalidation Level: The invalidation level for this wave count is set at 23,826.0. If the price were to drop below this level, the existing Elliott Wave scenario would be invalid, and the market structure would need to be reassessed. However, as long as the price stays above this threshold, the current upward trend, driven by Navy Blue Wave 3, is expected to persist. Summary: In the weekly chart, NIFTY 50 is experiencing an impulsive upward trend, with Navy Blue Wave 3 actively forming within the larger structure of Gray Wave 5. The completion of Navy Blue Wave 2 marks the beginning of a stronger upward movement in Wave 3, provided the price holds above the invalidation level of 23,826.0. Technical Analyst : Malik Awais Source : Tradinglounge.com get trial here!  
×
×
  • Create New...
us