Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Youtube---> https://youtu.be/VKxZlMVJl8U
- int Spike=0;
- void OnTick()
- {
- MqlRates InfoPrecio[];
- ArraySetAsSeries(InfoPrecio,true);
- CopyRates(Symbol(),Period(),0,2,InfoPrecio);
- if(
- /////////SPIKE BULL////////
- (InfoPrecio[1].close-InfoPrecio[1].open)*4 < InfoPrecio[1].high-InfoPrecio[1].close //SUP ALCISTA
- && InfoPrecio[1].close-InfoPrecio[1].open > InfoPrecio[1].open-InfoPrecio[1].low //INF ALCISTA
- ||
- (InfoPrecio[1].open-InfoPrecio[1].close)*4 < InfoPrecio[1].high-InfoPrecio[1].open //SUP BAJISTA
- && InfoPrecio[1].open-InfoPrecio[1].close > InfoPrecio[1].close-InfoPrecio[1].low //INF BAJISTA
- || /////////SPIKE BEAR////////
- (InfoPrecio[1].open-InfoPrecio[1].close)*4 < InfoPrecio[1].close-InfoPrecio[1].low //SUP BAJISTA
- && InfoPrecio[1].open-InfoPrecio[1].close > InfoPrecio[1].high-InfoPrecio[1].open //INF BAJISTA
- ||
- (InfoPrecio[1].close-InfoPrecio[1].open)*4 < InfoPrecio[1].open-InfoPrecio[1].low //SUP ALCISTA
- && InfoPrecio[1].close-InfoPrecio[1].open > InfoPrecio[1].high-InfoPrecio[1].close //INF ALCISTA
- )
- Spike=Spike +1;
- Comment("\n\nSpike: ",Spike
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment