CONVERT VOLTY EXPAN STRATEGY FROM PINE TO CBOT

Created at 07 Sep 2024, 19:45
mesutselimi's avatar

mesutselimi

Joined 05.12.2023

CONVERT VOLTY EXPAN STRATEGY FROM PINE TO CBOT
07 Sep 2024, 19:45


HELLO EVERY ONE CAN HELP ME TO CONVERT THIS STRATEGY TO CBOT ALGO ?

 

strategy("Volty Expan Close Strategy", overlay=true)

length = input(5)

numATRs = input(0.75)

atrs = ta.sma(ta.tr, length)*numATRs

if (not na(close[length]))

strategy.entry("VltClsLE", strategy.long, stop=close+atrs, comment = "VltClsLE")

strategy.entry("VltClsSE", strategy.short, stop=close-atrs, comment = "VltClsSE")


@mesutselimi