CjHare / pinescript-v5-snippets

A collection of PineScript v5 code snippets
Apache License 2.0
2 stars 0 forks source link

Strategy Slippage #19

Open CjHare opened 3 months ago

CjHare commented 3 months ago

Feature Description

Code an example using slippage in a strategy

Input

Additional Information

https://www.tradingview.com/pine-script-reference/v3/#fun_strategy

CjHare commented 3 months ago

Useful for tougher evaluations.

Due to network conditions, there will be 'some' delay between intending to open the order and the final execution on the exchange, slippage accounts for that.

CjHare commented 3 months ago

Supported as part of the TradingView properties for a strategy. ('properties' is another table to 'input')

Check whether PineScript overrides or is overridden