Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
51bitquant committed Sep 22, 2022
1 parent 180f40b commit 7b0956a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/如何定制tradingview下单信号.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ short是代表做空,如果有多单,会先平多单,然后下空单,如
```pine
if longCondition
strategy.entry('L', strategy.long)
strategy.entry('L', strategy.long, comment='long')
if shortCongdition
strategy.entry('S', strategy.short)
strategy.entry('S', strategy.short, comment='short')
per(pcnt) =>
strategy.position_size != 0 ? math.round(pcnt / 100 * strategy.position_avg_price / syminfo.mintick) : float(na)
Expand Down

0 comments on commit 7b0956a

Please sign in to comment.