get the current spread of a product?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #100029 quote
    MacroTMacroT
    Participant
    Average

    Is it possible when coding in PRT to get the current spread of a product?

    eg for GERMANY 30 DFB I would like to either extract the Bid-Ask or the current spread and use that in my automated trading ?

     

    Thanks

    #100048 quote
    NicolasNicolas
    Keymaster
    Legend

    No that’s not possible. There are still no instructions to get that values from the broker data stream. I know PRT is working on something to make it possible in the future but I dont know when and how it will be implemented.

    #142218 quote
    drkaydrkay
    Participant
    New

    Is it still the case that the bid/offer or spread is not available for use in automated trading?

    #142228 quote
    VonasiVonasi
    Moderator
    Master

    It is still not available.

    #142238 quote
    drkaydrkay
    Participant
    New

    I’m trading an equity with a typical 30 point spread.  During occasional periods of high volatility, the spread can increase to 100-300.  The algo works well during normal trading (30 point spread) but when the spread increases I want it to stop trading (otherwise orders are created which instantly trigger the stop loss).  Any suggestions?

    #142243 quote
    VonasiVonasi
    Moderator
    Master

    Any suggestions?

    Ask IG to forward spread data to PRT!

    #142246 quote
    PaulPaul
    Participant
    Master

    not ideal but compare the theoretical entry price+spread to the paid price and stop taking new trades if it exceeds xx points.

    #142249 quote
    GraHalGraHal
    Participant
    Master

    the spread can increase to 100-300

    Does above occur during periods where ATR[2] > X ?

    Or during closed cash market hours?

    Or some other measure than can be used to prohibit trades?

    #142259 quote
    Dow JonesDow Jones
    Participant
    Veteran

    Any suggestions?

    Normally I do 2 things, 1/ use ATR and avoid high volatility, 2/ Check the IG published spread, like here and avoid trading during those high spread hours using time function

    #142264 quote
    drkaydrkay
    Participant
    New

    Thanks all.  Taking ATR into account helps.  The spread also widens when trading around ATH’s so I’ll need to take this into account.  Hopefully, IG can directly provide the spread data in future!

    #176839 quote
    GabyGaby
    Participant
    Average

    I had the same problems with my Algos trading some majors and minors. For example: AUD / USD usual spread is less then 1ppp but during Sunday’s opening the spread jump to 12 ppp.

    There is a page published by IG gives you some indications on average spread values, but peaks (like during Sunday’s market) are not disclosed:

    https://www.ig.com/uk/help-and-support/spread-betting-and-cfds/fees-and-charges/what-are-igs-forex-spread-bet-product-details

    The only line of defense is what fellow Dow Jones mentioned already: avoid trading during low liquidity periods (Sunday + 21.57 – 24.00 every other day), where usually the spreads skyrocket…

     

     

     

    ly spread

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

get the current spread of a product?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
MacroT @macrot Participant
Summary

This topic contains 10 replies,
has 6 voices, and was last updated by GabyGaby
5 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/06/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...