Join our fan page
- Views:
- 6085
- Rating:
- Published:
- 2022.05.28 07:06
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The idea of the indicator
Two iStochastic (Stochastic Oscillator, STO) indicators - 'Fast' and 'Slow' (more precisely, the 'Main' lines of these indicators) in one subwindow. Areas are filled between lines. The level settings are included in the input parameters - it can be useful when used in an Expert Advisor and when visualizing in a strategy tester. Added Notifications when crossing lines (Sound, Alert, mail, push)
input group "Alerts" input string InpSoundName = "alert.wav"; // Sound Name input uchar InpSoundRepetitions = 3; // Repetitions input uchar InpSoundPause = 3; // Pause, in seconds input bool InpUseSound = false; // Use Sound input bool InpUseAlert = true; // Use Alert input bool InpUseMail = true; // Use Send mail input bool InpUseNotification = true; // Use Send notification
Rice. 1. Two Stochastic Custom Filling Alert
![RSI Dual Cloud EA](https://c.mql5.com/i/code/expert.png)
Strategy based on custom indicator 'RSI Dual Cloud'. Four types of signals
![RSI Dual Cloud](https://c.mql5.com/i/code/indicator.png)
Two RSI (Relative Strength Index, RSI) lines - 'Fast' and 'Slow'. Filling areas from the window borders to these lines
![Candles Ask](https://c.mql5.com/i/code/indicator.png)
The indicator displays the 'Ask' line -> a spread is added to the 'Close' price
![Group transfer Stop loss](https://c.mql5.com/i/code/script.png)
The script (not an Expert Advisor) sets and moves the Stop Loss for all positions on the current symbol to the specified price