JO
Topics
19 Mar 2022, 21:55
1703
9
02 Feb 2022, 13:21
0
1155
4
27 Jan 2022, 19:06
676
1
21 Jan 2022, 15:00
0
791
1
21 Oct 2021, 13:56
0
930
5
19 Oct 2021, 11:53
0
979
3
09 Oct 2021, 13:19
0
721
1
10 Aug 2021, 15:32
960
2
12 May 2021, 14:55
970
3
04 May 2021, 18:56
953
6
25 Mar 2021, 15:27
1
907
2
21 Jan 2021, 13:25
1752
13
20 Jan 2021, 19:27
0
926
3
22 Oct 2020, 13:27
2
966
2
12 Oct 2020, 15:12
1514
6
09 Oct 2020, 14:54
0
996
1
07 Oct 2020, 14:38
959
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