Pages:
Actions
  • #1 by liltbrockie on 15 Oct 2018
  • Hi there... not sure if this is just a limitation I have come across but some clarity would help....

    If I remember a selection, mysels, then access it later it works fine... eg:

    mysels_back_price gives me the back prices...

    However... if I wanted to know... for example... the tdif_0.1 at the time the remembered selection was saved, with:

    mysels_tdif_0.1 it does not work as expected...(I get data but it seems to count down to zero as time goes by)
  • #2 by Oxa (WellDoneSoft) on 16 Oct 2018
  • Hello!

    voldif, pdif, tdif etc. are all numbers derived from the current selection data and the data that the program keeps in memory for that selection within the set market history depth.

    These numbers are not part of the data slip taken by the "remember" trigger action (if they were, the amount of memory occupied by that slip would be huge). You will have to find another solution. Why don't you post here and I'll see if it is possible to find a workaround?
  • #3 by liltbrockie on 16 Oct 2018
  • ok oxa thats fine... at least i know... will come up with a solution myself ta
  • #4 by mcbee on 16 Oct 2018
  • hi
    the best way is to have 2 triggers
    trigger 1   name  mysels 1
    remember
    mysels1
    add a new action
    set user variable   t    now_time   individually for each event

    trigger 2     name  mysels 2
    remember
    mysels2

    conditions
    and trigger mysels 1 number of runs is greater then 0
    and selections trigger expression now_time is equal or greater than t+(mf_second*10)

    then you use the formula   g_ticks(m1_back_price,m2_back_price)   to get the tick difference for 10 seconds.
    alter the 10 in (mf_second*10) to whatever seconds you want to check the tick difference.

    mcbee
Pages:
Actions