Forum

Trailing Profit goes on both direction how can i fix it?

hi i made this trailing profit script the problem is that the take profit followes the price as it goes up and down, while i want to follow just as the price rise ( for a sell order, and opposite for a buy) i don't know how to fix it, i know the problem is that in ordermodify i use the take profit

if expression are not allowed on global scope

hi guys i have tried for hours and still couldn't find the problem on this code im new to coding so i don't know exactly what to look for i saw another page dedicated to this that said to check if the brackets were all good, i cheked and they seem good how can i fix it? int OnInit () { return (