Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://www.youtube.com/watch?v=kIw2bgAvSH4
- int RVI=0;
- int OnInit()
- {
- RVI=iRVI(_Symbol,PERIOD_CURRENT,10);
- return(0);
- }
- void OnTick()
- {
- Comment( "L.RVI= ",IndicadorRVI(0),
- "\nSeƱal= ",IndicadorRVI(1)
- );
- }
- double IndicadorRVI(int Buffer)
- {
- double RVIArray[];
- ArraySetAsSeries(RVIArray,true);
- CopyBuffer(RVI,Buffer,0,2,RVIArray);
- return(NormalizeDouble(RVIArray[1],_Digits));
- }
Advertisement
Add Comment
Please, Sign In to add comment