.

# How do you create chart with different of 2 products

## Recommended Posts

I am trying to create a chart with the 2nd plane on the bottom that will tell me the different from current price of one assest to another
so comparing the different from  gold vs sliver , deribit vs bitmex , deribit perpetual vs deribit future

##### Share on other sites

Do I just create a formula box

`=source1-TradablInstrum`

do i need to addd space or other

##### Share on other sites

you posted this on the wrong question lol  can you please share some example with formula
it doesn't work the same as a spreadsheet  like =if( XXX < XXX,"BUY","SELL")

##### Share on other sites

On 9/11/2019 at 6:08 PM, Will star said:

you posted this on the wrong question lol

You need to Load them and upload  them to Tslab.  If my answer does not correspond to the question please  let me know what is misunderstood.  Probably I got you wrong.

##### Share on other sites

On 9/11/2019 at 6:08 PM, Will star said:

can you please share some example with formula
it doesn't work the same as a spreadsheet  like =if( XXX < XXX,"BUY","SELL")

Probably I misunderstood you again, sorry.
The block formula syntax is here. https://blog.tslab.pro/KB/4-programma/skript/panel-instrumentov/sluyoebnye-elementy/formula-i-logicheskaya-formula-sintaksis
But we do not provide line formula and we don't use any simple language for buy sell.
You can build algorithms using blocks in the editor.
Each block has its own function.
If you need to enter a position, if X is more than Y, and if you need to flip the position, if X is less than Y, have a look at the examples I have attached.

##### Share on other sites

• 2 weeks later...

Nice this work very well

So i mange to make a simple Line chart of the difference of deribit perpetual and dec contracts

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×

• #### Activity

• Blogs
×
• Create New...