Pages:
Actions
  • #1 by binsey on 14 Jul 2013
  • Hi could you help me with the correct formula for a lay amount which would return a one pound profit per tick before greening and also how I can formulate lt_ma so it returns whether the moving average is increasing or decreasing over a set amount of time rather than a single figure at one point in time .
    Kind regards and thanks in advance.
  • #2 by londolozi on 14 Jul 2013
  • r_ticks(price1,price2)
    The above will give you number of ticks between two prices.
    Then divide the result by lay_price-1 to give you your fixed liability.

    There are a number of options to use for the lt_ma. Read this in the manual

    pdif_[minutes]
    The absolute back price difference over the time specified by [minutes]. For
    example, pdif_5 will return the value that back price changed by within the
    last 5 minutes. This number can be negative or positive, depending on the
    direction the price changed in. For example, if the price changed from 4.0 to
    3.8, the difference will be -0.2.

    lpdif_[minutes]
    The absolute lay price difference over the time specified by [minutes]. For
    example, lpdif_2.5 will return the value that lay price changed by within the
    last 2.5 minutes. This number can be negative or positive, depending on the
    direction the price changed in.

    tdif_[minutes] he change of the back price over the time specified, in price ticks. For example, if the price has changed from 3.0 to 3.65 within 4 minutes, then
    tdif_4 will return 13.

    ltdif_[minutes]
     The change of the lay price over the time specified, in price ticks. For example, if the price has changed from 6.0 to 5.1 within 11.5 minutes, then
    tdif_11.5 will return -9.

  • #3 by bym on 08 Aug 2013
  • Hi Guys, I was interested in the answer to this post but I am not sure it has answered it unless I am missing something. My understanding is that lt_ma takes the average traded price over a given period of time dictated by the market depth settings.

    I think the question here: is there a way of determining whether or not lt_ma is rising or falling on a rolling basis.

    Eg:

    if lt_ma (5 seconds ago) is 10 and lt_ma (now) is 12, lt_ma is rising

    Apologies if the response above answered the question but I can't decipher how.

    Thanks,
  • #4 by Oxa (WellDoneSoft) on 10 Aug 2013
  • I think you need the last traded price trend variable lt_trend. It will take values from -1 to 1 depending on which direction and how steep the price movement is.

    See the manual's chapter The User Interface - Trader's Area - Chart Editor.
  • #5 by bym on 11 Aug 2013
  • Thanks Oxa, was looking in the triggered betting and didn't see it in there and I didn't think to look elsewhere if I am honest.
Pages:
Actions