Set "Current Market" for next blocks
-
Is it possible to use the "Set "Current Market" for next blocks" block to scan all symbols in the market watch window if they are listed in the Market List by attaching it to a single chart? I tried this but it only seemed to look at 2 or 3 different symbols instead of all the ones listed in the Market List. For example, I entered five different currency symbols in the Market List input, but it only responded to two of them, and it wasn't the first two in the list. All symbols were available in the Market Watch window. Can it be attached to multi condition blocks or does each condition block need its own "Set "Current Market" for next blocks" block? Thanks.
-
"Once per bar" is the limit here. This block is not aware of the dynamics that "Set..." creates.
-
ok, thanks. Didn't think it was going to be that easy. If I pulled out the once per bar block, is there a straight forward way to limit the alert message to once per selected time frame, instead of each tick, that would not impact the "Set..." block?
-
No. Such thing would require arrays for remembering the state for each frame, but in "Once per bar" there is only 1 memory value that works in general. It's not impossible for "Once per bar" to be modified, but as a result it will start to work slower and this is something I don't like. Unfortunately in MQL4/MQL5 there are no associative arrays to make things simpler and I don't know how to easily work in scenarios where associative arrays would work fine.