Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
syntax-setup [2018/11/28 14:48]
profitview created
syntax-setup [2019/05/23 15:57] (current)
profitview
Line 2: Line 2:
 {{tag>​guides}} {{tag>​guides}}
 <​page-header>​ <​page-header>​
-==== How to setup a syntax ​in ProfitView & TradingView ====+==== How to setup an alert in ProfitView & TradingView ====
 </​page-header>​ </​page-header>​
-The syntax alert goes straight into the ProfitView GUI. {{:​syntax:​syntax_setup.png?​nolink&​110|}}+The syntax ​(commands) for each alert that you want to execute go straight into the ProfitView GUI. {{:​syntax:​syntax_setup.png?​nolink&​110|}}
 \\ \\
-Use alert name as first line in "​Message"​ field on TradingView (Alt + A).+There you give each alert a name and afterwards make sure you enter that name as the first line in the "​Message"​ field of the TradingView ​alert dialog ​(Alt + A to create a new alert).
  
-**Please ​change ​the alert condition ​accordingly**.+**Please ​configure ​the alert conditions ​accordingly!**
 \\ \\
 \\ \\
-<alert type="​warning"​ icon="​fa fa-bullhorn">​It is always recommend to paper trade first!</​alert>​ 
  
-<​accordion>​ +[[bitmex-syntax|See here for BitMEX ​Syntax]]
-<panel title="​Long/​Buy Signal"​ icon="​fa fa-bar-chart">​ +
-<​file>#​ LONG XBTUSD +
-c=order t=open +
-c=position b=short t=market +
-c=position b=short t=market +
-delay=3 +
-b=long l=25 q=50% t=market err=-1 +
-delay=5 +
-b=long c=position q=300% sl=-2.5% t=market r=1 ret=1 err=-2 +
-b=long c=position q=300% tp=0% p=1.3% r=1 ret=1 err=-2 +
-</​file>​ +
-''​q= l= sl= p= needs to be adjusted to your needs''​ +
----- +
-{{ :syntax:​syntax_long.png?​nolink ​|}} +
----- +
-=== Syntax ​Explanation === +
-^Command ​  ​^Description ​  ^  +
-| c=order t=open | close open orders | +
-| c=position b=short t=market | close open shorts @ market | +
-| c=position b=short t=market | safety | +
-| delay=3 | 3 seconds delay. | +
-| b=long l=10 q=50% t=market | open market long 50% @ 10x | +
-| delay=5 | 5 seconds delay. | +
-| b=long c=position q=300% sl=-2.5% t=market r=1 ret=1 err=-2 | fixed stop loss @ 2.5% below current price. expect to place an order, otherwise close all & abort |  +
-| b=long c=position q=300% tp=0% p=1.3% r=1 ret=1 err=-2 | fixed take profit @ 1.3% above current price. expect to place an order, otherwise close all & abort |  +
-</​panel>​+
  
-<panel title="​Short/​Sell Signal"​ icon="​fa fa-bar-chart">​ +[[bybit-syntax|See here for Bybit Syntax]] 
-<​file>#​ SHORT XBTUSD + 
-c=order t=open +[[deribit-syntax|See here for Deribit Syntax]]
-c=position b=long t=market +
-c=position b=long t=market +
-delay=3 +
-b=short l=25 q=50% t=market err=-1 +
-delay=5 +
-b=short c=position q=300% sl=2.5% t=market r=1 ret=1 err=-2 +
-b=short c=position q=300% tp=0% p=-1.3% r=1 ret=1 err=-2 +
-</​file>​ +
-''​q= l= sl= p= needs to be adjusted to your needs''​ +
----- +
-{{ :syntax:​syntax_short.png?​nolink ​|}} +
----- +
-=== Syntax ​Explanation === +
-^Command ​  ​^Description ​  ​^ ​ +
-| c=order t=open | close open orders | +
-| c=position b=long t=market | close open longs @ market | +
-| c=position b=long t=market | safety | +
-| delay=3 | 3 seconds delay. | +
-| b=short l=10 q=50% t=market | open market short 50% @ 10 | +
-| delay=5 | 5 seconds delay. | +
-| b=short c=position q=300% sl=2.5% t=market r=1 ret=1 err=-fixed stop loss @ 2.5% above current price. expect to place an order, otherwise close all & abort |  +
-| b=short c=position q=300% tp=0% p=-1.3% r=1 ret=1 err=-2 | fixed stop loss @ 1.3% above current price. expect to place an order, otherwise close all & abort |  +
-</​panel>​+
  
 \\ \\
-<panel title="Available Commands" icon="​fa fa-align-justify">+<alert type="warning" icon="​fa fa-bullhorn">It is always recommended to use testnet/​sandbox first!</​alert>​ 
 + 
 +=== Available Commands ===
 <​datatables header-rows="​true">​ <​datatables header-rows="​true">​
 ^Name   ​^Key ​  ​^Default ​  ​^Values ​  ​^Description ​  ^ ^Name   ​^Key ​  ​^Default ​  ​^Values ​  ​^Description ​  ^
Line 100: Line 52:
 | Yield | y | balance | balance, equity | Balance: Your available balance excluding open orders/​positions. Equity: Grand total including all profit and loss. | | Yield | y | balance | balance, equity | Balance: Your available balance excluding open orders/​positions. Equity: Grand total including all profit and loss. |
 </​datatables>​ </​datatables>​
-</​panel>​ +
-</​accordion>​+
 <callout type="​warning"​ icon="​true">​ <callout type="​warning"​ icon="​true">​
 === Attention === === Attention ===
 Always double check that you are using the right syntax/​alert! Always double check that you are using the right syntax/​alert!
 </​callout>​ </​callout>​
 +