Skip to content
All library documents

A Basic Price Grid Strategy for ETC/USD

Article FMZ forum · Author: 小资金用户的福音

Summary

This short Python example sketches a grid approach for ETC/USD using 15-minute data. It builds price levels by repeatedly increasing a starting level by five percent, locates the current price within those levels, and places an initial buy. The intended loop compares the current price with the previous buy’s average price and grid boundaries, then issues further buys below the entry area or sells above it. Order sizes are tied to the grid index, and the code includes a nominal position-rate calculation.

The example is incomplete and should be read as a rough prototype, not a validated system. Its own comments flag the sell-order logic as needing work, and the recursive calls to the main routine, state handling, and reliance on a buy order complicate the control flow. It gives no results or risk controls such as inventory limits, fees, or loss bounds. The sample does not establish profitability or robust behavior across market regimes.

Key ideas

  • The example creates grid levels by applying repeated five-percent increases to a base price.
  • It intends to buy near lower grid boundaries and sell near upper boundaries.
  • Order quantities depend on the grid index and price.
  • The sell logic and control flow are incomplete, and no performance evidence is provided.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.