작업 종료됨
명시
modificación de mi bot existente. Se trata de un bot que calcula el maximo y minimo de asia, dibuja un cuadro y esta programado para operar solo en la sesion de london (si finaliza la sesion de london y no se ha cruzado el minimo o maximo de asia se cancela la orden pendiente. Este mete un trade cuando en londres se cruza el maximo o minimo de asia. Este trade que lanza lo deja como orden pendiente justo en medio del rango asiatico y el tp lo coloca en el lado opuesto del rango a donde ha roto en londres.Es decir si rompe el maximo de asia, dejara una orden pendiente de venta en la mitad del rango asiatico, el tp se puede modificar por el usuario con un parametro ya integrado.
Modificaciones y cosas que añaden:
-Quiero que no meta el trade en la mitad del rango, quiero que lo meta justo cuando rompa un maximo o un minimo de asia y esta vez quiero que lo haga en la direccion en la que ha roto. Es decir, en londres rompe un maximo de asia, pues meteria un trade en compra. El tp ahora quiero que sea elegible por pips por el usuario y quiero que sea en la direccion en la que ha roto el maximo o minimo.
Ejemplo:
maximo de asia es 1950
Mínimo de asia es 1900
Abre londres y acaba de exceder el precio de 1950, pues meteria un buy en 1950 con tp por arriba (el tp lo habra configurado en pips el usuario).
Pienso que lo mejor es que el bot ponga ordenes justo pendientes al finalizar la sesion asiatica tanto en el maximo como en el minimo, y que cuando se alcance una orden la otra se elimine.
Otra cosa a añadir es que cuando el trade este en X pips de beneficio pase a BE (breakeven). Esto también es ajustable por el usuario.