Moving Day

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.

Moving Day

Post by SteveHopwood »

V 1g is in post 1. I was looking at updating the SPB Core LIbrary with some of the edits I made to MD and Desky. I copy/pasted the changes into the core library and noticed that some of the logic is wrong. :arrrg:

The easiest DIY is to download 1g, go to void countOpenTrades(string symbol, int pairIndex) and copy/paste the entire function over the top of the version you want to keep. Go to line 3056 in the downloaded version 1g to see how I have changed the logic.

:xm: :rocket:
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.

Moving Day

Post by SteveHopwood »

I have listed a couple more accounts in post 2. Both use the latest gizzmos.

:xm: :clap:
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
c1borg
Trader
Posts: 456
Joined: Sun Aug 14, 2016 5:09 pm

Moving Day

Post by c1borg »

For your information I have abandoned my original setup and started a new fresh test with the attached setfile which seems to be doing well so far, the new changes seem to be helping :smile: however early days :hi:
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.

Moving Day

Post by SteveHopwood »

Something for you folks to bear in mind when downloading updates - viewtopic.php?p=169918#p169918

I never think about this as I am always using the latest version of my software. You folks definitely need to bear it in mind.

:xm: :rocket:
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.

Moving Day

Post by SteveHopwood »

There is a teensy update to 1g in post 1. biobier spotted that the code to display an insufficient margin has gone awol, so I have replaced it. Remember either to delete the current Moving Day.ex4 file to force Empty4 to compile the downloaded version.

DIYers, do a search for: sm(version + NL);

Add this underneath:
sm(marginMessage + NL);

You will not see any visual difference because MD only displays the message when there is insufficient margin for trading.

:xm: :rocket:
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.

Moving Day

Post by SteveHopwood »

V 1h is in post 1.

Sending an initial stop order followed by a grid still had problems. The first of the additional grid stop orders was being sent at twice the distance it should when buying, and at the same price as the initial trade when selling. This is fixed in 1h.

Or go to: void lookForTradingOpportunities(string symbol, int pairIndex) then search for this comment:
//Send the grid

Copy this over the top of the existing code block:

Code: Select all

            //Send the grid
            getBasics(symbol);
            if (type == OP_BUYSTOP)
               sendBuyGrid(symbol, OP_BUYSTOP, price, sendLots, TradeComment);
            else
               sendSellGrid(symbol, OP_SELLSTOP, price, sendLots, TradeComment);
The extra call to getBasics() probably is not needed but does no harm.

That fixed the buys but not the sells, so I had a look at:
void sendSellGrid(string symbol,int type,double price,double lot,string comment)

Search for this line of code:
price = NormalizeDouble(bid - (distanceBetweenTrades / factor), digits);

'bid' should be 'price' in that equation i.e.:
price = NormalizeDouble(price- (distanceBetweenTrades / factor), digits);

:xm: :rocket:
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.

Moving Day

Post by SteveHopwood »

V 1i is in post 1.

I have added the ability to set the stop loss at your choice of pips on the opposite side of the moving average. From the updated guide:
OppositeSideStopLossPips: this tells Moving Day to set the stop loss x pips away from the D1 moving average. This is for those occasions when the market moves a long way away from a trade's open price before the new candle opens and Moving Day closes the trade. This overrides any value you place in the StopLossPips input.
MD turns into a monster when a pair takes off in the right direction and fills grid stop orders. I saw on demo yesterday a position that was over $5,000 in profit, so I used the Nuclear Option script to close it. This is a new $20,000 demo started on Monday. It is now worth $26,550. I have added an input in the all-trades-belong-to-a-basket section. From the updated guide:
KnockOffForDayAfterClosure: this tells Moving Day to stop trading for the day following a successful basket closure. He will start trading again at the open of the next D1 candle.
Scaling out/in has been a failure for me. I shall restart demos next week with different grid/basket inputs and no scaling. We would all be interested if anyone manages to make it work profitably. I have added a new set file to post 1 - "MD grid and basket.set".

I have added a new function to the Position Monitoring indi. This displays the cash and pips value of each individual trade.

Have fun with this folks. I am.

:xm: :rocket:
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.

Moving Day

Post by SteveHopwood »

Scaling created a massacre of the extra demos I listed in post 2.

The original that started off this whole thingy has been murdered by chop this week.

The demo $20,000 with gridding but no scaling I started on Monday and reached over $26,000 by Weds has held its own by the weekend, just. I have closed down for the weekend at $26,522.

I shall abandon a lot of scaling demos over the weekend. I shall leave the original in place, for those of us who understand the bigger picture.

More over the weekend to come. Stay safe folks.

:xm: :rocket:

Just to remind any folks who have forgotten, SPB continues to accumulate profits slowly but steadily. There are long periods of DD. There are long periods of not trading at all. It remains the only EA I have ever successfully traded live for any length of time - 2 years and counting. viewtopic.php?p=159559#p159559 Just reminding you folks.
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.

Moving Day

Post by SteveHopwood »

Grid trading is clearly the way to go, so I have abandoned the scaling demos as I found them merely to be death by a thousand cuts.

I want to see how far we can push the global basket take profit thingy, so I have set up three more demos - details in post 2 with passwords etc if you want to follow along.

:xm: :rocket:
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
c1borg
Trader
Posts: 456
Joined: Sun Aug 14, 2016 5:09 pm

Moving Day

Post by c1borg »

SteveHopwood » Sun Apr 19, 2020 4:26 pm wrote:Grid trading is clearly the way to go, so I have abandoned the scaling demos as I found them merely to be death by a thousand cuts.

I want to see how far we can push the global basket take profit thingy, so I have set up three more demos - details in post 2 with passwords etc if you want to follow along.

:xm: :rocket:
Ive come to exactly the same conclusion my demos were destroyed using the scaling, we will see :smile:
Post Reply

Return to “Moving Day”