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
Hello all,
I am new here and trying to figure this all out. Any help will be greatly appreciated.
I want trying to make an EA that will look at the last 4 candlesticks and identify if they closed higher or lower than the previous one. If all 4 are the same then indicate a buy or sell.
Example:
C0 would be live
C1 would be one minute old closed at 100
C2 would be two minutes old closed at 105
C3 would be three minutes old closed at 110
C4 would be four minutes old closed at 115
then sell at C0
C1 closed at 115
C2 closed at 110
C3 closed at 105
C4 closed at 100
then buy at C0
C1 closed at 115
C2 closed at 100
C3 closed at 105
C4 closed at 100
or any combination that is not all in one direction then hold
In essence want to make something that looks like the below, the colors and lines would be cool but not necessary.