Awesome - original version

The place for Peaky and Peaky-related stuff.
Post Reply
szfxtrader
Trader
Posts: 377
Joined: Sun Feb 10, 2013 9:36 am

Awesome

Post by szfxtrader »

Hi Steve,

What do you think about a MA and candles filters(H4 and D1)?

Example: The EA will just buy if the bid is above the MA price and the H4 and D1 open prices. The MA TF can be different of the trading TF(example: trading M1, but using the H4 MA).

All the best,
Marcelo
Johann
Posts: 4
Joined: Sat Sep 24, 2016 12:08 pm

Awesome

Post by Johann »

SteveHopwood » Mon Jul 31, 2017 5:49 pm wrote:
Johann » Mon Jul 31, 2017 4:14 pm wrote:Hi all,

I have started the test this morning and I might have found a bug with the global basket closure feature.
Nice spot. Thanks. :clap: :clap: :clap: :clap:

There is a fix in post 1 - you do not need it if you are not treating every trade on the platform as part of the same basket.
Thanks for the fix !
I want to report another bloops (hey that is what testing is all about right ??).

The recovery feature for buy trades is not working, but it is only working for the sell trades :

Code: Select all

   //Are we in Recovery?
   if (UseRecovery[index] )
   {
      if (MarketBuysCount >= TradesToConstituteRecovery[index])//Minimum trades to constitute Recovery
         if (BuyLoser)//One of them must be a loser or we do not need Recovery
            BuysInRecovery = true;
            
      if (MarketSellsCount >= TradesToConstituteRecovery[index])//Minimum trades to constitute Recovery
         if (SellLoser)//One of them must be a loser or we do not need Recovery
            SellsInRecovery = true;
            
   }//if (UseRecovery[index] )
   
you can search for the variable "BuyLoser", no value is set outside it init values (set to false).
But the "SellLoser" variable has a value correctly set :

Code: Select all

         //Sells
         if (OrderType() == OP_SELL)
         {
            //Recovery
            ArrayResize(SellTickets, MarketSellsCount + 1);
            SellTickets[MarketSellsCount] = OrderTicket();
            //In case the position needs Recovery
           [b] if ( (OrderProfit() + OrderSwap() + OrderCommission()) < 0 )
               SellLoser = true; [/b] 
This last line of code has been suppressed for the "buys". I have added it again and test running right now !
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.

Awesome

Post by SteveHopwood »

Johann » Thu Aug 03, 2017 10:04 am wrote:
Thanks for the fix !
I want to report another bloops (hey that is what testing is all about right ??).

The recovery feature for buy trades is not working, but it is only working for the sell trades :

Code: Select all

   //Are we in Recovery?
   if (UseRecovery[index] )
   {
      if (MarketBuysCount >= TradesToConstituteRecovery[index])//Minimum trades to constitute Recovery
         if (BuyLoser)//One of them must be a loser or we do not need Recovery
            BuysInRecovery = true;
            
      if (MarketSellsCount >= TradesToConstituteRecovery[index])//Minimum trades to constitute Recovery
         if (SellLoser)//One of them must be a loser or we do not need Recovery
            SellsInRecovery = true;
            
   }//if (UseRecovery[index] )
   
you can search for the variable "BuyLoser", no value is set outside it init values (set to false).
But the "SellLoser" variable has a value correctly set :

Code: Select all

         //Sells
         if (OrderType() == OP_SELL)
         {
            //Recovery
            ArrayResize(SellTickets, MarketSellsCount + 1);
            SellTickets[MarketSellsCount] = OrderTicket();
            //In case the position needs Recovery
           [b] if ( (OrderProfit() + OrderSwap() + OrderCommission()) < 0 )
               SellLoser = true; [/b] 
This last line of code has been suppressed for the "buys". I have added it again and test running right now !
Lovely spot again. Thanks. :clap: :clap: :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.
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.

Awesome

Post by SteveHopwood »

I have added a revised version of my Nuclear Option script to post 1. A magic number of -1 tells it to close/delete all trades on the platform, regardless of origin and magic number. Use with care.

Awesome V 1a is in post 1, containing:
  • a fix for the bug Johan spotted.
  • a fix for the non-working negative swap filter. I had coded, resized and initialised all the relevant arrays etc, but had forgotten to code the actual filter.
  • a maximum spread filter. You will see the usual MultiplierToDetectStopHunt input underneath the Flying Buddha inputs.
  • Baluda sent me the code to internalise the Flying Buddha calculations so Awesome no longer needs the smFlyingBuddha indi. Thanks Paul; that is a fabulous contribution. :clap: :clap: :clap: :clap: :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.
User avatar
1Direction
Trader
Posts: 97
Joined: Sun Jan 29, 2017 8:37 pm
Location: London

Awesome

Post by 1Direction »

Thanks for the fixes and additional functionality :mrgreen:

Can we have a brief discussion about the positive swap filter

As TJF stated yesterday "With the M1 basket set running 0.01 on all pairs I would suggest that keeping it running is fine. If there is a big gap down on one pair there may well be a gap up on another so it should average out in the end."

Now if we use positive swaps=true would this not increase our exposure into one direction of the currencies pairs and increase our global risk exposure (gabs, weekends, news). On the other side the positive swaps has a big impact on the performance specially for higher TF and longer running trades.

My feeling would be to disable positive swaps on the M1 and keep it for the higher time frames as I've only limited experience with +swaps pairs please do correct me if wrong.

Thanks
User avatar
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Awesome

Post by TraderJoeForex »

SteveHopwood » Thu Aug 03, 2017 10:39 am wrote:I have added a revised version of my Nuclear Option script to post 1. A magic number of -1 tells it to close/delete all trades on the platform, regardless of origin and magic number. Use with care.

Awesome V 1a is in post 1, containing:
  • a fix for the bug Johan spotted.
  • a fix for the non-working negative swap filter. I had coded, resized and initialised all the relevant arrays etc, but had forgotten to code the actual filter.
  • a maximum spread filter. You will see the usual MultiplierToDetectStopHunt input underneath the Flying Buddha inputs.
  • Baluda sent me the code to internalise the Flying Buddha calculations so Awesome no longer needs the smFlyingBuddha indi. Thanks Paul; that is a fabulous contribution. :clap: :clap: :clap: :clap: :clap:
:xm:
Excellent... And thank you too Paul.
User avatar
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Awesome

Post by TraderJoeForex »

1Direction » Thu Aug 03, 2017 11:24 am wrote:Thanks for the fixes and additional functionality :mrgreen:

Can we have a brief discussion about the positive swap filter

As TJF stated yesterday "With the M1 basket set running 0.01 on all pairs I would suggest that keeping it running is fine. If there is a big gap down on one pair there may well be a gap up on another so it should average out in the end."

Now if we use positive swaps=true would this not increase our exposure into one direction of the currencies pairs and increase our global risk exposure (gabs, weekends, news). On the other side the positive swaps has a big impact on the performance specially for higher TF and longer running trades.

My feeling would be to disable positive swaps on the M1 and keep it for the higher time frames as I've only limited experience with +swaps pairs please do correct me if wrong.

Thanks
Need to forward test both side by side and observe differences in drawdown etc... +ve swap filter should be a big help for smaller accounts as a logical way to reduce pairs and for longer term strategies etc.
User avatar
eaymon
Trader
Posts: 187
Joined: Wed Dec 16, 2015 3:18 pm

Awesome

Post by eaymon »

News has wiped out any profit I had... well floating loss...
we'll see how it goes.

I'll put together some code to avoid trading a currency at least 30-60 minutes before any major news event and resume 4-6 hours later.
celte83
Trader
Posts: 157
Joined: Sat Jan 21, 2012 7:51 pm
Location: Gonfaron - Var 83 - France

Awesome

Post by celte83 »

Hi
Max DD actually is - 900 pips :?
You do not have the required permissions to view the files attached to this post.
Johann
Posts: 4
Joined: Sat Sep 24, 2016 12:08 pm

Awesome

Post by Johann »

celte83 » Thu Aug 03, 2017 12:21 pm wrote:Hi
Max DD actually is - 900 pips :?
Hi,

If you can't handle such drawdown, then I suggest you limit the number of pair to trade and the number of recovery trade. I have divided them by two regarding the original setfile from TJF.
In that way maybe you will have less profit because it would take more time to close the basket but you will limit the DD as well.
in some case DD would be inevitable but hey, we can't just trade without suffering some loss!
Post Reply

Return to “Peaky forum”