Set a Last Price for Grid Pending Orders
-
Hello, I have a question about grid pending orders.
I'm looking for a way to set grid pending orders between the "Base Price" and a "Last Price". The "Grid Size" should be calculated according to the entered value of the "Grid Levels" and would be "Grid Size" = ("Base Price" - "Last Price") : "Grid Levels".
https://fxdreema.com/shared/qMGp6c78
Possibly this works via a variable. Unfortunately I can't get any further and hope someone can help me.
-
@jjot I'm not sure what you exactly need. You should try to use a positive number (not a negative one) in the 'grid size' box.
-
@l-andorrà Thank you for your answer. The negative value of the grid size is ok because i want to create buy pending orders in the falling price. I have already tested this in function.
My question simplified again. I'm looking for a way to automatically create buy pending orders between two price levels. I choose e.g. the upper price level (first price) 10,000 and there lower price level 5,000 and the number of pending orders of 6 (grid levels). Then 6 buy pending orders should be generated automatically at a distance of 200 points between 10,000 (first) and 5,000 (last).
I hope that is now understandable. I would be very happy if you have an idea how I can implement it.
-
@jjot Then I'm afraid you will need to create a specific block structure to do that. The pending orders in grid is not as flexible to to do that.