Dibs method auto trading robot by Steve Hopwood MOD

Post Reply
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: Dibs method auto trading robot by Steve Hopwood MOD

Post by SteveHopwood »

It looks to me as though you are making some progress here, Peter. I will include a link when I next do one of my member-wide pm's to see if others are interested.

:D
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.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: Dibs method auto trading robot by Steve Hopwood MOD

Post by fx800 »

SteveHopwood wrote:It looks to me as though you are making some progress here, Peter. I will include a link when I next do one of my member-wide pm's to see if others are interested.

:D
Thank you very much for your encouragement, Steve.

Best regards,
Peter
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: Dibs method auto trading robot by Steve Hopwood MOD

Post by fx800 »

As the ea (Dibs mod with Rsi) does not trade very often on the H4 TF, I have today increased the lot size to 1 from 0.2 and kept ForexKiwi at 400.

Peter.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: Dibs ea MOD with Rsi

Post by fx800 »

fx8000 wrote:
fx8000 wrote:
fx8000 wrote:The Dibs ea MOD with Rsi made a steady start this trading week with a gain of 1.6% of account balance. It had been 2.9% up early Tuesday before falling back.

The candletrailingstop after breakeven had a positive impact on its performance. Previously the trades get stopped out prematurely before they have a chance to develop.

Results attached below.

After a lackluster day yesterday, the ea is still showing a gain of $167 or 1.6% of equity balance.

Account balance currently up 2%.

Also started another demo trading DIBS EA MOD with RSI on H1 TF on multiple pairs, starting balance $10k, lot = 1, TP = 100, part close = 0, BE@30+1, JS30, Candletrailstop after BE.

BTW, I have further modified the DIBS EA to trade irrespective of the day's opening price as follows :
//Define trading direction
DayOpenPrice = ObjectGetValueByShift(todayopenprice, 0);
direction = none;
RefreshRates();
if (TradeLong) direction = up;
if (TradeShort) direction = down;

I am currently testing to use the modified ea to buy from support zones and sell from resistance zones. At support/resistance zones, you often find consolidation, and inside bar is a powerful reversal signal at these areas. This modified ea can be used to trade reversals in these zones.

Will any kind souls (coders) out there please check my modified code to see if it is correct. So far, it appears to be working but has missed some trade set ups.

Thanks in advance.

Peter
Let me expand on how I am using the Dibs semi auto ea to trade support/resistance zones.

1. I prepare three templates, one for buy, one for sell and one for stop trading.

2. I use H4 TF (less prone to market noise), load sup dem indi on to a chart.

3. When PA enters a supply zone, I apply the sell template on the chart. You will often see inside bars in the vicinity of the supply/demand zones. If PA reverses, it will trigger a sell from an inside bar setup. SL is automatically set by the ea. Trade management as per input for the ea.

4. The reverse applies for the demand zones.

I attach a short forward test on this method of trading below. Obviously, a longer period of testing is required before any conclusion can be made.

I think it may be possible to code this trading method by telling the ea to go short when price enters a supply zone and continue trading short until it enters a demand zone. I tried in vain (using DIY copy and paste) to code the ea to sell when "inside.supply" and got many error warnings.

Enough of my rumblings for now. Perhaps, some one has a bettter idea.

Peter.

EDIT : Attached below is a chart with possible inside bar trades away from sup/dem zones.
You do not have the required permissions to view the files attached to this post.
Last edited by Anonymous on Sat Apr 14, 2012 3:54 am, edited 5 times in total.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: Dibs method auto trading robot by Steve Hopwood MOD

Post by fx800 »

End of trading week account report for Dibs mod with Rsi -- up 2.2% of initial account balance.
You do not have the required permissions to view the files attached to this post.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: Dibs method auto trading robot by Steve Hopwood MOD

Post by fx800 »

Hi, to all the brilliant coders in Steve’s forum

I have pinched the CheckSupply/CheckDemand code from Ribelo’s Supply &
Demand auto trading robot, and tried to incorporate it into Dibs ea, to go short

if ( CheckSupply() ) {
if ( !trade.short ) {
return;

and vice versa, but ended up with error messages !


What did I do wrong ?

If the errors are too extensive and will take too long to correct, please forget I ever asked.

Many thanks in advance.


Peter
You do not have the required permissions to view the files attached to this post.
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: Dibs method auto trading robot by Steve Hopwood MOD

Post by SteveHopwood »

You defined two constants with the same name as the functions i.e.

Code: Select all

//#define  CheckSupply "Check Suppy"
//#define  CheckDemand "Check Demand"
You do not appear to use these two constants, so I have commented them out.

These two constants had spaces in them:

Code: Select all

#define  inside supply "inside.supply"
#define  inside demand "inside.demand"
In my mod, I have removed the spaces because you cannot have them in a constant.

You copied the two function definitions inside start(). I have moved them just above start().

Look at void ReadIndicatorValues() where you have this strange line:
iCustom ( NULL, 0, "II_SupDem", 0, 0, 0 );

This appears to do no harm, but also does nothing. You need

Code: Select all

double Something = iCustom ( NULL, 0, "II_SupDem", 0, 0, 0 );
and if Something is used throughout the program, then you need to declare it in the General Declarations section.

Keep at this stuff; you will soon be good at it.

:D
You do not have the required permissions to view the files attached to this post.
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.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: Dibs method auto trading robot by Steve Hopwood MOD

Post by fx800 »

SteveHopwood wrote:You defined two constants with the same name as the functions i.e.

Code: Select all

//#define  CheckSupply "Check Suppy"
//#define  CheckDemand "Check Demand"
You do not appear to use these two constants, so I have commented them out.

These two constants had spaces in them:

Code: Select all

#define  inside supply "inside.supply"
#define  inside demand "inside.demand"
In my mod, I have removed the spaces because you cannot have them in a constant.

You copied the two function definitions inside start(). I have moved them just above start().

Look at void ReadIndicatorValues() where you have this strange line:
iCustom ( NULL, 0, "II_SupDem", 0, 0, 0 );

This appears to do no harm, but also does nothing. You need

Code: Select all

double Something = iCustom ( NULL, 0, "II_SupDem", 0, 0, 0 );
and if Something is used throughout the program, then you need to declare it in the General Declarations section.

Keep at this stuff; you will soon be good at it.

:D
Hi Steve,

I am sorry to have troubled you again. There are so many brilliant coders in your forum, I was hoping someone other than your good self would lend a helping hand.

I would study your comments the rest of today to see if I understand what you are trying to teach me. All the obstacles I am encountering right now makes me even more determined to learn a bit about coding.

MANY THANKS AGAIN !

Best regards,
Peter.
Last edited by Anonymous on Tue Apr 17, 2012 4:46 am, edited 1 time in total.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: Dibs method auto trading robot by Steve Hopwood MOD

Post by fx800 »

Here is a version with the stochastic input commented out (it is not needed, it was from Ribelo's ea which I forgot to comment out earlier) and the candletrailingstop with a time frame input.

I like to trade the H4 TF while using the 60 minutes for candletrailingstop. The default setting is 0, which defaults to the chart TF.
You do not have the required permissions to view the files attached to this post.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: Dibs method auto trading robot by Steve Hopwood MOD

Post by fx800 »

fx8000 wrote:
SteveHopwood wrote:You defined two constants with the same name as the functions i.e.

Code: Select all

//#define  CheckSupply "Check Suppy"
//#define  CheckDemand "Check Demand"
You do not appear to use these two constants, so I have commented them out.

These two constants had spaces in them:

Code: Select all

#define  inside supply "inside.supply"
#define  inside demand "inside.demand"
In my mod, I have removed the spaces because you cannot have them in a constant.

You copied the two function definitions inside start(). I have moved them just above start().

Look at void ReadIndicatorValues() where you have this strange line:
iCustom ( NULL, 0, "II_SupDem", 0, 0, 0 );

This appears to do no harm, but also does nothing. You need

Code: Select all

double Something = iCustom ( NULL, 0, "II_SupDem", 0, 0, 0 );
and if Something is used throughout the program, then you need to declare it in the General Declarations section.

Keep at this stuff; you will soon be good at it.

:D
Hi Steve,

I am sorry to have troubled you again. There are so many brilliant coders in your forum, I was hoping someone other than your good self would lend a helping hand.

I would study your comments the rest of today to see if I understand what you are trying to teach me. All the obstacles I am encountering right now makes me even more determined to learn a bit about coding.

MANY THANKS AGAIN !

Best regards,
Peter.

P.S. Steve, there were 15 error messages, I thought the patient was terminal, and yet you managed to revive him/her, fantastic ! Will be starting a demo tomorrow and report back later.

No trades yet from the DIBS SUPDEM EA. Meanwhile, the Dibs mod with Rsi gain has climbed to 3.5% of equity.

Peter
Post Reply

Return to “Automated trading systems”