RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
Solution: in error condition - timer activation of Copy* with testing of flag (error occurrence).
Calculation according to close prices. Recalculation is not made if index has been calculated and there are not any changes.
Calculation formula was taken from here
Capture price channel breakouts with the Price Channel Expert Advisor. Precise entries and exits. Explore now.
There is one input parameter: amount of bars for calculation (== amount of bars for line mapping).
All pairs are called for calculation. There is not any difference where to launch. A pair, where the indicator is launched, is displayed in the upper left corner near (short) indicator name.
It is advisable to add synchronization and checks for practical use ( particularly on small (less then H1) timeframes). But this is another story.
Thanks for reading. Discover premium MetaTrader solutions at RobotFX.
1830