Trading Issues

Viewing 9 posts - 1 through 9 (of 9 total)
  • #82392

    Hi Nicolas

    After my chat with IG I returned to work on PRT and again a number of strategies had bombed out that I decided it was time to record things live and see what was going on

    I uploaded the vid here https://youtu.be/plA8f5ttxEo (sorry yes it is quite long but just use the speed control on YouTube to FFWD the slow bits and slow it down when it gets to the trades)

    I don’t usually work on the USDCAD but wanted a ‘clean sheet’ so as not to clutter things up with any other strategies running but for sure it has way more problems than the other pairs I usually trade – so much so that I am beginning to get worried I’ve got something wrong somewhere by just suddenly switching over to the USDCAD pair so was hoping you could take a look at the code below (probably I shouldn’t have used the RANDOM stuff but other than that it looks pretty simple and straightforward to me) and let me know if it looks ok please?

    You will see the first trade goes off without a hitch/as it is supposed too but after that some really weird things are going on – too many to mention but for example check out the wandering STOP LIMIT order that is way too large (haven’t noticed that running this on other pairs to be honest) and how it closes a trade out early using a mysterious BUY order (the strategy should either gain approx £4.70 or lose £4.10 give or take for slippage of course but I can’t see anything ‘volatile’ going on) – also check out the BID and ASK prices on the chart as compared to what is showing on the IG dashboard as they are rarely correct – unfortunately I didn’t get the IG dashboard over into the vid before the ‘rejected’ order about minimum stop distance being 14 but it remains at 4 otherwise throughout the video and there was no massive volatility that would suggest the burst to 14 but for sure it could have been the case/will never know but it looks unlikely

    Perhaps there are logical explanations to all that is going on from an order execution point of view as I appreciate this is the real world and orders are not executed instantaneously or perhaps understandably it is down to refresh rates/anomalies in the PRT GUI or perhaps there is fundamentally something wrong in the PRT/IG server communication but whatever it is it would be great to know what the reasons are so as to better be able to understand why this is happening and make allowances accordingly in future coding efforts

    Many thanks

    MaxT

     

     

    #82399

    OK… another (shorter) vid – https://youtu.be/ZqkBrC4Bn1A

    I just went back to take a look how things were progressing and noticed the detailed reports didn’t look anything like what the ProOrder window was showing for the strategy – to be fair I did momentarily get disconnected from the internet and know about issues with the values being messed up when this happens but not only does the ‘fresh’ detailed report not bear any resemblance to the ones that had been left open it also does not have the same trades as the previous video (£0.90 and £3.80 at 15:04/15:05 as highlighted in the picture snapshot I overlay in the video) – how can that be?

    I also show the detailed report from another strategy using the same code that has been running most of today on the EURUSD but using 8 and 7.5 for LIMIT/STOP and you can see the £1.50 trade that occurs in the same second… this has been happening a lot and with this ‘wider’ S/L cannot see why this would be down to slippage or anything along those lines

    I appreciate/understand it is a known fact it is necessary to close/reopen the detailed reports/ProOrder window in order to get accurate results but it is concerning to see trades that clearly happened no longer showing or am I missing something/is there some explanation as to what is going on? (I as I am sure others do leave strategies running for days/weeks+ and go in to check the detailed reports and sift down through the entries – a loser that is highly unlikely ever to recover is binned and back to the drawing board but are they not accurate/the information cannot be relied upon/is this a low priority demo only issue?)

    #82421

    am I missing something/is there some explanation as to what is going on?

    Do you know about the Detailed Reports weird thing that if you select Today (to get Trades for Today) then the Detailed Report only shows Trades that were opened AND closed Today.

    Same logic (illogic) applies for Weekly, Monthly etc.

    #82424

    MAXGAIN=POINTSIZE*4.7 MAXLOSS=POINTSIZE*4.1

    Aren’t above very close to (too clos?) minimum margin for your chosen Market?

    Likely overnight above are less than minimum margin at volatile periods and so may produce weird happenings?

    Try 14.7 and 14.1 and see if you get same Issues you write about?

    Just a few initial thoughts.

    #82428

    I still haven’t watch the videos, but the minimal stop distance for USDCAD is 4 points: https://www.ig.com/uk/forex/markets-forex/usd-cad

    Embed the spread and the slippage and 4.1 is not enough to put pending orders.

    #82432

    Thanks for the input GraHal and know you mean well but have you actually looked at the vids/read what I’ve written?

    This is 1 second TF opening a new trade on open of next minute after trade closed – this is nothing to do with date range selection on detailed report/you can see everything very clearly in the vids

    Yes the values are close but ummm so what (and what do you think is happening with your so carefully and lovingly crafted over months/years daily/weekly/monthly TF strategies as you check back day after day as one’s life slowly ebbs away waiting and watching for the trades to painstakingly roll in are doing at the point of order execution when conditions are met? Is it not essentially what is happening on the 1s TF and will be subject to the same issues as are occuring in the vid? In other words I see the 1s TF as a speeded up version of events that is relevant to all TF’s if you know what I mean) and I also show the detailed report of same strategy with 8 and 7.5 on EURUSD which is plenty and it has a similar anomaly

    Look at the vids and slow it down and look at what is going on with the trades being transmitted between the PRT/IG servers – it looks well messed up!

    There was another thread a while back about what alternatives – FREE – are there to PRT? Also I posted a long time back about a vid I watched of someone saying MT4 was old hat and much better systems out there so have never looked into it – other than no server side order execution with MT4 (which yes is a pro of PRT but of what use if the platform is unreliable and a never ending technical headache?) which was a requirement of mine at the time for a suitable platform but I can’t think what else there was putting me off from trying it… here goes

    #82433

    I still haven’t watch the videos, but the minimal stop distance for USDCAD is 4 points: https://www.ig.com/uk/forex/markets-forex/usd-cad

    Embed the spread and the slippage and 4.1 is not enough to put pending orders.

    Your comment is noted Nicolas but I do not concur – such an issue would give an error message of ‘Minimum Stop Distance is X for this market’ and the code states TRADERICE(1)-MAXLOSS so spread is already taken into account but yes there could be a spread burst on the next candle that would cause issues but anyway that is not happening other than the (I think erroneous) one where it stated the stop distance is 14

    Basically it would/should report the error message about minimum stop distance if what you say is the reason for all the weird going on’s in the video but this is not happening so please do watch them Nicolas even just a speeded up quick flick through I think you will see some things going on in there that will raise an eyebrow or two that are nothing to do with what you’ve said (BID/ASK prices not correct between IG/PRT for example or the wandering STOP or the trades that showed in the first video but are no longer in the detailed report opened up ‘fresh’ later on – what is going on?)

    Also I show the same strategy with 8 and 7.5 on EURUSD – minimum stop distance is 2 occasionally bursting to 6 (and of course potentially more at times but rarely if ever have I seen it within core UK trading hours go above 6) so that explanation does not explain why this strategy entered and exited a position within the same second with a loss of £1.50

    #82446

    This is all burning a hole in my head… I realise now it was incorrect to have used 4.1 on the USDCAD pair – TRADEPRICE(1)-MAXLOSS at 4.1 does not take into account the spread – if it is a BUY for example the stop is being placed 4.1 below that BUY price but yes it is the SELL price that it should be deducting the 4.1 from in order to negate the spread (but we aren’t privileged to ‘know’ that information) and generally I am annoyed at myself that I used this example as my flagship debut on YouTube (unlisted vids not public) to highlight the issues – I remember now that is why I used 7.5 on the EURUSD pair – 6 for the ‘maximum’ min distance burst and 1.5 the ‘maximum’ spread burst – I should have used the max min distance and spread burst for USDCAD but I dont know them/don’t watch this pair at all so basically I have screwed up flipping over to using USDCAD

    That said I still stand by the fact that if the orders can’t be placed (well actually they are being placed as I said before the placing of orders is not the issue here) then there should be the min stop distance error generated and that is not happening on the whole whereas there are more than enough other odd things going on that I can’t see how they are explained away by this suggestion…

    #82533

    OK I think I understand why the floating stop now – when using SET STOP command if for example you set it to £5 when the order is opened it will ‘secure’ the closest possible stop it can to this amount say for example £10

    On the next candle it will try again to ‘secure’ the £5 but might instead only be able to get say £7 (as price has moved in your favour and this is now the minimum stop distance)

    This seems to carry on each candle and if the desired £5 is possible the stop will ‘stick/hold’ at this stop amount throughout the remainder of the trade

    If however it never reaches the desired £5 and instead price then moves against you and the minimum stop distance is now £11 it will on the new candle try again to secure the desired £5 (even thought it ‘had’ £7) and will only be able to get £11 so will set the stop to £11 and so the floating stop… shame it can’t stick to the lowest stop it had achieved but guess this is just how things work

    I think I’ve got it right/please let me know if not otherwise now it’s back to the drawing board how to work around this/any possible way to use it to my advantage… (and look it into the trailing stop functions as a bit overwhelming as they are perhaps these can be of better use if they work similarly at a ‘system level’ to the SET STOP)

    I am guessing most if not all of the other issues will be explainable one way or the other but still would be great to know what the explanations are

Viewing 9 posts - 1 through 9 (of 9 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login