JO
Topics
19 Mar 2022, 21:55
1981
9
02 Feb 2022, 13:21
0
1337
4
27 Jan 2022, 19:06
840
1
21 Jan 2022, 15:00
0
925
1
21 Oct 2021, 13:56
0
1142
5
19 Oct 2021, 11:53
0
1163
3
09 Oct 2021, 13:19
0
865
1
10 Aug 2021, 15:32
1115
2
12 May 2021, 14:55
1142
3
04 May 2021, 18:56
1116
6
25 Mar 2021, 15:27
1
1057
2
21 Jan 2021, 13:25
1978
13
20 Jan 2021, 19:27
0
1066
3
22 Oct 2020, 13:27
2
1130
2
12 Oct 2020, 15:12
1689
6
09 Oct 2020, 14:54
0
1136
1
07 Oct 2020, 14:38
1169
3
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