| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Desky. TDesk's trading drone. https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5545 |
Page 23 of 50 |
| Author: | SteveHopwood [ Sun Feb 24, 2019 12:37 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
V 2x is in post 1, in response to a PM from Thomas about this scenario: It would have been great if Desky had added to the grid as the market rose, so 2x facilitates this. From the updated UG:
Code: Select all Code: Select all void DoPendingOrdersDeletionAndReplacement(string symbol, int signal, int pairIndex) Press F7 and double click the resulting error message to take you to this line of code: DoPendingOrdersDeletionAndReplacement(symbol, signal); Add the same parameter so the code looks like this: DoPendingOrdersDeletionAndReplacement(symbol, signal, pairIndex); Go back to void DoPendingOrdersDeletionAndReplacement(string symbol, int signal, int pairIndex). Scroll down to this comment: "//if (UseGridTrading)" - comments are preceded by // and are in grey text. Insert this code above the comment: Code: Select all |
|
| Author: | SteveHopwood [ Mon Feb 25, 2019 6:08 pm ] |
| Post subject: | Bloop alert |
tutank again. Thanks tutank. I have added the fix to 2x. The DIY could not be simpler. Search for this line of code: SendSellGrid(symbol, OP_SELLLIMIT, HighestSellLimitPrice, Lot, targetNoOfPendingTrades); Remove "Limit" from the variable highlighted in blue. Your code should look like this now: SendSellGrid(symbol, OP_SELLLIMIT, HighestSellPrice, Lot, targetNoOfPendingTrades); |
|
| Author: | SteveHopwood [ Mon Feb 25, 2019 6:38 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
littlereddot just emailed with an error created by the RollingGrid feature. Thanks. Fixed in post 1. To DIY, search for "if (RollingGrid)//Are we using this feature?" Scroll down a few lines until you reach this line of code: SendBuyGrid(symbol, OP_BUYSTOP, HighestBuyPrice, Lot, GridSize); This needs changing to: SendBuyGrid(symbol, OP_BUYSTOP, ask, Lot, GridSize); Scroll down a few more lines to reach: SendSellGrid(symbol, OP_SELLSTOP, LowestSellPrice, Lot, GridSize); This needs changing to: SendSellGrid(symbol, OP_SELLSTOP, bid, Lot, GridSize); |
|
| Author: | SteveHopwood [ Wed Feb 27, 2019 11:29 am ] |
| Post subject: | Desky. TDesk's trading drone. |
A little bit of DIY housekeeping folks, that I will include in the next release coming soon. This is something I noticed whilst adding offsetting to something I am coding for pipcruiser. Go to void OnDeinit(const int reason) and add these two lines of code: Code: Select all Then go to void CountOpenTrades(string symbol) and add this somewhere at the top: Code: Select all |
|
| Author: | SteveHopwood [ Wed Feb 27, 2019 3:46 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Another fabulous spot by tutank. I will release the fix in the next version but it is an easy fix for a quick DIY. There are two lines of code that are in the wrong place. Do a search for: "MarketSellsCount++;" This is too high, so remove it then look down about 5 lines for this comment: "//In case the position needs Recovery" and insert MarketSellsCount++; immediately above, like this: Code: Select all Code: Select all |
|
| Author: | SteveHopwood [ Thu Feb 28, 2019 9:59 am ] |
| Post subject: | Desky. TDesk's trading drone. |
Another quick DIY bloop fix. This one is in the rolling grid code that I noticed whilst adding another feature. The bloop allows Desky to exceed the maximum of trades by the size of the original grid. Do a search for,"if (MarketTradesTotal + GridSize <= MaxRolledTrades)//A new grid will not exceed our maximum allowed". Make sure it is not the greyed out comment that marks the end of the block. The code bit is: if (MarketTradesTotal + GridSize <= MaxRolledTrades) It needs to be: if (MarketTradesTotal + GridSize <= (MaxRolledTrades - GridSize) ) This fix will be included in the next release. |
|
| Author: | SteveHopwood [ Sun Mar 03, 2019 11:40 am ] |
| Post subject: | Desky. TDesk's trading drone. |
V 2y is in post 1. This includes those little fixes that emerged last week. Thomas had a great idea, so there is a new input in the rolling grid section. From the updated UG:
|
|
| Author: | c1borg [ Sun Mar 03, 2019 12:33 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
That's a great idea and has happened to me more than once |
|
| Author: | SteveHopwood [ Mon Mar 04, 2019 8:24 pm ] |
| Post subject: | Oops |
Folks, tutank just spotted a howler. We are talking bog-standard basic balls up here. Easiest DIY ever. Do a search for: SendBuyGrid(symbol, OP_BUYSTOP, Ask, Lot, GridSize); Replace it with: SendBuyGrid(symbol, OP_BUYSTOP, ask, Lot, GridSize); You have probably guessed the next bit. Do search for: SendSellGrid(symbol, OP_SELLSTOP, Bid, Lot, GridSize); Replace it with: SendSellGrid(symbol, OP_SELLSTOP, bid, Lot, GridSize); Folks, it is often easier to do a quick DIY than it is to download and replace the fixed version. No idea how to? I have written a guide and you can find it at http://www.stevehopwoodforex.com/phpBB3 ... 92#p166292. I am going to start writing an, "Understanding what you are Doing For Yourselves" guide. It will take a while but will eventually add to your understanding of all this stuff. Thanks again tutank. I am deeply grateful for your attention to detail. |
|
| Author: | c1borg [ Tue Mar 05, 2019 8:48 am ] |
| Post subject: | Desky. TDesk's trading drone. |
I have this repeating error no idea if its a bug. Could be my mistake and im certainly not proficient enough as a coder to spot this yet, however I will attempt to figure it out. Analysis so far, I have 1 NZDUSD trade active and no pending trades. I am also using the new Rolling Grid feature set to enabled and so I tried to disable that feature but it still happens. Im also using the feature on another demo with no issues. My observation is It seems to be attempting to place the trade above the current one, is that a clue. Edit...... Ok tracked it down to the setting UseAtrForGrid which I have set to true with the default settings seems to be causing the problem.
|
|
| All times are UTC | Page 23 of 50 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|