Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://youtu.be/ldvZB72SoPs
- int MACD=0;
- int OnInit()
- {
- MACD=iMACD(_Symbol,PERIOD_CURRENT,12,26,9,PRICE_CLOSE);
- return(0);
- }
- void OnTick()
- {
- Comment( "Liena.P= ",IndicadorMACD(0),
- "\nSeƱal= ",IndicadorMACD(1)
- );
- }
- double IndicadorMACD(int Buffer)
- {
- double MACDArray[];
- ArraySetAsSeries(MACDArray,true);
- CopyBuffer(MACD,Buffer,0,2,MACDArray);
- return(NormalizeDouble(MACDArray[1],_Digits));
- }
Advertisement
Add Comment
Please, Sign In to add comment