| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Slopey Peaky Bob https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5389 |
Page 12 of 84 |
| Author: | Zennor [ Sun May 20, 2018 6:46 am ] |
| Post subject: | Slopey Peaky Bob |
Steve that is a great idea, regarding my recent trading I had thought that the TP should be proportional to the lot size hence the reason for my increase to see if the risk/reward was a viable option. I was also considering the fact that trading possibly so many pairs the chicken route as you call it certainly has its merits if you want a stress free life. So I'm now looking at the viability of trading fewer but uncorrelated pairs with a higher lot size so say if the USD heads south it only does it on one pair or two pairs at most and not a host of pairs. Still tinkering with this idea at the moment. |
|
| Author: | SteveHopwood [ Sun May 20, 2018 10:07 am ] |
| Post subject: | Slopey Peaky Bob |
Preparing this post highlighted a bloop that means that SPB will use the dynamic lot size calculation whether you want him to or not, so please re-download 1i. I forgot to explain 1i for the DIY enthusiasts, so here goes: Do a search for "void AutoTrading()" and add this function directly above: Code: Select all "}//if (ForceWholePositionClosure)". Insert this code block underneath: Code: Select all Code: Select all Code: Select all Code: Select all Code: Select all Code: Select all |
|
| Author: | woodlands [ Sun May 20, 2018 1:02 pm ] |
| Post subject: | Slopey Peaky Bob |
I have been away for some weeks and left SPB unattended on the (Eaymon) VPS and now catching up My £2 profit/ M5 setup hasn't worked out..... Both these have been running without intervention for 8 weeks But the 'normal' £30 / H4 is looking after itself fine..... This includes the TCRSS tests which are still above water |
|
| Author: | 1of3 [ Mon May 21, 2018 3:13 pm ] |
| Post subject: | Slopey Peaky Bob |
Hi Steve, I found a bug in the AutoTrading function. You need to change the following code (that's just under the ForceWholePositionClosure function) Code: Select all Code: Select all Thank you for this wonderful EA. John |
|
| Author: | SteveHopwood [ Mon May 21, 2018 3:38 pm ] |
| Post subject: | Slopey Peaky Bob |
Thanks John. I added the extra line in On Init() but forgot here. I will post the fix later folks. Lucky64 sent me the code to add this feature to the individual pair baskets, so I will release the fix at the same time - just got a few lines to add to the user guide first. DIYers, this is an easy fix: start at the top of the code and do a search for "//Dynamic basket TP applied to a fixed lot size". There are two of them and the second one needs the line of code adding that John mentions. |
|
| Author: | SteveHopwood [ Mon May 21, 2018 4:03 pm ] |
| Post subject: | Slopey Peaky Bob |
V 1j is in post 1; this includes John's fix in my previous post. Luciano (Lucky64) sent me the code that allows SPB to calculate a dynamic TP for single pair baskets. Nice one Luciano. I have updated the user guide but you only need it if you are new to all this. The inputs in the "Individual pairs" basket inputs are obvious and work in the same way as for whole position basket trading. Three steps for DIY: Do a search for "extern double IndividualBasketTargetCash" (clear the "Match whole word only" tickbox). Insert this code directly underneath: Code: Select all Code: Select all Code: Select all Code: Select all |
|
| Author: | 4xtn [ Mon May 21, 2018 10:31 pm ] |
| Post subject: | Slopey Peaky Bob |
Hi there Anyone else is having pending orders cancelled and sent over & over again with 'DeletePendingsOnOppositeColour=true? AUDCHF pair @ H1 Peaky|D1 SS? |
|
| Author: | SteveHopwood [ Mon May 21, 2018 11:08 pm ] |
| Post subject: | Slopey Peaky Bob |
I cannot find this variable. |
|
| Author: | Peepaws [ Tue May 22, 2018 5:25 pm ] |
| Post subject: | Slopey Peaky Bob |
Steve, I have been trading a live account with a 500 pip basket TP for a month or so with very good results so far. I have split my account into 3 smaller accounts to test 100 pip, 200 pip and 500 pip baskets. I am just waiting for Myfxbook to verify the new accounts before I can make them public. I will post myfxbook links as soon as possible. |
|
| Author: | SteveHopwood [ Wed May 23, 2018 10:07 am ] |
| Post subject: | Slopey Peaky Bob |
V 1k is in post 1. Radar emailed to say that the dynamic whole-position basket TP was not updating. I saw loads wrong with the code when I looked, so 1k is attempting to fix this. You do not need the update if you are not basket trading. The DIY is relatively simple. Do a search for "void CalculateDynamicBasketCashTP()" and replace it with: void CalculateDynamicBasketCashTP(double lots) Doing a recompile will highlight a lot of errors; ignore them for now. Go to the top of the file and do a 'Match whole word only' for "UseDynamicCashTP". The first one will take you to the variable declaration; leave that alone. Repeat the search. It will take you to a code block in int OnInit(). Replace the block with this: Code: Select all Repeat the search a third time and you will find yourself in void Autotrading(). Replace the code block with the one you just copied into int OnInit(). Press the F7 key to recompile. There will be two wrong parameters count errors. Double click the first one to be taken to the first error. The code is " CalculateDynamicBasketCashTP();". Replace it with: CalculateDynamicBasketCashTP(LotSize); Re-compile and there will be one error left. Navigate to it and replace "CalculateDynamicBasketCashTP();" with: CalculateDynamicBasketCashTP(Lot); |
|
| All times are UTC | Page 12 of 84 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|