XavierAndreu

Spread Real

Oct 1st, 2022
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 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. DibujarLinea("Ask",SymbolInfoDouble(Symbol(),SYMBOL_ASK));
  9. DibujarLinea("Bid",SymbolInfoDouble(Symbol(),SYMBOL_BID));
  10.  
  11. return(0);
  12. }
  13.  
  14.  
  15. void DibujarLinea(string Linea, double Posicion)
  16. {
  17. ObjectCreate(Symbol(),Linea,OBJ_HLINE,0,0,Posicion);
  18. ObjectSetInteger(Symbol(),Linea,OBJPROP_COLOR,clrYellow);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment