stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Dibs method auto trading robot by Steve Hopwood MOD
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=462
Page 2 of 8
Author:  SteveHopwood [ Fri Apr 13, 2012 11:25 am ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

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
Author:  fx800 [ Fri Apr 13, 2012 12:13 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

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
Author:  fx800 [ Fri Apr 13, 2012 12:27 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

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.
Author:  fx800 [ Fri Apr 13, 2012 5:32 pm ]
Post subject:  Re: Dibs ea MOD with Rsi

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.
Author:  fx800 [ Sat Apr 14, 2012 12:00 am ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

End of trading week account report for Dibs mod with Rsi -- up 2.2% of initial account balance.
Author:  fx800 [ Sun Apr 15, 2012 8:55 am ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

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
Author:  SteveHopwood [ Sun Apr 15, 2012 9:33 am ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

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
Author:  fx800 [ Sun Apr 15, 2012 9:41 am ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

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.
Author:  fx800 [ Sun Apr 15, 2012 3:30 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

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.
Author:  fx800 [ Mon Apr 16, 2012 5:57 am ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

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
All times are UTC Page 2 of 8