You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply comment out string and bool inputs in the Indicator source and compile again ;)
string or bool inputs have no meaning for backtesting anyway..
bool can also be converted to float and typecasted to bool ;)
The text was updated successfully, but these errors were encountered:
Problem
The EA input fields are of type double. Transparently using them for int is no problem.
string or bool does not work
If an Indicator has string or bool values mixed in with other inputs the iCustom initialization method fails and the Indicator cannot be instantiated.
inputs[] is simply copied to m_params
backtestd-expert/Include/backtestd/SignalClass/CustomSignal.mqh
Lines 174 to 186 in 3860f55
and m_params is then used for
m_indicator.Create()backtestd-expert/Include/backtestd/SignalClass/CustomSignal.mqh
Lines 235 to 253 in 3860f55
Workaround
Simply comment out string and bool inputs in the Indicator source and compile again ;)
string or bool inputs have no meaning for backtesting anyway..
bool can also be converted to float and typecasted to bool ;)
The text was updated successfully, but these errors were encountered: