[¡Archivo!] Cualquier pregunta de novato, para no saturar el foro. Profesionales, no lo dejéis pasar. No podría ir a ningún sitio sin ti - 2. - página 396
Está perdiendo oportunidades comerciales:
- Aplicaciones de trading gratuitas
- 8 000+ señales para copiar
- Noticias económicas para analizar los mercados financieros
Registro
Entrada
Usted acepta la política del sitio web y las condiciones de uso
Si no tiene cuenta de usuario, regístrese
Lo siento, no puedo compilar una línea simple-simple, compilaba a 0 antes de ponerla, ahora compila a
.
*Ponlo en marcha*
No consigo que el ciclo sea correcto, en cada tick se abren un par de órdenes, debería ser así. Cuando llega un tick, la variable X se declara dentro del bucle, tomando respectivamente el valor 0.
Entonces se calcula X=número de pedidos dentro del bucle, y si X=0 o 1, entonces se abren.
Has declarado una variable pero no la has puesto a cero. ¡¡¡¡¡¡Por lo tanto, con cada garrapata sólo crecerá !!!!!!
Esa no es la forma correcta de hacerlo.
Has declarado una variable pero no la has puesto a cero. ¡¡¡¡¡¡Por lo tanto, con cada garrapata sólo crecerá !!!!!!
Eso no es correcto.
Aquí se equivoca. Con cada tic esta variable se declara de nuevo, por lo que es igual a 0.
Es sacarlo de la ecuación.
Aquí es donde te equivocas. Con cada tic esta variable se declara de nuevo, por lo que es igual a 0.
Sí, si lo pones como x=0, se pone a cero si sólo lo pones como x:, no se pone a cero, se incrementa.
Sí, si lo pones como x=0, irá a cero si sólo lo pones como x:, no irá a cero, subirá.
¿En qué lugar de los anales has leído eso?