Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 7441
- Rating:
- Published:
- 2021.06.20 13:50
- Updated:
- 2021.06.20 15:27
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Description
Measures current bar's Moving Average Speed, in relation to the average of # (averaging period) past bars.
This oscillator can be visually described with Speed Indicator.
Calculations
CurrentBar's speed / Mean speed of past # bars
AvgPosBuffer[i] = pos_sum/InpSPeriod; AvgNegBuffer[i] = neg_sum/InpSPeriod; if(ExtMABuffer[i] - ExtMABuffer[i-1]>0) { SO[i] = (ExtMABuffer[i]-ExtMABuffer[i-1]) / AvgPosBuffer[i]; } else if(ExtMABuffer[i] - ExtMABuffer[i-1]<0) { SO[i] = -((ExtMABuffer[i]-ExtMABuffer[i-1]) / AvgNegBuffer[i]); } else { SO[i] = 0; }
Example
Moving Average (9)
Averaging Period (120)

This script draws Fibonacci Expansion OBJ_EXPANSION with options to add your own custom values

This script draws Fibonacci Fan OBJ_FIBOFAN with options to add your own custom values

Risk Reward Tool calculates Risk reward like 1:2 1:3 1:4 and 1:5

closing partially script and Stop loss to Break Even point