'Pricing Questions for Pyramid Orders

There are a lot of blockages as I learn by self-taught without knowledge of coding.

It's not easy to find an answer on stackoverflow or kodify, so I'm asking again.

-Question-

I am trying to create a pyramiding strategy using strategy.order .

When implementing the long strategy, I would like to make the idea of entering infinity by proceeding with the first entry price, the second entry price less than the first, and the third also less than the second.

(Since the seed is limited, I will try to learn this part if the previous problem is solved.)

What I need is to create a variable for the price of the previous order, but I have no idea how to proceed.

Thank you for your reply.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source