Hi there im totally new to this, but quite keen to learn. What my query is if im trying to create code the will buy if the condition meets closing candle must close above the previous swing high how to i write this line. would be grateful if anyone can help thanks Brett
There you go:
Once SwingPrice = 0
Bearish = close < open
Bullish = close > open
SwingH = Bearish and Bullish[1] and close[1] = highest[10](close)
If SwingH then
SwingPrice = close[1]
Endif
If SwingPrice > SwingPrice[1] then
Buy 1 contract at market
Endif
hi there im so greatful for your coding ive just managed to take a look and im buzzin now thanks once again