hasan.tahir wrote: Sat Aug 15, 2020 11:03 pm Dear Coders,
Request your help for attached indicator. If you could please embed a signal (arrow, dot e.t.c) when the red line / curve is almost at the extreme end. Top extreme end is for a down arrow (sell) and bottom end signal would be for a buy. I would like to use this indicator in a EA so would appreciate a buffer value for the arrows.
Many thanks,
Hi,
I've added arrows, and input option for you to enter an extreme levels value for buy or sell.
And you don't need the buffer for arrows, there is one already that has a value of an indicator buffer index 0 (or in code its FFT_0) , so you can use its value for your EA through the iCustom function.
Like I did with arrows, when buffer index 0 is higher or lower than the extreme levels, arrow appears or in EA you can make some actions.
Anyway I've added buffers 1,2. And when you have a green arrow buffer 1 has a value 1. When you have a red arrow buffer 2 has value -1.
Hope that works for you!
Sincerely,
Sergei