Pine Script v4 · Strategy
Escaping of Rate from Avarage By Mustafa OZVER Strategy
A Pine Script v4 strategy built on WMA (ohlc4, 3), Stdev (FPrice, 17) and EMA (FPrice, 17). It has 2 order rules and no entry of its own. Exits wait for a signal; there is no stop loss. Each trade is one contract and pays no commission. 2 settings; defaults include Source ohlc4 and Length 17.
Generated from the script's code by a template: every clause is a fact read from the source. Not written by a person or a model, and not taken from the author's description.
- Does Escaping of Rate from Avarage By Mustafa OZVER Strategy repaint?
- No
- No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 29 of 29 trades.
- How did Escaping of Rate from Avarage By Mustafa OZVER Strategy do on BTCUSDT 1D with default settings?
- +122.03%
- From 26 Jan 2024 to 21 Oct 2026, over 96 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
- Can Escaping of Rate from Avarage By Mustafa OZVER Strategy be converted to Pine Script v5?
- Yes
- The upgrade takes 1 step, from v4; each was run before and after on the same candles with identical results, and the v5 script can be downloaded below.
- Does Escaping of Rate from Avarage By Mustafa OZVER Strategy use a stop loss?
- No
- Every exit waits for a signal; nothing limits a losing trade before it fires.
- Does Escaping of Rate from Avarage By Mustafa OZVER Strategy run in Zeal Terminal?
- Yes
- It compiles in 8 ms and runs 1,000 bars in 25 ms, in the browser.
BTCUSDT · 1D · default settings
- HLine
- HLine
- HLine
- ESC1
- Winning trade
- Losing trade
- Equity
- Buy and hold
- Net profit
- +122.03%
- $122,030.00
- Buy and hold
- +102.5%
- same period
- Closed trades
- 96
- 68 won · 28 lost
- Profitable
- 70.8%
- of closed trades
- Profit factor
- 1.57
- gross profit ÷ gross loss
- Max drawdown
- 79.06%
- −$192,541.00
One run with the author's default settings, $100,000 starting capital, commission as the script sets it. A long position was still open at the last bar. A single backtest says little about future results and is not a recommendation. Backtests are simulations on historical data and are not investment advice.
Review
What a careful reader of this script would point out, found by checking the source and the backtest.
-
Check
No stop loss
Every exit waits for a signal. Nothing limits a losing trade before the exit condition fires.
-
Check
No commission
The backtest assumes free trading. Results on any real exchange will be lower.
-
Note
No slippage
Fills are assumed at the exact open price. Add slippage in the properties for a more realistic test.
-
Note
Uses transp =, which v5 removed line 18
transp = on line 18. v5 folds the transparency into the colour with color.new(c, transp).
Upgrade and export
Written in Pine Script v4. The upgrade to v5 takes 1 step, one per version, each applied to the result of the one before. A last clean-v5 pass then types the settings and moves when = into if blocks, which v6 requires. Every step runs before and after on the same candles in Zeal Terminal's engine; a step whose results differ is shown but not offered as a download. Upgrades preserve behaviour: bugs are fixed in the Review, never silently here.
- Upgrading to v5 renames wma → ta.wma, stdev → ta.stdev, ema → ta.ema, change → ta.change.
v4 → v5
VerifiedSame 96 trades and the same P&L on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine.
- Line 3: //@version=4 → //@version=5
- Line 7: wma → ta.wma
- Line 9: stdev → ta.stdev
- Line 10: ema → ta.ema
- Line 18: transp = 85 → color.new(color.silver, 85)
- Line 21: change → ta.change
- Line 22: change → ta.change
- Line 24: strategy.order(…, true) → strategy.order(…, strategy.long)
⋯// © Mustafaozver-//@version=4+//@version=5strategy("Escaping of Rate from Avarage By Mustafa OZVER", "EoRfA", overlay=false)⋯src = input(ohlc4,"Source")-FPrice = wma(src,3)+FPrice = ta.wma(src,3)len = input(17,"Length")-stdev = stdev(FPrice,len)+stdev = ta.stdev(FPrice,len)-ema2 = ema(FPrice,len)+ema2 = ta.ema(FPrice,len)Rate1 = (FPrice - ema2) / stdev⋯hlinen1=hline(-1,linestyle=hline.style_dotted,editable=false)-fill(hline1,hlinen1,color=color.silver,transp=85,editable=true)+fill(hline1,hlinen1,color=color.new(color.silver, 85),editable=true)//plot(Rate,color=(Rate>0?colorG:colorR),transp=75,style=plot.style_area,editable=false)plot(Rate1,title="ESC1",color=(Rate1>0?colorG:colorR),style=plot.style_line,linewidth=1,editable=true)-BUYSIGNAL = Rate1 < -1 and change(Rate1) > 0+BUYSIGNAL = Rate1 < -1 and ta.change(Rate1) > 0-SELLSIGNAL = Rate1 > 1 and change(Rate1) < 0+SELLSIGNAL = Rate1 > 1 and ta.change(Rate1) < 0if (BUYSIGNAL)- strategy.order("LONG1",true)+ strategy.order("LONG1",strategy.long) //strategy.close("SHORT1")⋯Same 96 trades and the same P&L on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine.
- Line 6: input() → input.source()
- Line 8: input() → input.int()
⋯//strategy("Escaping of Rate from Avarage By Mustafa OZVER", "EoRfA", overlay=false)-src = input(ohlc4,"Source")+src = input.source(ohlc4,"Source")FPrice = ta.wma(src,3)-len = input(17,"Length")+len = input.int(17,"Length")stdev = ta.stdev(FPrice,len)⋯Does it run in Pine Script v6?
No
The v6 version runs in Zeal Terminal's engine, but its results differ from the v5 version: Trades differ: 96 before, 14 after on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. It is shown for reference and is not offered as a download. It differs from the v5 version by 1 edit.
⋯// © Mustafaozver-//@version=5+//@version=6strategy("Escaping of Rate from Avarage By Mustafa OZVER", "EoRfA", overlay=false)⋯Settings
Every input the script declares, with its default and what it feeds. Bounds are the ones the script enforces.
| Setting | Default | Type and range | Feeds |
|---|---|---|---|
| Source | ohlc4 | source | FPrice |
| Length | 17 | int | stdev ema2 |
What it calculates
- WMA (
wma,ta.wmain v5)Source (ohlc4), 3FPrice · line 7 - Stdev (
stdev,ta.stdevin v5)FPrice, Length (17)stdev · line 9 - EMA (
ema,ta.emain v5)FPrice, Length (17)ema2 · line 10
Signal flow
How price data and settings reach the orders. Each box is a name in the script, or several computed the same way; each arrow is a value one of them reads. Hover a box for its members.
Order rules
| Order | Fires when | By default | Line |
|---|---|---|---|
| order LONG1 long | (BUYSIGNAL) | On | 24 |
| Close LONG1 | (SELLSIGNAL) | On | 28 |
Each order is guarded by the setting shown. “Off” orders never fire unless that setting is switched on.
Does it repaint?
No
No repainting patterns in the source, and the live replay matched history.
- ClearHigher-timeframe dataThe script requests no other symbol or timeframe.
- ClearFuture-bar referencesNo negative history offsets such as close[-1].
- ClearIntrabar recalculationNo varip, calc_on_every_tick or realtime-only state. Orders are decided once per closed bar.
- ClearOrder timingOrders fill at the next bar's open, after the signal bar has closed.
The checks read the source; the replay runs it. Together they catch the common causes, not every possible one.
Other markets
The same script with default settings on 8 Binance markets. Each row is a separate backtest over the most recent 1,000 bars.
| Market | Net | Buy and hold | Trades | Won | Profit factor | Max drawdown | Period |
|---|---|---|---|---|---|---|---|
| BTCUSDT 1D | +122.0% | +102.5% | 96 | 71% | 1.57 | 79.1% | 26 Jan 2024 – 21 Oct 2026 |
| BTCUSDT 4h | −220.3% | +5.5% | 145 | 65% | 0.41 | 489.8% | 8 May 2026 – 21 Oct 2026 |
| ETHUSDT 1D | −9.6% | +9.8% | 123 | 52% | 0.67 | 29.2% | 26 Jan 2024 – 21 Oct 2026 |
| ETHUSDT 4h | −11.8% | +8.4% | 112 | 54% | 0.26 | 21.5% | 8 May 2026 – 21 Oct 2026 |
| SOLUSDT 1D | +0.2% | +16.7% | 108 | 72% | 1.22 | 1.1% | 26 Jan 2024 – 21 Oct 2026 |
| SOLUSDT 4h | −0.1% | +21.5% | 120 | 65% | 0.66 | 0.3% | 8 May 2026 – 21 Oct 2026 |
| BNBUSDT 1D | +2.1% | +148.3% | 80 | 79% | 3.28 | 1.2% | 26 Jan 2024 – 21 Oct 2026 |
| BNBUSDT 4h | +0.9% | +17.1% | 103 | 78% | 3.42 | 0.4% | 8 May 2026 – 21 Oct 2026 |
Backtests are simulations on historical data and are not investment advice.
The trades
By market direction
| At entry, last 90 bars | Trades | Won | P&L |
|---|---|---|---|
| Rising market | 15 | 73% | $2,266.96 |
| Sideways market | 49 | 67% | $37,889.30 |
| Falling market | 32 | 75% | $81,873.70 |
Rising and falling mean the market moved more than 15% over the 90 bars before entry.
How bad could the drawdown be?
24.7%
The 95th percentile of the worst drawdown when the same 96 trades are reshuffled 5,000 times. The bar spans the 5th to 95th percentile, 11.0% to 24.7%; the tick is what actually happened, 29.2%. Order luck alone moves it this much.
All 96 trades
| Side | Entry | Exit | Bars | P&L |
|---|---|---|---|---|
| long | 16 Apr 2024 63,420.00 | 20 May 2024 66,274.00 | 34 | $2,854.01 |
| long | 17 Apr 2024 63,793.40 | 20 May 2024 66,274.00 | 33 | $2,480.60 |
| long | 18 Apr 2024 61,277.40 | 20 May 2024 66,274.00 | 32 | $4,996.62 |
| long | 19 Apr 2024 63,470.10 | 20 May 2024 66,274.00 | 31 | $2,803.91 |
| long | 20 Apr 2024 63,818.00 | 20 May 2024 66,274.00 | 30 | $2,455.99 |
| long | 3 May 2024 59,060.60 | 20 May 2024 66,274.00 | 17 | $7,213.40 |
| long | 4 May 2024 62,882.00 | 20 May 2024 66,274.00 | 16 | $3,391.99 |
| long | 17 Jun 2024 66,676.90 | 19 Jul 2024 63,987.90 | 32 | −$2,688.94 |
| long | 18 Jun 2024 66,504.30 | 19 Jul 2024 63,987.90 | 31 | −$2,516.41 |
| long | 21 Jun 2024 64,870.00 | 19 Jul 2024 63,987.90 | 28 | −$882.07 |
| long | 23 Jun 2024 64,262.00 | 19 Jul 2024 63,987.90 | 26 | −$274.09 |
| long | 27 Jun 2024 60,865.00 | 19 Jul 2024 63,987.90 | 22 | $3,122.94 |
| long | 28 Jun 2024 61,706.50 | 19 Jul 2024 63,987.90 | 21 | $2,281.46 |
| long | 29 Jun 2024 60,427.80 | 19 Jul 2024 63,987.90 | 20 | $3,560.08 |
| long | 30 Jun 2024 60,986.70 | 19 Jul 2024 63,987.90 | 19 | $3,001.24 |
| long | 1 Jul 2024 62,772.00 | 19 Jul 2024 63,987.90 | 18 | $1,215.91 |
| long | 7 Jul 2024 58,230.10 | 19 Jul 2024 63,987.90 | 12 | $5,757.79 |
| long | 8 Jul 2024 55,857.80 | 19 Jul 2024 63,987.90 | 11 | $8,130.11 |
| long | 9 Jul 2024 56,714.60 | 19 Jul 2024 63,987.90 | 10 | $7,273.31 |
| long | 10 Jul 2024 58,050.00 | 19 Jul 2024 63,987.90 | 9 | $5,937.92 |
| long | 11 Jul 2024 57,725.80 | 19 Jul 2024 63,987.90 | 8 | $6,262.07 |
| long | 7 Aug 2024 56,022.00 | 27 Aug 2024 62,834.00 | 20 | $6,812.00 |
| long | 8 Aug 2024 55,133.80 | 27 Aug 2024 62,834.00 | 19 | $7,700.24 |
| long | 9 Aug 2024 61,686.00 | 27 Aug 2024 62,834.00 | 18 | $1,148.00 |
| long | 9 Sep 2024 54,869.90 | 22 Sep 2024 63,349.00 | 13 | $8,479.02 |
| long | 12 Jan 2025 94,600.00 | 20 Jan 2025 101,332.00 | 8 | $6,731.58 |
| long | 5 Feb 2025 97,763.10 | 27 Mar 2025 86,909.20 | 50 | −$10,854.00 |
| long | 6 Feb 2025 96,612.40 | 27 Mar 2025 86,909.20 | 49 | −$9,703.27 |
| long | 7 Feb 2025 96,554.40 | 27 Mar 2025 86,909.20 | 48 | −$9,645.18 |
| long | 8 Feb 2025 96,506.80 | 27 Mar 2025 86,909.20 | 47 | −$9,597.63 |
| long | 9 Feb 2025 96,444.80 | 27 Mar 2025 86,909.20 | 46 | −$9,535.58 |
| long | 10 Feb 2025 96,462.80 | 27 Mar 2025 86,909.20 | 45 | −$9,553.58 |
| long | 27 Feb 2025 84,250.10 | 27 Mar 2025 86,909.20 | 28 | $2,659.08 |
| long | 28 Feb 2025 84,708.60 | 27 Mar 2025 86,909.20 | 27 | $2,200.60 |
| long | 1 Mar 2025 84,349.90 | 27 Mar 2025 86,909.20 | 26 | $2,559.22 |
| long | 2 Mar 2025 86,064.50 | 27 Mar 2025 86,909.20 | 25 | $844.63 |
| long | 13 Mar 2025 83,680.10 | 27 Mar 2025 86,909.20 | 14 | $3,229.05 |
| long | 14 Mar 2025 81,115.80 | 27 Mar 2025 86,909.20 | 13 | $5,793.39 |
| long | 15 Mar 2025 83,983.20 | 27 Mar 2025 86,909.20 | 12 | $2,925.98 |
| long | 2 Apr 2025 85,158.40 | 25 Apr 2025 93,980.50 | 23 | $8,822.12 |
| long | 9 Apr 2025 76,322.40 | 25 Apr 2025 93,980.50 | 16 | $17,658.10 |
| long | 10 Apr 2025 82,615.20 | 25 Apr 2025 93,980.50 | 15 | $11,365.30 |
| long | 24 Jun 2025 105,334.00 | 1 Jul 2025 107,147.00 | 7 | $1,812.57 |
| long | 4 Aug 2025 114,209.00 | 15 Aug 2025 118,295.00 | 11 | $4,086.28 |
| long | 5 Aug 2025 115,055.00 | 15 Aug 2025 118,295.00 | 10 | $3,240.06 |
| long | 23 Aug 2025 116,936.00 | 14 Sep 2025 115,918.00 | 22 | −$1,017.71 |
| long | 28 Aug 2025 111,262.00 | 14 Sep 2025 115,918.00 | 17 | $4,656.28 |
| long | 2 Sep 2025 109,237.00 | 14 Sep 2025 115,918.00 | 12 | $6,680.86 |
| long | 3 Sep 2025 111,240.00 | 14 Sep 2025 115,918.00 | 11 | $4,678.28 |
| long | 28 Sep 2025 109,636.00 | 5 Oct 2025 122,391.00 | 7 | $12,755.10 |
| long | 29 Sep 2025 112,164.00 | 5 Oct 2025 122,391.00 | 6 | $10,227.00 |
| long | 19 Oct 2025 107,185.00 | 7 Jan 2026 93,748.00 | 80 | −$13,437.00 |
| long | 20 Oct 2025 108,643.00 | 7 Jan 2026 93,748.00 | 79 | −$14,894.80 |
| long | 7 Nov 2025 101,346.00 | 7 Jan 2026 93,748.00 | 61 | −$7,598.07 |
| long | 8 Nov 2025 103,339.00 | 7 Jan 2026 93,748.00 | 60 | −$9,591.12 |
| long | 9 Nov 2025 102,313.00 | 7 Jan 2026 93,748.00 | 59 | −$8,564.98 |
| long | 10 Nov 2025 104,723.00 | 7 Jan 2026 93,748.00 | 58 | −$10,975.00 |
| long | 17 Nov 2025 94,261.40 | 7 Jan 2026 93,748.00 | 51 | −$513.48 |
| long | 18 Nov 2025 92,215.10 | 7 Jan 2026 93,748.00 | 50 | $1,532.83 |
| long | 19 Nov 2025 92,960.80 | 7 Jan 2026 93,748.00 | 49 | $787.14 |
| long | 20 Nov 2025 91,555.00 | 7 Jan 2026 93,748.00 | 48 | $2,193.01 |
| long | 23 Nov 2025 84,739.80 | 7 Jan 2026 93,748.00 | 45 | $9,008.22 |
| long | 24 Nov 2025 86,830.00 | 7 Jan 2026 93,748.00 | 44 | $6,917.97 |
| long | 25 Nov 2025 88,300.00 | 7 Jan 2026 93,748.00 | 43 | $5,447.96 |
| long | 18 Dec 2025 86,243.20 | 7 Jan 2026 93,748.00 | 20 | $7,504.74 |
| long | 19 Dec 2025 85,516.40 | 7 Jan 2026 93,748.00 | 19 | $8,231.56 |
| long | 20 Dec 2025 88,136.90 | 7 Jan 2026 93,748.00 | 18 | $5,611.02 |
| long | 24 Jan 2026 89,600.30 | 7 Mar 2026 68,114.00 | 42 | −$21,486.20 |
| long | 3 Feb 2026 78,738.60 | 7 Mar 2026 68,114.00 | 32 | −$10,624.60 |
| long | 4 Feb 2026 75,770.20 | 7 Mar 2026 68,114.00 | 31 | −$7,656.19 |
| long | 5 Feb 2026 73,165.80 | 7 Mar 2026 68,114.00 | 30 | −$5,051.82 |
| long | 7 Feb 2026 70,580.30 | 7 Mar 2026 68,114.00 | 28 | −$2,466.24 |
| long | 8 Feb 2026 69,289.40 | 7 Mar 2026 68,114.00 | 27 | −$1,175.35 |
| long | 9 Feb 2026 70,330.40 | 7 Mar 2026 68,114.00 | 26 | −$2,216.36 |
| long | 26 Feb 2026 67,988.00 | 7 Mar 2026 68,114.00 | 9 | $125.98 |
| long | 27 Feb 2026 67,485.20 | 7 Mar 2026 68,114.00 | 8 | $628.83 |
| long | 28 Feb 2026 65,872.10 | 7 Mar 2026 68,114.00 | 7 | $2,241.93 |
| long | 2 Mar 2026 65,776.50 | 7 Mar 2026 68,114.00 | 5 | $2,337.54 |
| long | 31 Mar 2026 66,797.40 | 11 Apr 2026 72,962.70 | 11 | $6,165.33 |
| long | 21 May 2026 77,552.20 | 24 Jul 2026 65,099.00 | 64 | −$12,453.30 |
| long | 31 May 2026 73,884.40 | 24 Jul 2026 65,099.00 | 54 | −$8,785.40 |
| long | 1 Jun 2026 73,674.40 | 24 Jul 2026 65,099.00 | 53 | −$8,575.41 |
| long | 5 Jun 2026 63,886.00 | 24 Jul 2026 65,099.00 | 49 | $1,212.99 |
| long | 6 Jun 2026 61,056.50 | 24 Jul 2026 65,099.00 | 48 | $4,042.51 |
| long | 7 Jun 2026 60,884.60 | 24 Jul 2026 65,099.00 | 47 | $4,214.36 |
| long | 8 Jun 2026 63,332.00 | 24 Jul 2026 65,099.00 | 46 | $1,766.97 |
| long | 9 Jun 2026 63,086.00 | 24 Jul 2026 65,099.00 | 45 | $2,012.98 |
| long | 10 Jun 2026 61,730.00 | 24 Jul 2026 65,099.00 | 44 | $3,368.98 |
| long | 22 Jun 2026 63,312.00 | 24 Jul 2026 65,099.00 | 32 | $1,786.98 |
| long | 27 Jun 2026 60,097.30 | 24 Jul 2026 65,099.00 | 27 | $5,001.71 |
| long | 28 Jun 2026 60,029.00 | 24 Jul 2026 65,099.00 | 26 | $5,069.97 |
| long | 29 Jun 2026 59,577.00 | 24 Jul 2026 65,099.00 | 25 | $5,521.97 |
| long | 30 Jun 2026 60,260.20 | 24 Jul 2026 65,099.00 | 24 | $4,838.78 |
| long | 1 Jul 2026 58,624.70 | 24 Jul 2026 65,099.00 | 23 | $6,474.27 |
| long | 2 Jul 2026 60,024.00 | 24 Jul 2026 65,099.00 | 22 | $5,074.98 |
| long | 17 Aug 2026 62,900.00 | 22 Aug 2026 78,338.00 | 5 | $15,438.00 |
Similar scripts
Indicators and strategies built from the same calculations, run on BTCUSDT 1D with their own defaults so they can be compared directly.
| Script | Shares | Type | Net | Trades | Max drawdown |
|---|---|---|---|---|---|
| Escaping of Rate from Avarage By Mustafa OZVER Strategy this page | — | v4 strategy | +122.0% | 96 | 79.1% |
| No-lose trading targets (Based on EoRfA) By Mustafa ÖZVER by Mustafaozver | wma stdev ema | v4 strategy | No trades on this market | ||
| SL1 Pips after TP2 (MA) by gpadihar | ema wma | v4 strategy | +0.4% | 33 | 0.1% |
| Bollinger Band with Fib Golden Ratio (0.618) by mohanee | stdev ema | v4 strategy | No trades on this market | ||
| Volume Weighted Bollinger Bands Strategy by Ankit_1618 | ema stdev | v4 strategy | +10.0% | 15 | 27.5% |
| BB21_MA200_Strategy by mohanee | ema stdev | v4 strategy | No trades on this market | ||
Where it runs
| Engine | Compiles | Runs | Matches TradingView |
|---|---|---|---|
| Zeal Terminal · OpenPineScript v2 | Yes 8 ms | With a workaround 1,000 bars in 25 ms | Not measured |
| PineTS | No v5 and v6 only | — | Not measured |
Zeal Terminal's engine currently reads an order side written as true as a short, whatever it says; this page passes the same side as strategy.long or strategy.short (line 24) so the engine trades the way the script says.
“Matches TradingView” needs this script's own output exported from TradingView and compared bar by bar, which has not been done for this script. The engine is built on OpenPineScript, whose conformance results are in its conformance report. PineTS runs Pine Script v5 and v6 only.
Source
Copied verbatim from the author's published script, with its licence header intact. The author may have updated the original since this snapshot.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © Mustafaozver//@version=4strategy("Escaping of Rate from Avarage By Mustafa OZVER", "EoRfA", overlay=false)//strategy("Escaping of Rate from Avarage By Mustafa OZVER", "EoRfA", overlay=false)src = input(ohlc4,"Source")FPrice = wma(src,3)len = input(17,"Length")stdev = stdev(FPrice,len)ema2 = ema(FPrice,len)Rate1 = (FPrice - ema2) / stdev//bgcolor(color=((stdev/ema)>0.0015)?color.green:#00000000,transp=80)colorG = color.limecolorR = color.redhline(0,linestyle=hline.style_solid,editable=false)hline1=hline(1,linestyle=hline.style_dotted,editable=false)hlinen1=hline(-1,linestyle=hline.style_dotted,editable=false)fill(hline1,hlinen1,color=color.silver,transp=85,editable=true)//plot(Rate,color=(Rate>0?colorG:colorR),transp=75,style=plot.style_area,editable=false)plot(Rate1,title="ESC1",color=(Rate1>0?colorG:colorR),style=plot.style_line,linewidth=1,editable=true)BUYSIGNAL = Rate1 < -1 and change(Rate1) > 0SELLSIGNAL = Rate1 > 1 and change(Rate1) < 0if (BUYSIGNAL) strategy.order("LONG1",true) //strategy.close("SHORT1")if (SELLSIGNAL) // strategy.order("SHORT1",false) strategy.close("LONG1")