Simplify this whole mess into more parts, like A,B,C,D,E and than try to combine them together, each one needs intensive testing with a lot of visual checks (like comments are). Each part should be defined in logic and math steps. To find these math+logic steps is the basic language to talk with fxdreema flawless 😄
When you find these logic and math steps, than you can start ask, how to communicate with these two CFDs correctly. One is faster than other, so you have more possibilities, like:
A) create 3 EAs, first one for collecting ticks from Nasdaq, second for SP500 and third EA working in onTimer section, the main communication between them can be with Terminal variables
B) or you can create one EA for all symbols only in onTimer section, with faster period
C) or one EA where blocks are in onTick section and this EA is placed in the faster symbol (Nasdaq)
This is not about skills, but it is more about time. You have to invest a lot of time for something where the percentage of success is minimal. Well success, I also mean little success 😄