Seoul, Korea
Experience: Advanced
Platform: metatrader
Trading: Forex
Posts: 8 since Sep 2013
Thanks Given: 0
Thanks Received: 3
|
Hi All,
I'm new to NT8. Typically, most platforms I've used have an ample library of staple strategies to include Price Channel. However, I do not see these on NT8. Can anybody help code these for?
It's literally a couple lines of code:
strategy("Price Channel Strategy", overlay=true)
length = input(20)
hh = highest(high, length)
ll = lowest(low, length)
if (not na(close[length]))
strategy.entry("PChLE", strategy.long, comment="PChLE", stop=hh)
strategy.entry("PChSE", strategy.short, comment="PChSE", stop=ll)
<-- This is from trading view.
I would like to be able to vary the input and switch from long only/short only/long & Short
Thanks!!
|