Pipcruiser's Pipmasher

Post your derivatives/discussion threads here.
Locked
KapguHaJI
Posts: 5
Joined: Mon Jan 13, 2014 12:28 pm
Location: Russia

Pipcruiser's Pipmasher

Post by KapguHaJI »

SteveHopwood » Tue Nov 25, 2014 7:38 pm wrote:I came across what looked like faulty code in the shift applied to the open/close price of the candles that could cause the incorrect candle directions. Give it a whirl guys and see if all is correct now.
Was trying to trace this bug for some time, when you posted this. But I can't find what you actually changed in the code. Please point me to where the fix is (if you actually posted the correct version).
SteveHopwood » Tue Nov 25, 2014 7:38 pm wrote:Re the occasional non-refresh, the code could not be simpler and even I am unlikely to screw it up. Check by the time display that the ea is still running when this happens - that is what the time display is for. The ea is not running if the clock has stopped.
Well, the clock does stop for 60 seconds because of sleep function in the end of LookForTradingOpportunities. This probably confuses some people.
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.

Pipcruiser's Pipmasher

Post by SteveHopwood »

KapguHaJI » Tue Nov 25, 2014 6:22 pm wrote:
Was trying to trace this bug for some time, when you posted this. But I can't find what you actually changed in the code. Please point me to where the fix is (if you actually posted the correct version).
void GetCandleDirections()

: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.
KapguHaJI
Posts: 5
Joined: Mon Jan 13, 2014 12:28 pm
Location: Russia

Pipcruiser's Pipmasher

Post by KapguHaJI »

SteveHopwood » Tue Nov 25, 2014 9:44 pm wrote:
KapguHaJI » Tue Nov 25, 2014 6:22 pm wrote:
Was trying to trace this bug for some time, when you posted this. But I can't find what you actually changed in the code. Please point me to where the fix is (if you actually posted the correct version).
void GetCandleDirections()

:xm:

Hmmm. It has some lines added for the info panel on the chart, but nothing about shift, that could change directions.

Added:
You propably talked about this shift:

Code: Select all

   if (BrokerHasSundayCandle)
      if (TradingTF == PERIOD_D1)
         shift = 2;
But everything about this variable remained the same. Shift=2 can only be used to trade monday. On tuesday you get both open and close from sunday candle and so on.
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.

Pipcruiser's Pipmasher

Post by SteveHopwood »

KapguHaJI » Tue Nov 25, 2014 7:17 pm wrote:
SteveHopwood » Tue Nov 25, 2014 9:44 pm wrote:
KapguHaJI » Tue Nov 25, 2014 6:22 pm wrote:
Was trying to trace this bug for some time, when you posted this. But I can't find what you actually changed in the code. Please point me to where the fix is (if you actually posted the correct version).
void GetCandleDirections()

:xm:

Hmmm. It has some lines added for the info panel on the chart, but nothing about shift, that could change directions.

Added:
You propably talked about this shift:

Code: Select all

   if (BrokerHasSundayCandle)
      if (TradingTF == PERIOD_D1)
         shift = 2;
But everything about this variable remained the same. Shift=2 can only be used to trade monday. On tuesday you get both open and close from sunday candle and so on.
I give up.

The damn bot is supposed to work as described in pc's pm in post 1. He wanted the additional stuff to allow for experimentation on lower time frames, as I recall in a subsequent request. As usual with commissioners, they think that everything is easy and that their every whim can be accommodated with ease. They aren't.

Now listen up people.

Ready?

Ears pinned back?

This blasted bot which is now irritating me beyond measure is a D1 - OK D1 get it? - trading EA. Trade it on anything other than the D1 and the results are unpredictable.

So just trade the bloody thing on the D1.

KapguHaJI, if you have another problem then solve it and post it here. I am not interested anymore. I have enough to do.
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.
User avatar
Aussiedoc
Trader
Posts: 270
Joined: Tue Dec 13, 2011 8:10 am
Location: Western District. Victoria. Australia

Pipcruiser's Pipmasher

Post by Aussiedoc »

Agreed! Works like a charm on my D1. :smile:
If you can never exceed your own expectations - why expect second-best?
KapguHaJI
Posts: 5
Joined: Mon Jan 13, 2014 12:28 pm
Location: Russia

Pipcruiser's Pipmasher

Post by KapguHaJI »

Ok Steve, I still don't understand, what bug you claim to have fixed, but I'll leave you alone.

Everyone, it is obviously a bad idea to post EA files all over the topic. I'll just post what I found and you can make the changes yourself.

At line 3827 replace this

Code: Select all

	while ( time >= tradeHours[i] ) 
	{	
		if ( i == ArraySize( tradeHours ) ) break;
		i++;		
	}
with this

Code: Select all

	while ( time >= tradeHours[i] ) 
	{	
		i++;
		if ( i == ArraySize( tradeHours ) ) break;
	}
It sometimes caused 'Array out of range' errors. I don't know why, but Empty4 doesn't mind them very much, so you don't usually stumble upon them.

Also I doubt that anybody here has sunday candles at all, but if you do, you should go to line 3690 and replace this

Code: Select all

   if (BrokerHasSundayCandle)
      if (TradingTF == PERIOD_D1)
         shift = 2;
with this

Code: Select all

   if (BrokerHasSundayCandle)
      if (TradingTF == PERIOD_D1)
         if(TimeDayOfWeek(iTime(NULL,PERIOD_D1,0))==1)
            shift = 2;
Cheers.
pipcruiser
Trader
Posts: 134
Joined: Wed Nov 16, 2011 8:24 am

Pipcruiser's Pipmasher

Post by pipcruiser »

Thanks a lot for helping out KapguHaJI.

PC
KapguHaJI » Wed Nov 26, 2014 10:53 am wrote:Ok Steve, I still don't understand, what bug you claim to have fixed, but I'll leave you alone.

Everyone, it is obviously a bad idea to post EA files all over the topic. I'll just post what I found and you can make the changes yourself.

At line 3827 replace this

Code: Select all

	while ( time >= tradeHours[i] ) 
	{	
		if ( i == ArraySize( tradeHours ) ) break;
		i++;		
	}
with this

Code: Select all

	while ( time >= tradeHours[i] ) 
	{	
		i++;
		if ( i == ArraySize( tradeHours ) ) break;
	}
It sometimes caused 'Array out of range' errors. I don't know why, but Empty4 doesn't mind them very much, so you don't usually stumble upon them.

Also I doubt that anybody here has sunday candles at all, but if you do, you should go to line 3690 and replace this

Code: Select all

   if (BrokerHasSundayCandle)
      if (TradingTF == PERIOD_D1)
         shift = 2;
with this

Code: Select all

   if (BrokerHasSundayCandle)
      if (TradingTF == PERIOD_D1)
         if(TimeDayOfWeek(iTime(NULL,PERIOD_D1,0))==1)
            shift = 2;
Cheers.
"Perfection is Achieved Not When There Is Nothing More to Add, But When There Is Nothing Left to Take Away"...
fchaman
Trader
Posts: 119
Joined: Sat Nov 19, 2011 1:13 pm
Location: End of the world

Pipcruiser's Pipmasher

Post by fchaman »

Hi folks, Just want to confirm if anyone has got any trades triggered this week...still having bunch of buy-sell stops waiting to be triggered, but no open trades at this moment.

Really like this EA as it knows when to stay out of ranging market!
casapips
Trader
Posts: 29
Joined: Mon Dec 05, 2011 3:31 pm
Location: Paris

Pipcruiser's Pipmasher

Post by casapips »

Yes just today ..with EURNZD & NZDJPY triggered !

:clap: many thanks for this robust strategy / EA..
User avatar
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

Pipcruiser's Pipmasher

Post by matt_32 »

fchaman » Thu Nov 27, 2014 2:44 pm wrote:Hi folks, Just want to confirm if anyone has got any trades triggered this week...still having bunch of buy-sell stops waiting to be triggered, but no open trades at this moment.

Really like this EA as it knows when to stay out of ranging market!

nzdchf
eurnzd

Both triggered on Nov 27
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
Locked

Return to “Pipcruiser's Pipmasher forum”