![](/img/trans.png)
[英]Pine Script: How to cancel order if not filled on bar after entry condition is met?
[英]Pine script - plot only once after buy condition is met
我有一個松樹腳本,它在購買條件后滿足目標時繪制標志形狀。 問題在於它為相同的購買條件繪制了每個后續目標。 有沒有人有一個腳本可以為特定的購買條件只繪制一次目標?
您需要在一些var
變量中存儲繪圖條件:
var plot_condition = 0
plot_condition := 0
if buy_condition
....
plot_condition := 1
plot(plot_condition? data : na, style = shape.xcross)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.