I am learning pine script at the moment and this is my first attempt at creating an expire time based strategy for binary options based on a simple example like the built-in Channel Break Out Strategy.
"stop=upBound + syminfo.mintick" what exactly is happening here?
twoflower
⋅
@JesseGazelleGlass, tradingview doesn't support binary options. i'm using this as a "hack" to not start a market order and also have the stop loss set to just one tick above the highest high of the last "length" amount of bars. i hope that makes sense
daxuzhuo
⋅
hi, may i ask some questions about the code? strategy.order("ChBrkLE", strategy.long, stop=upBound + syminfo.mintick, comment="ChBrkLE") strategy.order("ChBrkSE", strategy.short, stop=downBound - syminfo.mintick, comment="ChBrkSE") a long position and a short position is started at the same time How to understand this?
nmholtgraves
⋅
Beautiful, thank you!
iSaleh
⋅
thanks for your sharing, it is nice and I wish the good luck to you ...