XavierAndreu

Spread Real

Mar 26th, 2022
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. // https://youtu.be/1vjp8rY2ki4
  2.  
  3. int OnCalculate(const int rates_total,
  4. const int prev_calculated,
  5. const int begin,
  6. const double &price[])
  7. {
  8.  
  9. DibujarLinea("Ask",SymbolInfoDouble(Symbol(),SYMBOL_ASK));
  10. DibujarLinea("Bid",SymbolInfoDouble(Symbol(),SYMBOL_BID));
  11.  
  12. return(0);
  13.  
  14. }
  15.  
  16.  
  17. void DibujarLinea(string Linea, double Posicion)
  18. {
  19. ObjectCreate(Symbol(),Linea,OBJ_HLINE,0,0,Posicion);
  20. ObjectSetInteger(Symbol(),Linea,OBJPROP_COLOR,clrYellow);
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment