Mai Language Grid Strategy
MyLanguage strategy by a8269917.
MyLanguageGrid
The original spec has no written description. Read the source below.
Parameters
| Name | Default | What it controls |
|---|---|---|
| ktkc | 10 | Short Initial Position |
| dtkc | false | Long Initial Position |
| y | 0.02 | Profit reduction distance |
| s | 0.02 | Loss-added distance |
| jia | true | Loss amount of position added |
| jian | true | Profit reduction quantity |
Source MyLanguage
VARIABLE:V1:1;
IF dtkc>0 AND BKVOL=0 THEN BEGIN 1,BK(dtkc);V1:C;INFO(1,V1);END
IF ktkc>0 AND SKVOL=0 THEN BEGIN 1,SK(ktkc);V1:C;INFO(1,V1);END
IF BKVOL>0 AND C>V1/(1-y) THEN BEGIN 1,SP(jian);V1:C;INFO(1,V1);END
IF BKVOL>0 AND C<V1*(1-s) THEN BEGIN 1,BK(jia);V1:C;INFO(1,V1);END
IF SKVOL>0 AND C<V1/(1+y) THEN BEGIN 1,BP(jian);V1:C;INFO(1,V1);END
IF SKVOL>0 AND C>V1*(1+s) THEN BEGIN 1,SK(jia);V1:C;INFO(1,V1);END
MULTSIG(0,0,60,0);
TRADE_AGAIN(1000);Published by a8269917 on the FMZ strategy square · last modified 2019-06-21. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.
Build this with AgenKit
A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.
/agenkit build a grid bot with inventory caps and order deduplication from strategies/Mai-Language-Grid-Strategy.md- npx agenkit install engineering-kit in your project
- Paste the command into your agent and approve each phase
- Get tests, backtest, risk controls and a paper-trading switch
Understand it first
Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.
Related specs
- Adaptive Bollinger Bands Grid Trading Strategy with Dynamic Level AdjustmentPine Script · Grid · 1d
- Adaptive Grid Trading Strategy Based on Quantitative Trading PlatformPine Script · Grid · 1h
- Assassins Grid B A Dynamic Grid Trading StrategyPine Script · Grid · 1d
- Basic Grid Trading StrategyPython · Grid
- Bollinger Fibonacci Grid Tracking Trend StrategyPine Script · Grid · 1h
- Bybit Inverse Contract Dynamic Grid Special GridJavaScript · Grid