Importing EA's with Embedded Indicators

Post Reply
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

Importing EA's with Embedded Indicators

Post by Radar »

Hey gang,

Just recently installed ProTrader3, and thought I'd give phil_trade's Marilyn a run on it...

( http://www.stevehopwoodforex.com/phpBB3 ... f=5&t=1448 )

ProTrader automatically detects whether you're importing an Empty4 EA or indicator, and places it in the correct folder. Sergey Kovalyov explained that it does this by looking for the following keywords in the code...

Code: Select all


SetIndexBuffer
SetIndexStyle
SetIndexArrow
indicator_chart_window
indicator_separate_window
indicator_color
indicator_level
indicator_buffers

...and any other keywords relating to custom indicators. If it finds them in your code, (even if it's an EA with an embedded indicator), it will treat it as an indicator, and it won't trade.

I removed the following lines from Marilyn...

Code: Select all


SetIndexStyle(0, DRAW_ARROW, 0, 3);
SetIndexStyle(1, DRAW_ARROW, 0, 3);
SetIndexStyle(2, DRAW_ARROW, 0, 1);
SetIndexStyle(3, DRAW_ARROW, 0, 1);
SetIndexArrow(0, 218);
SetIndexArrow(1, 217);
SetIndexArrow(2, 218);
SetIndexArrow(3, 217);

...and am now able to backtest/walkforward test her in PT3 with just under 10 years' worth of EURUSD tick data from Dukascopy. :yahoo:

Now I can finally work out what all the settings do, and how to adjust them :) (Yes, I've read the thread quite a few times, and the docs, but I'm the sort of person that doesn't really soak things in until I've put my hands to work on it).

Just thought I'd drop this in here in case anyone decides to import EA's with embedded indicators into PT3, and find that they don't trade.

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Importing EA's with Embedded Indicators

Post by SteveHopwood »

Nice on Radar. Thanks. :clap:

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
hughmac
Posts: 3
Joined: Sun Aug 04, 2013 11:08 pm

Re: Importing EA's with Embedded Indicators

Post by hughmac »

Radar wrote:Hey gang,

Just recently installed ProTrader3, and thought I'd give phil_trade's Marilyn a run on it...
Brilliant! been playing with ProTrader for a few weeks now and its excellent. Certainly hope it manages to become a mainstream package.
User avatar
bodleytunes
Trader
Posts: 68
Joined: Tue Oct 02, 2012 8:38 am
Location: Stockport

Re: Importing EA's with Embedded Indicators

Post by bodleytunes »

Hi Radar,

You'll have to try to help a dimwitted oaf, such as myself! :cheer:

I am trying to import dukascopy tick data (GBP/USD and spot gold)

Anyway, the tick data is imported, but when I try to run the test, I'm confused about the parameter within "bactesting setup >> TimeFrame" I was assuming this should be set to 1D as per what marilyn is designed to run on.

However, it doesn't let you set this because it then says no available data for 1D. I have imported tick data after all.

Is there some other trick to getting this to test?

Cheers!

Jon.

PS: It seems I have got the backtest to run but there are no bars, nothing visual, just a grey screen saying "backtesting please wait" so far up to 6 percent and no trades so will see what happens. Only another 1h 31m to go :(
User avatar
bodleytunes
Trader
Posts: 68
Joined: Tue Oct 02, 2012 8:38 am
Location: Stockport

Re: Importing EA's with Embedded Indicators

Post by bodleytunes »

update! 6 trades so far and and increased balance, so looks like its working!
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

Re: Importing EA's with Embedded Indicators

Post by Radar »

Hey Jon,

I usually have to wait around 7 minutes before I see any trades in the backtest... I guess that's how long it takes to process all the ticks in 100 daily bars...

When you import tick data, you will get the option "Build Highest" or something similar... Click on that button, and you will get a small dialogue box with 1 Minute and Daily... Make sure both boxes are checked, then hit OK... It will build history files for the 1 minute and daily timeframes...

When backtesting on any timeframes between 1 minute and daily, the history data is built on the fly, using the 1 minute history data... Any timeframes above daily are built using the daily history data.

Hope that helps ;)

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

Re: Importing EA's with Embedded Indicators

Post by Radar »

Further to the previous post...

When you import tick data, use the following naming convention...

Symbol_Source (In my case, I used EURUSD_Dukas)

When you want to use that data in backtesting, you click on the currently displayed symbol, and you will get a drop-down list of all available symbols... Just scroll down to find your imported data.

Below that, you'll find the timeframe... Click on that, and you get a box with various timeframes, tick counts, etc... Choose the timeframe you want, and Bob's yer uncle ;)

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
Post Reply

Return to “Protrader”