Condition Sunflower indicator.
-
Hello Friend @roar ,
Can you help me try to find the best way for me to get a condition?
In the image I'm using an indicator that displays a sunflower, 3 lines, the red, blue and white dotted lines.
The condition that I want to create is that when the Sunflower appears then it is necessary to check if any of the previous candles crossed the blue line down.
When this is detected, my robot should buy immediately.
I've already managed to map the indicators and buffers, but I'm not getting the rule right because they repaint.
Can you help me with any example of how to do this? -
-
@ontrade In my personal opinion, all custom indicators (especially repainting ones) do more harm than good, because they are black boxes: you cant see their inner workings, you cant modify them, you never learn anything new. I dont use them, and I think you shouldn't either. This is why I dont like answering custom indi questions very much - its counterproductive.
To check possible crosses before the sunflower, you need to run a candle ID variable through a loop. Search the forum for more loop instructions, (https://fxdreema.com/forum/topic/10894/scan-historical-data-for-conditions-values), I made one detailed example today and dont feel like writing another right now lol
-
@roar said in Condition Sunflower indicator.:
s before the sunflower, you need to
@Ontrade that post Roar linked to was one where I'd posed a question and it was very very productive to my understanding in the area of loops and stuff. If it's something that's new to you, I second Roar's recommendation and suggest you go check out our conversation.
-
@cdwilder1 said in Condition Sunflower indicator.:
that post Roar linked to was one where I'd posed a question and it was very very productive to my understanding in the area of loops and stuff. If it's something that's new to you, I second Roar's recommendation and suggest you go check out our conversation.
Thank you my friends, @roar @
I am conducting tests, you are very attentive and intelligent, congratulations on all the help on this forum.
-
@ontrade @CDWilder1 you too, thanks
