holdenmcgorin:
Could someone please help to check and advise any issues, thanks in advance.
What are the following variables meant to be: temp, red_y1, red_offset, etc ? perhaps your variable names could be more meaningful ?
Why haven't you added more comments to you code to explain what is going on ?
How do you know "red" is wrong ? I don't see any Print statements which will show you it's value and the value of the variables used to calculate it . . .
I can't see any fundamental differences between the red, yellow and violet calculations so the error is probably in the way you are drawing the lines . . . add some Print statements, check the variable values, it will probably help you.
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 am pursuing my EA that trades between 3 trend lines drawn from a custom indicator.
With great helps from this forum, I've managed my EA running but it has a bug getting wrong trend line value. (trendline "red" in particular)
My biggest worry is that maybe the problem is the structure of the EA as I am still very new to EA programming (just about 1 month experience)
I cannot explain why the EA could get trendline values for "yellow" & "violet" correctly, but constantly gets wrong value for "red"
Could someone please help to check and advise any issues, thanks in advance.