Help to cqg formulas

Discussion in 'Financial Futures' started by greg25, Apr 7, 2014.

  1. greg25

    greg25

    Hi all I would like to write a cqg formula to see in a chart the difference between the daily movement of 2 contracts

    What i really need is a chart like the NOB spread of CME, every day starts at 0 and just show the difference.

    I did this formula, but it is not working

    Last(RBEK4)-(RBEK4,D)-Last(HOEK4)-(HOEK4,D))

    I tryed also with the
    Pricetodollar(Last(RBEK4)-(RBEK4,D)-Last(HOEK4)-(HOEK4,D)))
    still not working...

    Any idea who to set this up???

    Thanks

    greg
     
  2. greg25

    greg25

    No unfortunately is not the error

    Thanks
     
  3. The easiest on cqg as we were then explained :
    -plot one chart
    - plot chart * 2.0
    - plot chart minus a number

    for each chart in your formula

    When this is checked :
    - plot one chart minus another.
     
  4. greg25

    greg25

    I am sorry, CQG is new form me and i do not understand what you mean with ploting the charts... and plot chart*2 ..

    Greg