Pivot filter bug indicator

Moderator: admin

Pivot filter bug indicator

Postby ReinaldoM » Wed Mar 27, 2019 8:38 am

Hello,
I assume the logic is fine because after a little trick it works but it should works well from the beggining.
I have this indicator based on CCI signals(CCI line cross under 100 for sell and over -100 for buy), it is filtered by MA moving average (price over MA for buy and under MA for sell) and finally it is filtered by PIVOT(price over P line for buy and under P line for sell).
Indicator has to show an arrow when 3 assessments are true, BUT there is a bug in m5 chart, sell signals does not appear until I scroll back in history and find the first down arrow, here is a short video about https://youtu.be/SJ6x_F_wz3E
Without Scroll
NoScroll.png

After Scroll
Scroll.png

Indicator code
CCI Signals.lua
(3.29 KiB) Downloaded 452 times
ReinaldoM
 
Posts: 9
Joined: Sun Jul 01, 2018 4:12 pm

Re: Pivot filter bug indicator

Postby Apprentice » Wed Mar 27, 2019 1:33 pm

You're on the right track.
Insufficient data are available for the indicator to be drawn.
You probably use "D1" for Pivot...
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Pivot filter bug indicator

Postby ReinaldoM » Wed Mar 27, 2019 2:11 pm

Apprentice wrote:You're on the right track.
Insufficient data are available for the indicator to be drawn.
You probably use "D1" for Pivot...


I really appreciate the immediate answer, I am really confused about why only UpArrows are drawn in the beginning, I am using D1 as pivot period and tried W1, H4, same issue; could you tell me what can I do to avoid the back scroll and get the perfect work?

I tried just CCI + MA Filter, it works perfect, as soon as I add the PIVOT filter the issue appears(or dissapear :D ) again
ReinaldoM
 
Posts: 9
Joined: Sun Jul 01, 2018 4:12 pm


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 8 guests