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
Hola, I have some trouble finding the correct Logic.
With this indicator I want to get a candle body that is X amount bigger than the previous (Works so far) and draw a line at the open price (also works).
Now if the price crosses any of the lines, i would like to change its color and stop it from drawing once it's hit.
This last part is where most of my trouble sits. Right now it's obviously changing colors, but not the way I want.
I am lost finding the right logic. i.e where and how to check and save if it has been hit.
Any help is greatly apreciated.
Here is the code: