Skip to content

Commit

Permalink
Create code_sample.md
Browse files Browse the repository at this point in the history
  • Loading branch information
blockplusim committed Dec 17, 2021
1 parent 8fa00bc commit cf01238
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions code_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
**常用代码模板**

开多代码信号模板
```
plotshape(condition1, text='▲', style=shape.labeldown, textcolor=color.white, color = color.green, location = location.abovebar, title = "开多")
alertcondition(condition1 , title="CrossOver Double EMA Buy", message="CrossOver Double EMA Buy")
```

开空代码信号模板
```
plotshape(condition2, text='▼', style=shape.labeldown, textcolor=color.white, color = color.red, location = location.abovebar, title = "开空")
alertcondition(condition2 , title="CrossUnder Double EMA Sell", message="CrossUnder Double EMA Sell")
```

平仓代码模板
```
plotshape(condition2, text='Cancel', style=shape.labeldown, textcolor=color.white, color = color.red, location = location.abovebar, title = "开空")
alertcondition(condition2 , title="CrossUnder Double EMA Sell", message="CrossUnder Double EMA Sell")
```

0 comments on commit cf01238

Please sign in to comment.