| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Slopey Peaky Bob https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5389 |
Page 54 of 84 |
| Author: | Dragonian [ Thu Feb 07, 2019 1:00 pm ] |
| Post subject: | Slopey Peaky Bob |
Thank you Steve :hi: |
|
| Author: | SteveHopwood [ Sun Feb 10, 2019 4:37 pm ] |
| Post subject: | Slopey Peaky Bob |
Mauro spotted one of my copy-paste-forget to edit bloops in the shirt protection function is the Latest version. I have uploaded a fix to post 1. DIY: do a search for, "//Close the entire position if we are in danger of a margin call." You will see this three lines down: if (ml < DeletePendingsBelowThisMarginLevelPercent) Change it to: if (ml < CloseDeleteAllBelowThisMarginLevelPercent) |
|
| Author: | SteveHopwood [ Thu Feb 14, 2019 10:17 am ] |
| Post subject: | Slopey Peaky Bob |
Latest V 2a is in post 1, with a fix for the problem described in Mauro's pm to me this morning: This probably applies to Desky as well, but I will look at that later. Easy DIY. Go to, "bool IsTradingAllowed(string symbol, int PairIndex)" and add this code block: Code: Select all |
|
| Author: | SteveHopwood [ Sat Feb 16, 2019 4:20 pm ] |
| Post subject: | Slopey Peaky Bob |
SPB Latest V 2c is in post 1. I have added a new feature to grid trading. This is the option to use the order open price of the next trade in the grid as the take profit of the one being sent to the server. The input is UseNextLevelForTP. This is a simple DIY. Do a search for this variable, "extern double GridAtrDivisor". Insert this code underneath: Code: Select all take = CalculateTakeProfit(OP_BUY, price); Replace it with this block: Code: Select all take = CalculateTakeProfit(OP_SELL, price); Replace it with this block: Code: Select all |
|
| Author: | billv [ Sat Feb 16, 2019 11:06 pm ] |
| Post subject: | Slopey Peaky Bob |
Many thanks Steve, will give it a test :hi: |
|
| Author: | billv [ Mon Feb 18, 2019 7:52 am ] |
| Post subject: | Slopey Peaky Bob |
Hi Steve Is this code only meant to place TP on the 1st grid of 5 orders? Regards Bill |
|
| Author: | SteveHopwood [ Mon Feb 18, 2019 10:47 am ] |
| Post subject: | Slopey Peaky Bob |
Mauro spotted a logic bloop in the code that sets grid trades take profit at the open price of the next trade. Thanks again Mauro. Fixed in post 1. A DIY is easy. Do a search for, "//Set the tp at the open price of the next trade". The next line of code is: take = price; This needs replacing with: take = NormalizeDouble(price + (DistanceBetweenTrades/factor), digits); Repeat the search and you will land in the function that sends sell grids. The next line of code will again be: take = price; This needs replacing with: take = NormalizeDouble(price - (DistanceBetweenTrades/factor), digits); |
|
| Author: | barry [ Tue Feb 19, 2019 9:19 am ] |
| Post subject: | Slopey Peaky Bob |
billv, this looks like a nice idea, thanks for posting it. Do you have this account on FXTestify or anywhere else it can be followed? I would like to look at the results more closely, thanks. |
|
| Author: | billv [ Tue Feb 19, 2019 10:33 am ] |
| Post subject: | Slopey Peaky Bob |
Hi Barry I believe it is essential for this type of trading and we can thank Thomas for putting in this code. I cannot participate with this account in fxtestify because it is live and I intervene manually (closing and adding new orders). You can experiment with these settings and see what works for you. Lot=0 LotsPerDollopOfCash=0 RiskPercent=2 SL=1400 ( try higher or lower SL and see what lot size you get) As a general rule, I would let the pairs which have the highest pip value be traded at the minimum size (0.01) and I would let the others be traded at 0.02, 0.03 etc I have now set some of my test accounts to 2% and 1400, and others to 2.5% and 1400 These settings work for my AUD account and they would be different for a different base currency but in my opinion we don't need surgical precision. We only want to balance our trade size so that a 1 pip move would have approximately the same impact on any traded pair. This would help reduce our DD. |
|
| Author: | SteveHopwood [ Thu Feb 21, 2019 5:29 pm ] |
| Post subject: | Slopey Peaky Bob |
I have written a do it yourself for beginners guide. http://www.stevehopwoodforex.com/phpBB3 ... 92#p166292 |
|
| All times are UTC | Page 54 of 84 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|