Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://youtu.be/1vjp8rY2ki4
- int OnCalculate(const int rates_total,
- const int prev_calculated,
- const int begin,
- const double &price[])
- {
- DibujarLinea("Ask",SymbolInfoDouble(Symbol(),SYMBOL_ASK));
- DibujarLinea("Bid",SymbolInfoDouble(Symbol(),SYMBOL_BID));
- return(0);
- }
- void DibujarLinea(string Linea, double Posicion)
- {
- ObjectCreate(Symbol(),Linea,OBJ_HLINE,0,0,Posicion);
- ObjectSetInteger(Symbol(),Linea,OBJPROP_COLOR,clrYellow);
- }
Advertisement
Add Comment
Please, Sign In to add comment