• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:35pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:35pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

MT4 synch objects to different charts (same pair, different tf) 11 replies

Request - simple EA with a custom indicator 8 replies

Help using my new Custom Indicator 10 replies

MT4 Programmer needed for simple custom indicator 3 replies

Time synch in Windows? 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 3
Attachments: Using a Custom Indicator within a simple EA, out of synch. Help?
Exit Attachments
Tags: Using a Custom Indicator within a simple EA, out of synch. Help?
Cancel

Using a Custom Indicator within a simple EA, out of synch. Help?

  • Post #1
  • Quote
  • First Post: Aug 14, 2008 12:53am Aug 14, 2008 12:53am
  •  shutopia
  • | Joined Jan 2007 | Status: Member | 46 Posts
I have a simple custom indicator that I am trying to use within an EA. I currently grab the indicator's values using the infamous iCustom() function. Problem is that the indicator does not generate the same output values when backtesting the EA. It is not an off "by one" error, but the actual result still resembles the expected outcome. It appears to be out of synch! Take a look.



Can someone help me find a way to "synchronize" the indicator's output within the EA backtester? Basically, when I run the strategy tester in Visual Mode, then attach the indicator while running, then stop the test halfway, the indicator outputs SHOULD be the same as if I dragged an indicator on a plain chart.

Screen capture A shows the backtester output.
- It has 2 indicators because one comes from manually dragging the indicator on while the tester is running, the 2nd using iCustom() within the EA code itself.

Screen capture B shows the plain indicator dragged onto a chart output.

Screen capture B is how the indicator SHOULD look. I have been stuck on this problem for 2 weeks and can't stand it anymore. Please help?

Thanks in advance.
-Shuli




Attachments:
1) Screenshot of inconsistent indicator outputs

2) Indicator code
About the indicator: It is a play on pairs trading for FX. The difference in price between the EURUSD and GBPUSD is "normalized" and charted.

3) EA Code (completely commented out everything but the basics of opening and immediately closing a sell order)
Attached Image (click to enlarge)
Click to Enlarge

Name: ScreenShot016.png
Size: 128 KB
Attached File(s)
File Type: mq4 Shuli_PairDiff_Norm.mq4   6 KB | 299 downloads
File Type: mq4 Shuli_TEST_EA.mq4   5 KB | 288 downloads
  • Platform Tech
  • /
  • Using a Custom Indicator within a simple EA, out of synch. Help?
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023