Topics
Replies
Jobauma
18 Feb 2021, 15:27
Has anybody fixed this? It doesn't seem to be a problem anymore. :)
Maybe it would be an idea to at least program the function to set stop loss to 0 pips, if it disappears, as a limit. :D
It's dangerous to have the stop loss to disappear. Secure the function... :P
Best regards,
Johannes Hillestad Baumann
@Jobauma
Jobauma
07 Oct 2020, 15:24
I found out the issue. :D
I use "double[]"-s for my MAs.
The solution was to multiply "Bars.Count" with "2". :P
Here is the code:
protected override void Initialize()
{
// Initialize: Bars Count
int BarsCount = Bars.Count * 2;
// MAs
m_MA = new double[BarsCount];
}
@Jobauma
Jobauma
05 May 2021, 12:24
Hi.
Thank you so much. :)
Best regards,
Johannes Hillestad Baumann
@Jobauma