Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://youtu.be/Ofi79yvDL0U
- int Stochastic=0;
- int OnInit()
- {
- Stochastic=iStochastic(_Symbol,PERIOD_CURRENT,5,3,3,MODE_SMA,STO_LOWHIGH);
- return(0);
- }
- void OnTick()
- {
- Comment( "Main= ",IndicadorStochastic(0),
- "\nSignal= ",IndicadorStochastic(1)
- );
- }
- double IndicadorStochastic(int Buffer)
- {
- double StochasticArray[];
- ArraySetAsSeries(StochasticArray,true);
- CopyBuffer(Stochastic,Buffer,0,2,StochasticArray);
- return(NormalizeDouble(StochasticArray[1],_Digits));
- }
Advertisement
Add Comment
Please, Sign In to add comment