I am a noob at coding and calgo.
I am trying to do a grid bot that will do following checks before placing an order:
1) there is no order already for that value.
2) there is no open position for that value.
eg. if bot has to open an order at GBPUSD 1.2200, no order for 1.2200 or position with 1.22xx.
can someone please put together this code for me.
thanks in advance.