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
Currently the signal is calculated multiple times.
For a simple two lines cross this is simply checking if the lines crossed.
This happens multiple times.
before the state machine is processed Update() is already called on all of the indicators.
For further checking within the state machine it could simply read an already cached value
m_signal_direction
m_signal_side
m_exit_direction
It might be enough to change the methods on AggSignal where the indicator states are read.
The following could read a cached value insead of calling for examle m_confirm.LongSignal() again.
Currently the signal is calculated multiple times.
For a simple two lines cross this is simply checking if the lines crossed.
This happens multiple times.
before the state machine is processed Update() is already called on all of the indicators.
For further checking within the state machine it could simply read an already cached value
It might be enough to change the methods on AggSignal where the indicator states are read.
The following could read a cached value insead of calling for examle m_confirm.LongSignal() again.
backtestd-expert/Include/backtestd/SignalClass/AggSignal.mqh
Lines 105 to 125 in ab0f635
The text was updated successfully, but these errors were encountered: