How do I get an value to my system from a indicator? I want to hide SL in my code but when i do it like this the backtest doesn’t produce the same result as if I put 1.3 in my system
SL = CALL "Daxenlong_indicator"
SL = 1.3 // StopLoss
return SL AS "SL"
This code:
//SL = CALL "Daxenlong"
SL = 1.3
buy at -close limit
graph SL
SL = 1.3 // StopLoss
return SL AS "SL"
using line 1 or line 2 doesn’t change the plotted value.
You must have written something wrong in your strategy or in your indicator.
If you still can’t find the error attach both ITF files, please.