Hi it's me again,
I am almost done with my indicator I only have 2 problem left. So the indicator turn RED when it's a downtrend
and is Green when it s an UPTREND. It update automatically when there is a new high or low. My problem is that
when the trend change in the middle of the day that fib doesnt change colors and levels, so I have delete and put
back my indicator each time it reverses. My 2nd problem is that sometime when i change timeframe it pick the wrong
fib for the trend and i dont know why! Theres the code
I haven't been through all your code, but I can see a few issues:
You use 'extent' in your code multiple times, and you update 'SwingHigh' and 'SwingLow' multiple times, but never this variable. So it is stuck at the value when it first ran.
Also, I'm guessing you meant to use different buffers here (like the block above it)
Forum on trading, automated trading systems and testing trading strategies
Please use the SRC button when you post code. Thank you.
This time, I edited it for you.
Tanks you for your help!! :)
Stuff like that harms experts and indicators which are coded proper! This is pretty bad stuff.
You cannot really delete all objects of chart just because the names contain these letters. Every day I have to deal with stuff like that and its simply annoying. Either you should use objects (OOP), arrays where you save all your objects or more complex names - but please dont do it like that.