Help to cqg formulas

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
 
Are you sure that you have the correct number of braces? You always have one more closing brace. In first example you have 4 to 5, in second one you have 5 to 6. See here.
image.png
</br> </br>Not using CQG though

No unfortunately is not the error

Thanks
 
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.
 
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.

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
 
Back
Top