Skip to content

Commit

Permalink
Update code_sample.md
Browse files Browse the repository at this point in the history
  • Loading branch information
blockplusim authored Dec 17, 2021
1 parent 411c164 commit 724cb44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code_sample.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ condition3 = false
//开多代码信号
plotshape(condition1, text='▲', style=shape.labeldown, textcolor=color.white, color = color.green, location = location.abovebar, title = "开多")
alertcondition(condition1 , title="Buy", message="Buy")
//开空代码信号模板
//开空代码信号
plotshape(condition2, text='▼', style=shape.labeldown, textcolor=color.white, color = color.red, location = location.abovebar, title = "开空")
alertcondition(condition2 , title="Sell", message="Sell")
//平仓代码模板
plotshape(condition3, text='Cancel', style=shape.labeldown, textcolor=color.white, color = color.red, location = location.abovebar, title = "开空")
//平仓代码信号
alertcondition(condition3 , title="Cancel", message="Cancel")
```

Expand Down

0 comments on commit 724cb44

Please sign in to comment.