Fernanda:
CopyBuffer(handleZigZag,1,a,1,indiRed); double indiGreen[]; CopyBuffer(handleZigZag,2,a,1,indiGreen);
CopyBuffer(handleZigZag,1,a,1,indiRed); double indiGreen[]; CopyBuffer(handleZigZag,2,a,1,indiGreen);
CopyBuffer(handleZigZag,1,a,1,indiRed); CopyBuffer(handleZigZag,2,a,1,indiGreen);
why you copy ZigZag buffers inside a loop? this makes it slow. copy all of them one time.
Also where did you used zigzag output for your trading decisions?! you just find swing high/low (not sure if even find them correctly) then... nothing!
is this from Chat GPT.. or any other AI?!
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 everybody
I am new to programming EA and I have been following some videos and so far, I was able to make a strategy run smoothly. I was testing the following:
- EMA 1H 34 periods / EMA 1H 8 periods
-Alligator M5 (EMA, no shift)
Also, I addeded a loop for trailing stop.
This was working fine, but I realized my strategy was lacking recognizing the last swing as signal to open a trade. And for this, I was trying to add a zigzag indicator. Again, I was watching a video and followed the idea, but now, my strategy won't open trades. I have been reading my EA, but I just can't see where I went wrong... can you help me, please? Thank you!!
This is my OnTick()