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

Slopey family general discussion and reports
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5402
Page 5 of 7
Author:  SteveHopwood [ Sun Apr 01, 2018 10:08 am ]
Post subject:  Slopey family general discussion and reports

Results in the week ending 30th March 2018. First figure is for the week, second is cumulative:

Peaky +415 +4696
Griddy +183 +820
Holy -86 +1154
Buddha -755 +577

:xm: :rocket:
Author:  SteveHopwood [ Sun Apr 08, 2018 10:19 am ]
Post subject:  Slopey family general discussion and reports

Results for the week ending 6th April 2018:

Peaky +1523
Griddy +208
Buddha -289
Holy -297

:xm: :rocket:
Author:  SteveHopwood [ Sun Apr 08, 2018 2:42 pm ]
Post subject:  Slopey family general discussion and reports

I have experimented by reversing the polarities of the Flying Buddha. Details at
http://www.stevehopwoodforex.com/phpBB3 ... 104&t=5432

:xm: :rocket:
Author:  SteveHopwood [ Sun Apr 15, 2018 10:18 am ]
Post subject:  Slopey family general discussion and reports

Results for the week ending 13th April 2018
Peaky +1142
Reverse Buddha +969 New EA this week
Griddy +405
Holy -79
Buddha -190

:xm: :rocket:
Author:  SteveHopwood [ Sat Apr 21, 2018 4:59 pm ]
Post subject:  Slopey family general discussion and reports

This is part of a PM I received from Thomas earlier.
tomele wrote:Hi Steve.

Three of my 4 tests still didnt close their trades on Friday. Holy did, while Griddy, Peaky and Crossy refused.
Anyone else experience the failures?

:xm: :rocket:
Author:  SteveHopwood [ Sun Apr 22, 2018 9:52 am ]
Post subject:  Slopey family general discussion and reports

Results for the week ending 20th April 2018. Oops.

Peaky 0
Holy -45
Buddha -63
Reverse -377
Griddy -1584


:xm: :rocket:
Author:  SteveHopwood [ Sun Apr 22, 2018 10:21 am ]
Post subject:  Slopey family general discussion and reports

I have made the changes suggested by radar http://www.stevehopwoodforex.com/phpBB3 ... 49#p161249 to the entire family apart from Moving, which was a failure from the start. I have also made the changes to the shell.

There is no hurry to re-download as these changes only affect the Friday/Saturday closure functions.

It is easy to DIY. Do a search for, "void ShutDownForTheWeekend()" and copy this over the top of the entire function:

Code: Select all

void ShutDownForTheWeekend()
{

   //Close/delete all trades to be flat for the weekend.
   
   int day = TimeDayOfWeek(TimeLocal() );
   int hour = TimeHour(TimeLocal() );
   bool CloseDelete = false;
   
   //Friday
   if (day == 5)
   {
      if (hour >= FridayCloseAllHour)
         if (TotalCashUpl < 0)
         {
      	   if (TotalCashUpl >= MaxAllowableCashLoss)//MaxAllowableCashLoss is a negative number
               CloseDelete = true;
         } //if (TotalCashUpl < 0)
   }//if (day == 5)
 
   //Saturday
   if (day == 6)
   {
      if (hour >= SaturdayCloseAllHour)
         if (TotalCashUpl < 0)
         {
      	   if (TotalCashUpl >= MaxAllowableCashLoss)//MaxAllowableCashLoss is a negative number
               CloseDelete = true;
         } //if (TotalCashUpl < 0)
   }//if (day == 6)
   
   if (CloseDelete)
   {
      CloseAllTrades(AllSymbols, AllTrades);
      if (ForceTradeClosure)
         CloseAllTrades(AllSymbols, AllTrades);
      if (ForceTradeClosure)
         CloseAllTrades(AllSymbols, AllTrades);
   }//if (CloseDelete)
      

}//End void ShutDownForTheWeekend()
:xm: :rocket:
Author:  Radar [ Tue Apr 24, 2018 2:49 am ]
Post subject:  Slopey family general discussion and reports

Hey Steve,

The gears in my noggin were slowly grinding, and I realised that,

Code: Select all

if (TotalCashUpl < 0)
{
...
}
would only allow baskets with a floating loss to close... Baskets with floating profit will stay open over the weekend. :(

Ahh, the joys of of sporadic coding ;)

My memory is like one of them round things with holes in it...
It starts with "S"...

Swiss cheese! My memory's like a wheel of Swiss cheese! ;)

Take care,
&
Have fun! =8^)
Author:  SteveHopwood [ Wed Apr 25, 2018 8:00 pm ]
Post subject:  Slopey family general discussion and reports

I had completely forgotten radar's post just above this one - or maybe missed it. Sorry radar. Thomas just sent me a pm pointing out the same thingy.

This bloody function is starting to seriously annoy me. We are talking pre-infant school level coding. Morons banned for life from SHF could have coded it, yet I have fucked it up at ever stage of the way. :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg:

I have made the required changes to the entire family apart from Moving, which was a failure from the start. I have also made the changes to the shell.

There is no hurry to re-download as these changes only affect the Friday/Saturday closure functions.

It is easy to DIY. Do a search for, "void ShutDownForTheWeekend()" and copy this over the top of the entire function:

Code: Select all

void ShutDownForTheWeekend()
{

   //Close/delete all trades to be flat for the weekend.
   
   int day = TimeDayOfWeek(TimeLocal() );
   int hour = TimeHour(TimeLocal() );
   bool CloseDelete = false;
   
   //Friday
   if (day == 5)
   {
      if (hour >= FridayCloseAllHour)
         if (TotalCashUpl >= MaxAllowableCashLoss)//MaxAllowableCashLoss is a negative number
            CloseDelete = true;
   }//if (day == 5)
 
   //Saturday
   if (day == 6)
   {
      if (hour >= SaturdayCloseAllHour)
         if (TotalCashUpl >= MaxAllowableCashLoss)//MaxAllowableCashLoss is a negative number
            CloseDelete = true;
   }//if (day == 6)
    
   if (CloseDelete)
   {
      CloseAllTrades(AllSymbols, AllTrades);
      if (ForceTradeClosure)
         CloseAllTrades(AllSymbols, AllTrades);
      if (ForceTradeClosure)
         CloseAllTrades(AllSymbols, AllTrades);
   }//if (CloseDelete)
      

}//End void ShutDownForTheWeekend()

Ever heard the phrase, "Don't shoot the messenger?"

The next messenger about this bloody function had better be wearing Gracie as body armour.

:oops:
Author:  Gertje [ Thu Apr 26, 2018 8:43 pm ]
Post subject:  Slopey family general discussion and reports

SteveHopwood ยป Wed Apr 25, 2018 8:00 pm wrote: Ever heard the phrase, "Don't shoot the messenger?"

The next messenger about this bloody function had better be wearing Gracie as body armour.

:oops:
Or carry a folder..... :smile:
All times are UTC Page 5 of 7