
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I would like to add something to an indicator that I wrote but have not been able to work out how to do it.
The indicator currently does two things
1. first, it marks bars with a green or red x that form a swing high or swing low. (It uses a while loop so that swings that have equal highs or equal lows will also be included). This is code for swing highThen, it marks with lime or magenta arrows the bars where the high breaks the high of the the most recent swing high (uptrend) or where the low breaks the low of the most recent swing low (down trend). This is the code for uptrend.
I would like to be able to mark EVERY bar with a lime or magenta arrow
- lime if there has been an up trend more recently than a down trend
- magenta if there has been a down trend more recently than an uptrend
I have not been able to work out a way to do this - any suggestions or pointers? Thanks