Thanks to all of you. This was very helpful and I learned a lot. I had issues with the way the buffer worked and was able to change the source code to use chart objects instead.
I will probably post a follow-up soon 
Best posts made by Domeonline
-
RE: Custom Indicator - double count at changeposted in Questions & Answers
-
RE: Condition block misses applied to indicator optionposted in Questions & Answers
@sktsec
Yes AI opens up a full new dimension now. Which is amazing!
I would call it a hybrid. Since we can use a light and simple code similar to easy language.
I played also a bit with creating a custom indicator out of it. Chat GPT created the code straight away without even an error. I thought that's pretty impressive!
But like the 80/20 rule to then really find the problem one needs to be a programmer.
For example here. The first Subwindow is what I want. The second is the custom indicator

You see there is a difference in how the MA is plotted. So this was the end for me...
With the custom code step I have more flexibility and now can use different outputs like a line in the indicator or an arrow and if I like it just create a buy / sell order ... pretty easy and straight forward.
This is the current version of the project.
The strategy just uses 2 conditions. Since the BB Stop is working I now just need to add the ATR cross and the signal is already finished...
https://fxdreema.com/shared/ka8BBMMze