Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

Bollinger Bands Modified (Stormer)

A Pine Script v5 strategy built on BB (close, 20), EMA (close, 80) and Highest (high, 7). It has 4 order rules, 2 entries among them, and trades long and short with the default settings. Exits use a stop loss and a profit target. Each trade commits 10% of equity and pays 0.12% commission. 10 settings; defaults include BB Length/Comprimento da Banda de Bollinger 20, BB Standard Deviation/Desvio Padrão da Banda de Bollinger 0.38 and EMA Length/Comprimento da Média Móvel Exponencial 80.

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 Bollinger Bands Modified (Stormer) repaint?
No
No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 6 of 6 trades.
How did Bollinger Bands Modified (Stormer) do on BTCUSDT 1D with default settings?
−7.80%
From 26 Jan 2024 to 21 Oct 2026, over 29 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
What alerts does Bollinger Bands Modified (Stormer) have?
2
{ "side/lado": "sell", "entry/entrada": ' + str.tostring(enterShort) + ', "stop": ' + str.tostring(stopLossShort) + ', "target/alvo": ' + str.tostring(targetShort) + ' }; { "side/lado": "sell", "entry/entrada": ' + str.tostring(enterShort) + ', "stop": ' + str.tostring(stopLossShort) + ', "target/alvo": ' + str.tostring(targetShort) + ' }.
Does Bollinger Bands Modified (Stormer) run in Pine Script v6?
Yes
Same 29 trades and the same P&L on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. Both versions were run on Zeal Terminal's engine, and the results are identical. The v6 script can be downloaded below.
Does Bollinger Bands Modified (Stormer) use a stop loss?
Yes
strategy.exit sets a stop on line 82, 91.

BTCUSDT · 1D · default settings

  • Upper Band
  • Middle Band
  • Lower Band
  • EMA
  • Winning trade
  • Losing trade
  • Equity
  • Buy and hold
Prerendered with the defaults. Change anything and run it here. The script runs in your browser.
Settings (10)
40,00060,00080,000100,000120,000AprJulOct2025AprJulOct2026AprJulOct$9,263$20,253Equity from $10,000
Binance BTCUSDT 1D candles, 26 Jan 2024 to 21 Oct 2026, 1,000 bars, default settings. Triangles mark entries; circles mark exits. Lines are what the script plots.
Table drawn by the script, as it stood on the last bar
Entry Side/Lado da EntradaEntry Price/Preço da Entrada
LONG80883.87
Take Profit Price/Preço Alvo LucroStop Loss Price/Preço Stop Loss
90349.3174967.97
Net profit
−7.80%
−$780.43
Buy and hold
+102.5%
same period
Closed trades
29
6 won · 23 lost
Profitable
20.7%
of closed trades
Profit factor
0.49
gross profit ÷ gross loss
Max drawdown
8.01%
−$802.14

One run with the author's default settings, $10,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.

  • Note

    No slippage

    Fills are assumed at the exact open price. Add slippage in the properties for a more realistic test.

Settings

Every input the script declares, with its default and what it feeds. Bounds are the ones the script enforces.

SettingDefaultType and rangeFeeds
BB Length/Comprimento da Banda de BollingerCalculate the length of bollinger bands./Calcula o comprimento das bandas de bollinger.20int · min 1 · step 1middle upper lower
BB Standard Deviation/Desvio Padrão da Banda de BollingerCalculate the standard deviation of bollinger bands./Calcula o desvio padrão das bandas de bollinger.0.38float · min 0.01 · step 0.01middle upper lower
EMA Length/Comprimento da Média Móvel ExponencialCalculate the length of EMA./Calcula o comprimento da EMA.80int · min 1 · step 1ema
Highest High Length/Comprimento da Alta MaiorFetches the highest high candle from length input. Use to set stop loss for short position./Obtém a vela de maior alta com base na medida fornecida. Usa para definir o stop loss para uma posição curta.7int · min 1 · step 1highestHigh
Lowest Low Length/Comprimento da Baixa MenorFetches the lowest low candle from length input. Use to set stop loss for long position./Obter a vela de menor baixa com base na medida fornecida. Usa para definir o stop loss para uma posição longa.7int · min 1 · step 1lowestLow
Target Take Profit/Objetivo de Lucro AlvoCalculate the take profit factor when entry position./Calcula o fator do alvo lucro ao entrar na posição.1.6float · min 0.1 · step 0.1targetLong targetShort
Check Trend EMA/Verificar Tendência da Média Móvel ExponencialUse EMA as trend verify for opening position./Usa a EMA como verificação de tendência para abrir posição.trueboolisLongCondition isShortCondition
Add Another Crossover Check/Adicionar Mais uma Verificação de Cruzamento SuperiorThis option is to add one more veryfication attempt to check if price is crossover upper bollinger band./Esta opção é para adicionar uma verificação adicional para avaliar se o preço cruza a banda superior da banda de bollinger.falseboolisLongCross
Add Another Crossunder Check/Adicionar Mais uma Verificação de Cruzamento InferiorThis option is to add one more veryfication attempt to check if price is crossunder lower bollinger band./Esta opção é para adicionar uma verificação adicional para avaliar se o preço cruza a banda inferior da banda de bollinger.falseboolisShortCross
Show Inside Bar Pattern/Mostrar Padrão de Inside BarThis option is to show possible inside bar pattern./Esta opção é para mostrar um possível padrão de inside bar.trueboolInside Bar Color in Long Bar Long and in Short Bar Short/Cor do Inside Bar em Barra Longa Longa e em Barra Curta Curta

What it calculates

  • BBclose, BB Length/Comprimento da Banda de Bollinger (20), BB Standard Deviation/Desvio Padrão da Banda de Bollinger (0.38)middle · line 15
  • BBclose, BB Length/Comprimento da Banda de Bollinger (20), BB Standard Deviation/Desvio Padrão da Banda de Bollinger (0.38)upper · line 15
  • BBclose, BB Length/Comprimento da Banda de Bollinger (20), BB Standard Deviation/Desvio Padrão da Banda de Bollinger (0.38)lower · line 15
  • EMAclose, EMA Length/Comprimento da Média Móvel Exponencial (80)ema · line 16
  • Highesthigh, Highest High Length/Comprimento da Alta Maior (7)highestHigh · line 17
  • Lowestlow, Lowest Low Length/Comprimento da Baixa Menor (7)lowestLow · line 18
  • Crossoverclose, upperisCrossover · line 19
  • Crossunderclose, lowerisCrossunder · line 20

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.

closecloseprice databbLBB Length/Comprimento d…setting · 20multBB Standard Deviation/D…setting · 0.38emaLEMA Length/Comprimento …setting · 80highhighprice datahighestHighLHighest High Length/Com…setting · 7lowlowprice datalowestLowLLowest Low Length/Compr…setting · 7openopenprice datatargetFactorTarget Take Profit/Obje…setting · 1.6middleBB→ middleupperBB→ upperlowerBB→ loweremaEMA→ emahighestHighHighest→ highestHighlowestLowLowest→ lowestLowisCrossoverCrossover→ isCrossoverisCrossunderCrossunder→ isCrossunderisPrevBarHighGreaterCurBarHighisPrevBarHighGreaterCur…valueisPrevBarLowLesserCurBarLowisPrevBarLowLesserCurBa…valueisInsideBarisInsideBarvalueisBarLong, isBarShortisBarLong · isBarShort2 valuesisLongCrossisLongCrossvalueisShortCrossisShortCrossvalueisCandleAboveEma, isCandleBelowEmaisCandleAboveEma · isCa…2 valuesisLongConditionisLongConditionvalueisShortConditionisShortConditionvalueisPositionNone, isPositionLong, isPositionShort, tablePositionisPositionNone · isPosi…4 valuesenterLong, enterShortenterLong · enterShort2 valuesstopLossLongstopLossLongvaluetargetLongtargetLongvaluestopLossShortstopLossShortvaluetargetShorttargetShortvaluetableInfoTradetableInfoTradevaluetableBorderColorColourtableBorderColorentry:LongOpen Longstrategy.entryexit:Exit Longexit Exit Longstrategy.exitentry:ShortOpen Shortstrategy.entryexit:Exit Shortexit Exit Shortstrategy.exitalert:80alertalertalert:89alertalertplot:92Upper Bandplotplot:93Middle Bandplotplot:94Lower Bandplotplot:95EMAplotbarcolor:96Inside Bar Color in Lon…barcolor

Order rules

OrderFires whenBy defaultLine
Open Long long(isLongCondition and not isLongEntry)On81
Exit Exit Long stop and limit(isLongCondition and not isLongEntry)On82
Open Short short(isShortCondition and not isShortEntry)On90
Exit Exit Short stop and limit(isShortCondition and not isShortEntry)On91

Each order is guarded by the setting shown. “Off” orders never fire unless that setting is switched on.

Alerts

AlertCallMessageLine
(no title)alert{ "side/lado": "sell", "entry/entrada": ' + str.tostring(enterShort) + ', "stop": ' + str.tostring(stopLossShort) + ', "target/alvo": ' + str.tostring(targetShort) + ' }80
(no title)alert{ "side/lado": "sell", "entry/entrada": ' + str.tostring(enterShort) + ', "stop": ' + str.tostring(stopLossShort) + ', "target/alvo": ' + str.tostring(targetShort) + ' }89

Does it repaint?

No

No repainting patterns in the source, and the live replay matched history.

6/6trades identical when replayed liveThe last 300 bars, from 26 Dec 2025, were fed to the engine as live ticks, four per bar, and compared with the historical run. Orders are decided once per closed bar, so nothing can change mid-bar.
  • 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 timingprocess_orders_on_close = true: orders fill at the signal bar's close.

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.

MarketNetBuy and holdTradesWonProfit factorMax drawdownPeriod
BTCUSDT 1D−7.8%+102.5%2921%0.498.0%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h−1.1%+5.5%3037%0.732.3%8 May 2026 – 21 Oct 2026
ETHUSDT 1D−10.8%+9.8%5225%0.6210.8%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h−1.4%+8.4%3330%0.743.0%8 May 2026 – 21 Oct 2026
SOLUSDT 1D−0.8%+16.7%2631%0.965.1%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h+2.1%+21.5%3043%1.451.6%8 May 2026 – 21 Oct 2026
BNBUSDT 1D−1.7%+148.3%3746%0.906.9%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h−0.6%+17.1%4033%0.882.2%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 barsTradesWonP&L
Rising market1030%−$198.62
Sideways market1315%−$310.54
Falling market617%−$270.16

Rising and falling mean the market moved more than 15% over the 90 bars before entry.

How bad could the drawdown be?

11.4%

The 95th percentile of the worst drawdown when the same 29 trades are reshuffled 5,000 times. The bar spans the 5th to 95th percentile, 7.8% to 11.4%; the tick is what actually happened, 7.9%. Order luck alone moves it this much.

0%13%
All 29 trades
SideEntryExitBarsP&L
short10 May 2024 60,800.0015 May 2024 65,500.005−$79.70
long15 May 2024 66,206.5024 Jun 2024 60,187.1040−$92.36
short2 Aug 2024 61,498.3014 Oct 2024 66,084.0073−$75.64
long14 Oct 2024 66,084.0010 Nov 2024 77,504.8027$165.82
long27 Nov 2024 95,863.105 Dec 2024 103,978.008$81.38
long11 Dec 2024 101,125.0013 Jan 2025 90,500.0033−$107.21
long14 Jan 2025 96,560.9020 Jan 2025 108,248.006$117.07
long29 Jan 2025 103,733.002 Feb 2025 97,777.804−$59.73
long20 Feb 2025 98,305.0024 Feb 2025 93,388.104−$52.03
short3 Mar 2025 86,220.6025 Apr 2025 95,000.0053−$103.16
long9 Jun 2025 110,263.0022 Jun 2025 100,372.0013−$90.00
long25 Jun 2025 107,341.0014 Jul 2025 121,966.0019$129.58
long27 Jul 2025 119,416.001 Aug 2025 114,723.005−$40.91
long10 Aug 2025 119,294.0020 Aug 2025 112,650.0010−$56.76
short4 Sep 2025 110,731.005 Sep 2025 112,639.001−$19.11
long10 Sep 2025 113,960.0022 Sep 2025 112,651.0012−$13.46
short22 Sep 2025 112,651.001 Oct 2025 117,900.009−$47.55
long1 Oct 2025 118,595.0010 Oct 2025 108,620.009−$83.34
short10 Oct 2025 112,775.0026 Oct 2025 114,559.0016−$17.45
long26 Oct 2025 114,559.0030 Oct 2025 106,667.004−$67.97
short30 Oct 2025 108,323.0014 Nov 2025 95,399.5015$110.92
short1 Dec 2025 86,286.003 Dec 2025 93,092.002−$78.01
short14 Dec 2025 88,172.205 Jan 2026 94,589.0022−$71.57
short20 Jan 2026 88,427.703 Feb 2026 73,232.7014$160.10
short27 Feb 2026 65,872.102 Mar 2026 69,988.803−$62.36
short8 Mar 2026 65,971.2016 Mar 2026 74,050.008−$119.19
short21 Mar 2026 68,918.1014 Apr 2026 76,000.0024−$99.13
long1 May 2026 78,231.1023 May 2026 74,937.5022−$41.41
short18 Jun 2026 62,958.0019 Aug 2026 67,292.1062−$66.16

Similar scripts

Indicators and strategies built from the same calculations, run on BTCUSDT 1D with their own defaults so they can be compared directly.

ScriptSharesTypeNetTradesMax drawdown
Bollinger Bands Modified (Stormer) this page—v5 strategy−7.8%298.0%
Korea premium(KIMP) by roses27highest lowest ema bbv4 strategydoes not run in Zeal Terminal
CC Trend strategy 2- Downtrend Short by CheatCode1ema highest lowestv5 strategyNo trades on this market
TrianglePoint strategy by mohaneehighest lowest emav4 strategy+45.4%11101.9%
Lagged Donchian Channel + EMA by Mysteriownema highest lowestv4 strategy−12.3%412.3%
Backtest Custom HiLo Strategy by luyikaibrema highest lowestv4 strategyNo trades on this market

Upgrade and export

Written in Pine Script v5. The clean-v5 step types the settings and moves when = into if blocks, which v6 requires; it is run before and after like any upgrade.

  • No v6-only features. v6 is not needed to run this script.

Clean v5

Verified

Nothing to change.

Does it run in Pine Script v6?

Yes

Same 29 trades and the same P&L on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. Both versions were run on Zeal Terminal's engine, and the results are identical. It differs from the v5 version by 1 edit.

Download the v6 script

⋯// © AugustoErni-//@version=5+//@version=6strategy('Bollinger Bands Modified (Stormer)', overlay=true, process_orders_on_close=true, calc_on_every_tick=false, calc_on_order_fills=false, initial_capital=10000, currency=currency.USD, default_qty_type=strategy.percent_of_equity, default_qty_value=10, pyramiding=0, commission_type=strategy.commission.percent, commission_value=0.12)⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 76 msYes 1,000 bars in 67 msNot measured
PineTSNot testedNot testedNot measured

“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.

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 close code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © AugustoErni//@version=5strategy('Bollinger Bands Modified (Stormer)', overlay=true, process_orders_on_close=true, calc_on_every_tick=false, calc_on_order_fills=false, initial_capital=10000, currency=currency.USD, default_qty_type=strategy.percent_of_equity, default_qty_value=10, pyramiding=0, commission_type=strategy.commission.percent, commission_value=0.12)bbL                   = input.int(20, title='BB Length/Comprimento da Banda de Bollinger', minval=1, step=1, tooltip='Calculate the length of bollinger bands./Calcula o comprimento das bandas de bollinger.')mult                  = input.float(0.38, title='BB Standard Deviation/Desvio Padrão da Banda de Bollinger', minval=0.01, step=0.01, tooltip='Calculate the standard deviation of bollinger bands./Calcula o desvio padrão das bandas de bollinger.')emaL                  = input.int(80, title='EMA Length/Comprimento da Média Móvel Exponencial', minval=1, step=1, tooltip='Calculate the length of EMA./Calcula o comprimento da EMA.')highestHighL          = input.int(7, title='Highest High Length/Comprimento da Alta Maior', minval=1, step=1, tooltip='Fetches the highest high candle from length input. Use to set stop loss for short position./Obtém a vela de maior alta com base na medida fornecida. Usa para definir o stop loss para uma posição curta.')lowestLowL            = input.int(7, title='Lowest Low Length/Comprimento da Baixa Menor', minval=1, step=1, tooltip='Fetches the lowest low candle from length input. Use to set stop loss for long position./Obter a vela de menor baixa com base na medida fornecida. Usa para definir o stop loss para uma posição longa.')targetFactor          = input.float(1.6, title='Target Take Profit/Objetivo de Lucro Alvo', minval=0.1, step=0.1, tooltip='Calculate the take profit factor when entry position./Calcula o fator do alvo lucro ao entrar na posição.')emaTrend              = input.bool(true, title='Check Trend EMA/Verificar Tendência da Média Móvel Exponencial', tooltip='Use EMA as trend verify for opening position./Usa a EMA como verificação de tendência para abrir posição.')crossoverCheck        = input.bool(false, title='Add Another Crossover Check/Adicionar Mais uma Verificação de Cruzamento Superior', tooltip='This option is to add one more veryfication attempt to check if price is crossover upper bollinger band./Esta opção é para adicionar uma verificação adicional para avaliar se o preço cruza a banda superior da banda de bollinger.')crossunderCheck       = input.bool(false, title='Add Another Crossunder Check/Adicionar Mais uma Verificação de Cruzamento Inferior', tooltip='This option is to add one more veryfication attempt to check if price is crossunder lower bollinger band./Esta opção é para adicionar uma verificação adicional para avaliar se o preço cruza a banda inferior da banda de bollinger.')insideBarPatternCheck = input.bool(true, title='Show Inside Bar Pattern/Mostrar Padrão de Inside Bar', tooltip='This option is to show possible inside bar pattern./Esta opção é para mostrar um possível padrão de inside bar.')[middle, upper, lower] = ta.bb(close, bbL, mult)ema                    = ta.ema(close, emaL)highestHigh            = ta.highest(high, highestHighL)lowestLow              = ta.lowest(low, lowestLowL)isCrossover            = ta.crossover(close, upper) ? 1 : 0isCrossunder           = ta.crossunder(close, lower) ? 1 : 0isPrevBarHighGreaterCurBarHigh = high[1] > high ? 1 : 0isPrevBarLowLesserCurBarLow    = low[1] < low ? 1 : 0isInsideBar                    = isPrevBarHighGreaterCurBarHigh and isPrevBarLowLesserCurBarLow ? 1 : 0isBarLong  = ((close - open) > 0) ? 1 : 0isBarShort = ((close - open) < 0) ? 1 : 0isLongCross  = crossoverCheck ? ((isBarLong and not isBarShort) and (open < upper and close > upper)) ? 1 : 0 : isCrossover ? 1 : 0isShortCross = crossunderCheck ? ((isBarShort and not isBarLong) and (close < lower and open > lower)) ? 1 : 0 : isCrossunder ? 1 : 0isCandleAboveEma = close > ema ? 1 : 0isCandleBelowEma = close < ema ? 1 : 0isLongCondition  = emaTrend ? isLongCross and isCandleAboveEma ? 1 : 0 : isLongCrossisShortCondition = emaTrend ? isShortCross and isCandleBelowEma ? 1 : 0 : isShortCrossisPositionNone  = strategy.position_size == 0 ? 1 : 0isPositionLong  = strategy.position_size > 0 ? 1 : 0isPositionShort = strategy.position_size < 0 ? 1 : 0var float enterLong     = 0.0var float stopLossLong  = 0.0var float targetLong    = 0.0var float enterShort    = 0.0var float stopLossShort = 0.0var float targetShort   = 0.0var bool isLongEntry    = falsevar bool isShortEntry   = falseif (isPositionNone)    isLongEntry   := false    isShortEntry  := false    enterLong     := 0.0    stopLossLong  := 0.0    targetLong    := 0.0    enterShort    := 0.0    stopLossShort := 0.0    targetShort   := 0.0if (isPositionShort or isPositionNone)    isLongEntry  := false    enterLong    := 0.0    stopLossLong := 0.0    targetLong   := 0.0if (isPositionLong or isPositionNone)    isShortEntry  := false    enterShort    := 0.0    stopLossShort := 0.0    targetShort   := 0.0if (isPositionLong and isLongEntry)    isLongEntry   := true    isShortEntry  := false    enterShort    := 0.0    stopLossShort := 0.0    targetShort   := 0.0if (isPositionShort and isShortEntry)    isShortEntry := true    isLongEntry  := false    enterLong    := 0.0    stopLossLong := 0.0    targetLong   := 0.0if (isLongCondition and not isLongEntry)    isLongEntry  := true    enterLong    := close    stopLossLong := lowestLow    targetLong   := (enterLong + (math.abs(enterLong - stopLossLong) * targetFactor))    alertMessage = '{ "side/lado": "buy", "entry/entrada": ' + str.tostring(enterLong) + ', "stop": ' + str.tostring(stopLossLong) + ', "target/alvo": ' + str.tostring(targetLong) + ' }'    alert(alertMessage)    strategy.entry('Long', strategy.long)    strategy.exit('Exit Long', 'Long', stop=stopLossLong, limit=targetLong)if (isShortCondition and not isShortEntry)    isShortEntry  := true    enterShort    := close    stopLossShort := highestHigh    targetShort   := (enterShort - (math.abs(enterShort - stopLossShort) * targetFactor))    alertMessage = '{ "side/lado": "sell", "entry/entrada": ' + str.tostring(enterShort) + ', "stop": ' + str.tostring(stopLossShort) + ', "target/alvo": ' + str.tostring(targetShort) + ' }'    alert(alertMessage)    strategy.entry('Short', strategy.short)    strategy.exit('Exit Short', 'Short', stop=stopLossShort, limit=targetShort)plot(upper, title='Upper Band', color=color.blue)plot(middle, title='Middle Band', color=color.gray)plot(lower, title='Lower Band', color=color.blue)plot(ema, title='EMA', color=color.white)barcolor(insideBarPatternCheck and isInsideBar and isBarLong ? color.lime : insideBarPatternCheck and isInsideBar and isBarShort ? color.maroon : na, title='Inside Bar Color in Long Bar Long and in Short Bar Short/Cor do Inside Bar em Barra Longa Longa e em Barra Curta Curta')tablePosition    = position.bottom_righttableColumns     = 2tableRows        = 5tableFrameWidth  = 1tableBorderColor = color.graytableBorderWidth = 1tableInfoTrade = table.new(position=tablePosition, columns=tableColumns, rows=tableRows, frame_width=tableFrameWidth, border_color=tableBorderColor, border_width=tableBorderWidth)table.cell(table_id=tableInfoTrade, column=0, row=0)table.cell(table_id=tableInfoTrade, column=1, row=0)table.cell(table_id=tableInfoTrade, column=0, row=1, text='Entry Side/Lado da Entrada', text_color=color.white)table.cell(table_id=tableInfoTrade, column=0, row=2, text=isLongEntry ? 'LONG' : isShortEntry ? 'SHORT' : 'NONE/NENHUM', text_color=color.yellow)table.cell(table_id=tableInfoTrade, column=1, row=1, text='Entry Price/Preço da Entrada', text_color=color.white)table.cell(table_id=tableInfoTrade, column=1, row=2, text=isLongEntry ? str.tostring(enterLong) : isShortEntry ? str.tostring(enterShort) : 'NONE/NENHUM', text_color=color.blue)table.cell(table_id=tableInfoTrade, column=0, row=3, text='Take Profit Price/Preço Alvo Lucro', text_color=color.white)table.cell(table_id=tableInfoTrade, column=0, row=4, text=isLongEntry ? str.tostring(targetLong) : isShortEntry ? str.tostring(targetShort) : 'NONE/NENHUM', text_color=color.green)table.cell(table_id=tableInfoTrade, column=1, row=3, text='Stop Loss Price/Preço Stop Loss', text_color=color.white)table.cell(table_id=tableInfoTrade, column=1, row=4, text=isLongEntry ? str.tostring(stopLossLong) : isShortEntry ? str.tostring(stopLossShort) : 'NONE/NENHUM', text_color=color.red)