Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
syntax [2020/04/24 15:06]
profitview ↷ Links adapted because of a move operation
syntax [2023/11/07 11:48] (current)
profitview
Line 3: Line 3:
 ==== How to setup an alert in ProfitView & TradingView ==== ==== How to setup an alert in ProfitView & TradingView ====
 \\ \\
-For your indicators and custom strategies on TradingView to be able to place or cancel orders, check or close positions on an exchange through ProfitView, you have to create an alert on TradingView (Alt+A) and put a name directly into its "​Message"​ section. +For your indicators and custom strategies on **TradingView** to be able to place and cancel orders, check or close positions ​etc. on an exchange through ​**ProfitView**, you have to create an alert on **TradingView** (Alt+A) and put  ​either ​the name of script you defined ​in the **ProfitView** options window under ''​SetupPV Alerts''​ or some of the commands listed under ''​Setup: ​Commands''​ directly into its ''​Message''​ section!
-Then you use the same name for new alert in the ProfitView options window under {{:syntax:​syntax_setup.png?​nolink&​110|"​Setup: ​TV Alerts"​}}+
  
-Whenever TradingView then triggers ​the alert, ProfitView will intercept it and look up its name under "​Setup: ​TV Alerts" ​(optionally ​filter it according to the set filter options) ​and execute ​the syntax ​commands ​defined for that alert!+Whenever ​**TradingView** then triggers ​one of those alerts**ProfitView** will intercept**¹** ​it and look up each line of the message (= the TV alerts ''​Message''​ section) as the name of a **PV Alert** to be triggered ​(and optionally ​filtered ​according to its filter options) ​— if a matching **PV Alert** cannot be found the commands ​in the message are executed directly, which is referred to as a **legacy ​alert** by **ProfitView**! 
 + 
 +**¹** This is done by directly listening to **TradingViews** event stream and also intercepting events in any open **TradingView** tabs as a backup; you have to log in to your **TradingView** account at least once while **ProfitView** is installed for it to get the necessary credentials! 
 + 
 +<callout type="​info"​ icon="​true">​ 
 +=== ProfitView Open Close Cross Indicator === 
 +➤ Click here for [[occ-indicator:​bitmex-syntax|OCC Standard Entry Syntax]]! 
 +</​callout>​
  
 **Please configure the alert conditions in TradingView accordingly!** **Please configure the alert conditions in TradingView accordingly!**
 \\ \\
-==== Basic syntax for entries ​====+ 
 +==== Basic syntax for Entries ​==== 
 + 
 +<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​binance|Binance Spot & Margin Syntax]]</​button>​
  
 <button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​binanceft|Binance Futures Syntax]]</​button>​ <button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​binanceft|Binance Futures Syntax]]</​button>​
Line 21: Line 30:
  
 <button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​ftx|FTX Syntax]]</​button>​ <button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​ftx|FTX Syntax]]</​button>​
 +
 +<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​kucoinft|Kraken Futures Syntax]]</​button>​
 +
 +<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​kucoinft|KuCoin Futures Syntax]]</​button>​
  
 <button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​oanda|OANDA Syntax]]</​button>​ <button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​oanda|OANDA Syntax]]</​button>​
 +
 +<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​okx|OKX Syntax]]</​button>​
  
 <button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​simplefx|SimpleFX Syntax]]</​button>​ <button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​simplefx|SimpleFX Syntax]]</​button>​
 +
 +==== General Information ====
 +
 +<button type="​info"​ size="​sm"​ icon="​glyphicon glyphicon-info-sign">​[[syntax:​mapping|Market Name Mapping]]</​button>​
 +
 +<button type="​info"​ size="​sm"​ icon="​glyphicon glyphicon-info-sign">​[[syntax:​units|Quantity Units]]</​button>​
 +
 +<button type="​info"​ size="​sm"​ icon="​glyphicon glyphicon-info-sign">​[[syntax:​filter|Order & Position Filtering]]</​button>​
 +
 +<button type="​info"​ size="​sm"​ icon="​glyphicon glyphicon-info-sign">​[[syntax:​risk|Risk-based Position Sizing]]</​button>​
 +
 +<button type="​info"​ size="​sm"​ icon="​glyphicon glyphicon-info-sign">​[[syntax:​trailing|Placing Trailing Stops]]</​button>​
 +
  
 ==== Useful Syntax Snippets ==== ==== Useful Syntax Snippets ====
  
-<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​checks|Different ​checks ​conditionals]]</​button>​+<button type="​success"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​spot|Spot Market Snippets]]</​button>​ 
 + 
 +<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​checks|Different ​Checks ​Conditionals (If/​Else)]]</​button>​ 
 + 
 +<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​adjust|Adjust Stops for Open Position]]</​button>​ 
 + 
 +<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​notify|Custom Notifications]]</​button>​ 
 + 
 +<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​notify:​tpsl|Notify on TP / SL]]</​button>​ 
 + 
 +<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​flip|Flipping a Position on Entry]]</​button>​
  
-<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​adjust|Adjust stops for open position]]</​button>​+<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​limit-entry|LIMIT Entry (Loop) with Market fallback]]</​button>​
  
-<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​limit-entry|Limit entry example (loop)]]</​button>​+<button type="​primary"​ size="​sm"​ icon="​glyphicon glyphicon-tags">​[[syntax:​counter|Counting via Custom Locks]]</​button>​
  
 \\ \\
Line 38: Line 76:
  
 === Available Commands === === Available Commands ===
-Please see "Setup: Commands" ​in the app itself for an up to date list of available commands!+Please see ''​Setup: Commands'' ​in the app itself for an up to date list of available commands!
  
 <callout type="​warning"​ icon="​true">​ <callout type="​warning"​ icon="​true">​