No Trades when Spread > 'Normal'?

Viewing 15 posts - 1 through 15 (of 50 total)
  • Author
    Posts
  • #122378 quote
    GraHal
    Participant
    Master

    With the DJI spread currently at 9.6 (against normal 1.6) how can I / we code into our Systems so that we do not execute trades when Spread is > Normal for a given time period?

    I will have a go, but I’m sure it will be a big task for me, but easy for the Coding Wizards?? 🙂

    Any help greatly appreciated!

    #122381 quote
    Dr Manhattan
    Participant
    Senior

    Its not accessible from the pro real time environment. I beleive it has been asked before. I saw it since it worked with MT4 before and all software always have this coded in.

    #122382 quote
    Paul
    Participant
    Master

    fifi had something in his code like. Could this be usefull?

    spread=abs(OPEN-CLOSE)
    coeff=spread/highest[200](spread)*100
    #122383 quote
    GraHal
    Participant
    Master

    My thoughts are that if we do a dummy buy and sell then buy price – sell price = spread?

    I’ve got ideas but can’t turn them into code! 🙂

    #122384 quote
    nonetheless
    Participant
    Master

    Wouldn’t your first idea work?

    c1 = (buyprice-sellprice)<3

    and then add it to entry conditions? No idea if buyprice is a recognisable term. Maybe Bid/Ask ??

    #122385 quote
    nonetheless
    Participant
    Master

    Hmm, scratch that thought. I just tried it, doesn’t work.

    #122387 quote
    Vonasi
    Moderator
    Master

    My thoughts are that if we do a dummy buy and sell then buy price – sell price = spread?

    I’ve got ideas but can’t turn them into code! 🙂

    The problem is that an instant buy and then a sell is not instant. It takes at least a 1 second bar to achieve this and price will move in that second so you can only record spread +/- price movement.

    #122388 quote
    GraHal
    Participant
    Master

    It takes at least a 1 second

    Have you experimented … maybe even using the Tick Timeframe?

    #122393 quote
    GraHal
    Participant
    Master

    maybe even using the Tick Timeframe

    No good anyway as Tick TF is greyed out for Auto Trading … see attached.

    GH-7.jpg GH-7.jpg
    #122398 quote
    GraHal
    Participant
    Master

    Spread on the DJI is 26.6 now!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    This is flippin ridiculaous … are IG going bust and this is a latch ditch attempt to keep their head above water!!!???

    This is going to make us too scared now to trade at all?????????????????

    #122400 quote
    Vonasi
    Moderator
    Master

    Perhaps crazy markets and staff shortages due to the coronavirus have left the brokers rather vulnerable and their systems seriously stress tested. No trading is better for their bottom line in such a situation I guess.

    Ironically I put some of my peer2peer money in an account that was meant to be instant access so that in times like this I could quickly move it out to safety and the first thing that the P2P company did was stop withdrawals from the instant access account! I can still drip feed money out of the longer term accounts so I would have done better to put it there and got a better rate of return too! It is an example of how when things are not normal we should expect the unexpected.

    #122413 quote
    GraHal
    Participant
    Master

    Perhaps crazy markets

    I felt that markets were more normal-sh today … as in following more normal Elliott Wave type action on the way up and down and so  changes in trend could be a bit more easily predicted.

    I was at one point today thinking of starting up my Live PRT Platform (been disabled for nearly 2 years) then all h*ll broke loose and my Demo Portfolio went down by loads … I hadn’t even noticed the wide spreads and was running a lot of 1 second Systems!! 🙂

    I feel like giving up now with these wild spreads … once they’ve done it, they likely will continue so normal market hours will have wild spreads for ever now!?

    I guess market forces over time will level it back out again … one day someday !?

    PS sorry about your money btw.
    Fresh caught fish now for every meal is it? 🙂

    #122414 quote
    GraHal
    Participant
    Master

    once they’ve done it, they likely will continue

    I’ll put the best construction on it … maybe as you say Vonasi … they have had Corona  cases in the office and so nearly all staff had to go home and widening the spread is the only way then can control it all, apart from full shutdown??

    But a warning explanatory email / text / notification would help us all to understand better (and not lose money!) ?

    #122417 quote
    Francesco
    Participant
    Veteran

    Dear grahal, if you managed to wait 2 years, right now it costs you nothing to wait a few more days/weeks or at least the time for everything to return to normal,
    The crazy volatility and absurd spreads still have to be with us in my opinion, please stay safe.

    GraHal thanked this post
    #122425 quote
    Nicolas
    Keymaster
    Master

    Simple question: if we could know the spread amount in real time, wouldn’t you mind that this historical value is not available in backtesting?

Viewing 15 posts - 1 through 15 (of 50 total)
  • You must be logged in to reply to this topic.

No Trades when Spread > 'Normal'?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 49 replies,
has 12 voices, and was last updated by AutoStrategist
5 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/17/2020
Status: Active
Attachments: 7 files
Logo Logo
Loading...