Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

Monthly Returns of a Strategy in a Chart

A Pine Script v5 strategy built on Pivothigh (2, 1) and Pivotlow (2, 1). It has 2 order rules, 2 entries among them, and trades long and short with the default settings. Exits wait for a signal; there is no stop loss. Each trade commits 25% of equity and pays 0.1% commission. 11 settings; defaults include Left Bars 2, Right Bars 1 and Precision 2.

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 Monthly Returns of a Strategy in a Chart repaint?
Yes
At least one pattern in the source can repaint: intrabar recalculation.
How did Monthly Returns of a Strategy in a Chart do on BTCUSDT 1D with default settings?
+21.02%
From 26 Jan 2024 to 21 Oct 2026, over 76 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
Does Monthly Returns of a Strategy in a Chart 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: 76 before, 76 after on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. It is shown for reference and is not offered as a download.
Does Monthly Returns of a Strategy in a Chart use a stop loss?
No
Every exit waits for a signal; nothing limits a losing trade before it fires.
Does Monthly Returns of a Strategy in a Chart run in Zeal Terminal?
Yes
It compiles in 67 ms and runs 1,000 bars in 104 ms, in the browser.

BTCUSDT · 1D · default settings

  • Plot
  • Plot
  • 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 (6)
40,00060,00080,000100,000120,000AprJulOct2025AprJulOct2026AprJulOct$1,211,480$2,025,273Equity from $1,000,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
7Monthly P&L
3
0
-3
-7
FEB 24MAR 24APR 24MAY 24JUN 24JUL 24AUG 24SEP 24OCT 24NOV 24DEC 24JAN 25FEB 25MAR 25APR 25MAY 25JUN 25JUL 25AUG 25SEP 25OCT 25NOV 25DEC 25JAN 26FEB 26MAR 26APR 26MAY 26JUN 26JUL 26AUG 26SEP 26OCT 26
Net profit
+21.02%
$210,214.00
Buy and hold
+102.5%
same period
Closed trades
76
28 won · 48 lost
Profitable
36.8%
of closed trades
Profit factor
1.37
gross profit ÷ gross loss
Max drawdown
13.02%
−$153,358.00

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

  • 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
Left Bars2intswh swl
Right Bars1intswh swl
Precision2intline 145
Plot Setting
Plot LocationBottom Centerstring · options ["Top Right" , "Middle Right" , "Bottom Right" , "Top Center", "Middle Center", "Bottom Center", "Top Left" , "Middle Left" , "Bottom Left" ]plt
Bar Height0.3float · min 0.2 · step 0.01line 107 line 109
Bar Width1.15float · min 1 · step 0.01line 107 line 109 line 119 line 150 line 165
Background #696969colorplt line 106 line 160
Border color.silvercolorplt barCol line 163
Text color.whitecolorplt line 115 line 122 line 130 line 150 line 173
UP color.greencolorbarCol
DOWNcolor.redcolorbarCol

What it calculates

  • PivothighLeft Bars (2), Right Bars (1)swh · line 34
  • PivotlowLeft Bars (2), Right Bars (1)swl · line 35

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.

leftBarsLeft Barssetting · 2rightBarsRight Barssetting · 1highhighprice datalowlowprice datatimetimeprice datainPlotPosPlot Locationsetting · Bottom CenterswhPivothigh→ swhswlPivotlow→ swlhpricehpricevaluelpricelpricevaluelelevaluesesevaluebar_pnl, scalCoef, numColbar_pnl · scalCoef +13 valuescur_month_pnlcur_month_pnlvaluelast_computedlast_computedvaluewwvaluenew_monthnew_monthconditionplt, barColColourplt · barColentry:PivRevLEOpen PivRevLEstrategy.entryentry:PivRevSEOpen PivRevSEstrategy.entryplot:48plotplotplot:49plotplot

Order rules

OrderFires whenBy defaultLine
Open PivRevLE long(le)On45
Open PivRevSE short(se)On47

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

Does it repaint?

Yes

At least one pattern in the source can repaint; it is marked Check below.

21/21trades 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. On 18 of them the position changed while the bar was forming before it settled. Anyone watching live sees those changes; once the bar closes it matches history.
  • ClearHigher-timeframe dataThe script requests no other symbol or timeframe.
  • ClearFuture-bar referencesNo negative history offsets such as close[-1].
  • CheckIntrabar recalculationcalc_on_every_tick = true. Live values can differ from history.
  • 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.

MarketNetBuy and holdTradesWonProfit factorMax drawdownPeriod
BTCUSDT 1D+21.0%+102.5%7637%1.3713.0%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h−1.8%+5.5%9828%0.925.8%8 May 2026 – 21 Oct 2026
ETHUSDT 1D+22.1%+9.8%7738%1.2315.8%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h−0.7%+8.4%9229%0.977.8%8 May 2026 – 21 Oct 2026
SOLUSDT 1D−4.8%+16.7%8439%0.9522.0%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h+0.5%+21.5%9633%1.018.9%8 May 2026 – 21 Oct 2026
BNBUSDT 1D−17.2%+148.3%8132%0.7834.4%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h+2.4%+17.1%9535%1.115.1%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 market3030%−$14,183.60
Sideways market3053%$228,807.00
Falling market1619%−$4,105.08

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

How bad could the drawdown be?

17.4%

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

0%20%
All 76 trades
SideEntryExitBarsP&L
long7 Feb 2024 43,569.8023 Feb 2024 50,625.0016$39,901.90
short23 Feb 2024 50,625.0026 Feb 2024 52,985.003−$12,688.60
long26 Feb 2024 52,985.0015 Mar 2024 67,024.9018$67,841.00
short15 Mar 2024 67,024.9025 Mar 2024 68,240.5010−$5,620.51
long25 Mar 2024 68,240.5012 Apr 2024 67,518.0018−$3,436.34
short12 Apr 2024 67,518.0021 Apr 2024 65,450.009$7,846.43
long21 Apr 2024 65,450.0027 Apr 2024 62,794.006−$11,646.30
short27 Apr 2024 62,794.006 May 2024 64,734.009−$8,934.91
long6 May 2024 64,734.0031 May 2024 67,124.6025$9,382.65
short31 May 2024 67,124.604 Jun 2024 70,687.604−$14,981.30
long4 Jun 2024 70,687.6011 Jun 2024 68,420.007−$9,145.63
short11 Jun 2024 68,420.0013 Jul 2024 59,650.0032$33,533.60
long13 Jul 2024 59,650.001 Aug 2024 63,456.7019$16,951.50
short1 Aug 2024 63,456.7020 Aug 2024 60,285.0019$13,371.80
long20 Aug 2024 60,285.0030 Aug 2024 57,860.0010−$11,867.10
short30 Aug 2024 57,860.0012 Sep 2024 58,088.0013−$1,659.58
long12 Sep 2024 58,088.001 Oct 2024 62,670.0019$21,343.70
short1 Oct 2024 62,670.006 Oct 2024 62,484.905$270.95
long6 Oct 2024 62,484.9010 Oct 2024 59,828.104−$12,581.60
short10 Oct 2024 59,828.1014 Oct 2024 63,480.004−$17,679.20
long14 Oct 2024 63,480.003 Nov 2024 68,820.1020$22,606.90
short3 Nov 2024 68,820.106 Nov 2024 73,620.103−$20,187.50
long6 Nov 2024 73,620.105 Dec 2024 93,578.2029$75,213.80
short5 Dec 2024 93,578.2014 Dec 2024 102,540.009−$29,262.20
long14 Dec 2024 102,540.0020 Dec 2024 94,150.006−$24,102.70
short20 Dec 2024 94,150.002 Jan 2025 96,250.0013−$6,889.95
long2 Jan 2025 96,250.009 Jan 2025 91,530.407−$14,298.10
short9 Jan 2025 91,530.4017 Jan 2025 102,724.008−$34,611.20
long17 Jan 2025 102,724.0027 Jan 2025 99,550.0010−$8,844.21
short27 Jan 2025 99,550.0014 Feb 2025 98,478.4018$2,340.81
long14 Feb 2025 98,478.4018 Feb 2025 94,088.204−$12,406.20
short18 Feb 2025 94,088.2021 Feb 2025 98,826.003−$13,802.80
long21 Feb 2025 98,826.0024 Feb 2025 94,871.903−$10,877.20
short24 Feb 2025 94,871.9014 Mar 2025 84,539.9018$27,501.00
long14 Mar 2025 84,539.903 Apr 2025 81,278.5020−$10,753.30
short3 Apr 2025 81,278.5011 Apr 2025 83,588.008−$7,952.67
long11 Apr 2025 83,588.0029 May 2025 106,601.0048$71,391.30
short29 May 2025 106,601.009 Jun 2025 106,795.0011−$1,058.92
long9 Jun 2025 106,795.0020 Jun 2025 103,371.0011−$9,409.46
short20 Jun 2025 103,371.0025 Jun 2025 106,525.005−$8,926.18
long25 Jun 2025 106,525.0020 Jul 2025 116,813.0025$25,657.80
short20 Jul 2025 116,813.007 Aug 2025 115,720.0018$2,049.64
long7 Aug 2025 115,720.0018 Aug 2025 116,804.0011$2,050.03
short18 Aug 2025 116,804.005 Sep 2025 112,575.0018$9,554.93
long5 Sep 2025 112,575.0022 Sep 2025 114,384.0017$3,964.85
short22 Sep 2025 114,384.001 Oct 2025 117,900.009−$9,260.93
long1 Oct 2025 117,900.009 Oct 2025 120,575.008$5,830.56
short9 Oct 2025 120,575.0026 Oct 2025 112,105.0017$19,323.60
long26 Oct 2025 112,105.0030 Oct 2025 106,667.004−$14,447.90
short30 Oct 2025 106,667.0026 Nov 2025 89,228.0027$46,001.80
long26 Nov 2025 89,228.007 Dec 2025 88,056.0011−$4,463.30
short7 Dec 2025 88,056.009 Dec 2025 94,150.002−$20,939.90
long9 Dec 2025 94,150.0014 Dec 2025 89,260.605−$15,653.20
short14 Dec 2025 89,260.6022 Dec 2025 90,365.908−$4,094.18
long22 Dec 2025 90,365.9018 Jan 2026 94,293.4027$11,763.60
short18 Jan 2026 94,293.4025 Feb 2026 68,698.7038$77,207.30
long25 Feb 2026 68,698.7021 Mar 2026 68,793.3024−$192.40
short21 Mar 2026 68,793.3025 Mar 2026 71,817.104−$14,110.10
long25 Mar 2026 71,817.1027 Mar 2026 67,360.602−$19,370.70
short27 Mar 2026 67,360.606 Apr 2026 69,310.0010−$9,228.41
long6 Apr 2026 69,310.0013 May 2026 79,181.5037$41,308.40
short13 May 2026 79,181.5012 Jun 2026 64,234.7030$57,187.60
long12 Jun 2026 64,234.7023 Jun 2026 62,272.1011−$10,385.90
short23 Jun 2026 62,272.1014 Jul 2026 64,692.8021−$13,024.20
long14 Jul 2026 64,692.8027 Jul 2026 63,739.7013−$5,281.73
short27 Jul 2026 63,739.707 Aug 2026 65,025.2011−$6,958.62
long7 Aug 2026 65,025.2013 Aug 2026 63,238.006−$9,153.23
short13 Aug 2026 63,238.0019 Aug 2026 65,474.506−$11,514.40
long19 Aug 2026 65,474.501 Sep 2026 76,888.0013$52,609.40
short1 Sep 2026 76,888.003 Sep 2026 81,478.902−$19,754.90
long3 Sep 2026 81,478.9010 Sep 2026 77,620.007−$15,642.60
short10 Sep 2026 77,620.0018 Sep 2026 79,600.008−$8,526.36
long18 Sep 2026 79,600.0028 Sep 2026 82,874.9010$12,122.80
short28 Sep 2026 82,874.902 Oct 2026 85,650.004−$11,062.10
long2 Oct 2026 85,650.008 Oct 2026 82,563.006−$11,700.30
short8 Oct 2026 82,563.0021 Oct 2026 84,352.0013−$7,222.82

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
Monthly Returns of a Strategy in a Chart this page—v5 strategy+21.0%7613.0%
Pivot Point Breakout by EduardoMattjepivotlow pivothighv5 strategy+93.0%2532.3%
ZigZag by Zeal Terminalpivothigh pivotlowv5 indicatorindicator
RSI Centered Pivots by OztheWozpivotlow pivothighv4 strategy+98.0%4160.2%
ABCD Strategy by kerok3gpivothigh pivotlowv5 strategy−2.7%43.0%
Steven Primo's bollinger bands strategy by EduardoMattjepivothigh pivotlowv5 strategy−17.7%1528.2%

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?

No

The v6 version runs in Zeal Terminal's engine, but its results differ from the v5 version: Trades differ: 76 before, 76 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.

⋯// © QuantNomad-//@version=5+//@version=6strategy("Monthly Returns in a Chart", overlay = true, ⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 67 msYes 1,000 bars in 104 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 source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © QuantNomad//@version=5strategy("Monthly Returns in a Chart", overlay = true,      default_qty_type = strategy.percent_of_equity, default_qty_value = 25,      calc_on_every_tick = true, commission_type = strategy.commission.percent,      commission_value = 0.1)// |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|// |                                   INPUTS                                   |// |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|leftBars  = input.int(2, title = "Left Bars" )rightBars = input.int(1, title = "Right Bars")prec      = input.int(2, title = "Precision" )// Plot LocationinPlotPos  = input.string(title="Plot Location", defval= "Bottom Center",      options =["Top Right" , "Middle Right" , "Bottom Right" ,                "Top Center", "Middle Center", "Bottom Center",                "Top Left"  , "Middle Left"  , "Bottom Left" ], group= "Plot Setting")// Bar SizebarHigh = input.float(0.3,  "Bar Height", minval = 0.2, step= 0.01, group = "Plot Setting")barWdth = input.float(1.15, "Bar Width" , minval = 1,   step= 0.01, group = "Plot Setting")// Plot ColorpltCol  = input.color(#696969,      title="Background ", group = "Plot Setting", inline = "1")borCol  = input.color(color.silver, title="Border   ",   group = "Plot Setting", inline = "2")txtCol  = input.color(color.white,  title="Text    ",    group = "Plot Setting", inline = "3")// Bar ColorposCol  = input.color(color.green, title=" UP  ", group = "Plot Setting", inline = "1")negCol  = input.color(color.red,   title=" DOWN", group = "Plot Setting", inline = "2")// |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|// |                             CALCULATION                                    |// |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|// +++++++++++++++++++++++++++++++++++ STRATEGY// Pivot Points swh = ta.pivothigh(leftBars, rightBars)swl = ta.pivotlow(leftBars, rightBars)hprice = 0.0hprice := not na(swh) ? swh : hprice[1]lprice = 0.0lprice := not na(swl) ? swl : lprice[1]le = falsele := not na(swh) ? true : (le[1] and high > hprice ? false : le[1])se = falsese := not na(swl) ? true : (se[1] and low < lprice ? false : se[1])if (le)    strategy.entry("PivRevLE", strategy.long, comment="PivRevLE", stop=hprice + syminfo.mintick)if (se)    strategy.entry("PivRevSE", strategy.short, comment="PivRevSE", stop=lprice - syminfo.mintick)plot(hprice, color = color.green, linewidth = 2)plot(lprice, color = color.red,   linewidth = 2)// +++++++++++++++++++++++++++++++++++ OUTPUT ARRAYnew_month = month(time) != month(time[1])bar_pnl   = strategy.equity / strategy.equity[1] - 1cur_month_pnl = 0.0// Current Monthly P&Lcur_month_pnl := new_month ? 0.0 :                  (1 + cur_month_pnl[1]) * (1 + bar_pnl) - 1 // Arrays to store Yearly and Monthly P&Lsvar month_pnl  = array.new_float(0)var month_time = array.new_int(0)last_computed = falseif (not na(cur_month_pnl[1]) and (new_month or barstate.islast))    if (last_computed[1])        array.pop(month_pnl)        array.pop(month_time)            array.push(month_pnl , 100 * cur_month_pnl[1])    array.push(month_time, time[1])last_computed := barstate.islast ? true : nz(last_computed[1])if array.size(month_pnl) > 71    array.shift(month_pnl)    array.shift(month_time)// Find the Maximum Number for Plot ScalescalCoef = 32/math.max(math.abs(array.min(month_pnl)), math.abs(array.max(month_pnl)))// |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|// |                                   TABLE                                    |// |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|// Get months NamemonNme(m) =>    mnth = array.from("JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG",                       "SEP", "OCT", "NOV", "DEC")    array.get(mnth, m-1)// Get Table PositionpltPos(p) =>     switch p        "Top Right"     => position.top_right             "Middle Right"  => position.middle_right           "Bottom Right"  => position.bottom_right          "Top Center"    => position.top_center            "Middle Center" => position.middle_center        "Bottom Center" => position.bottom_center        "Top Left"      => position.top_left              "Middle Left"   => position.middle_left         => position.bottom_left// Find Number of ColumnsnumCol = array.size(month_pnl) * 2 + 2 < 10 ? 10 : array.size(month_pnl) * 2 + 2// Set Up Plot Tablevar plt = table.new(position.bottom_left, 1 , 1)plt    := table.new(pltPos(inPlotPos), numCol, 69, bgcolor = color.new(pltCol, 50),          frame_width  = 1,  frame_color  = borCol,          border_width = 0,  border_color = color.new(txtCol, 100))// Plot CellpltCell (x, y, w, h, col, tt) =>    table.cell(plt, x, y, width = w, height = h, bgcolor = col)    table.cell_set_tooltip(plt, x, y, tt)// Plot ColumnspltCol (x, y, k, col, tt) =>    pltCell(x, y > 0 ? 33 - k : y < 0 ? 35 - k : 33, barWdth, barHigh,      color.new(col,   0), tt)    pltCell(x, y > 0 ? 35 + k : y < 0 ? 33 + k : 33, barWdth, barHigh,      color.new(col, 100), tt)// Label Y-Axis IncrementsyInc(y, val) =>    table.cell(plt, 0, y-2, text = str.tostring(val, "#.#"),          text_halign = text.align_center, text_valign = text.align_center,          text_color = txtCol, text_size = size.small, width = 1.5, height = 0.2)    table.merge_cells(plt, 0, y-2, 0, y+2)// Plot TitlepltTtl(x, xf, txt, txtCol) =>    table.cell(plt, x, 0, width = barWdth, height = 2,              bgcolor = color.new(color.black, 100),              text_halign = text.align_center, text_valign = text.align_top,              text = txt, text_color = txtCol, text_size = size.small)    table.merge_cells(plt, x, 0, xf, 0)if barstate.islast    if array.size(month_pnl) > 0                // Reset Table.         for i = 0 to numCol - 1            for j = 0 to 68                pltCell(i, j, 0.001, 0.001, color.new(txtCol, 100), "")                w = 0        for i = 1 to array.size(month_pnl) * 2 + 1              if i%2 == 0                 barCol = array.get(month_pnl, w) > 0 ? posCol :                         array.get(month_pnl, w) < 0 ? negCol : borCol                                    //Plot Columns                if scalCoef * array.get(month_pnl, w) == 0                    pltCol(i, array.get(month_pnl, w), 0, barCol, "")                                    else                     for k = 0 to math.round(scalCoef * array.get(month_pnl, w))                        pltCol(i, array.get(month_pnl, w), k, barCol,                         str.tostring(math.round(array.get(month_pnl, w), prec))                          + "\n" + monNme(month(array.get(month_time, w))) + "-" +                         str.tostring(year(array.get(month_time, w))))                                // X-Axis Increments                table.cell(plt, i, 68, width = barWdth, text_color = txtCol,                 text =  monNme(month(array.get(month_time, w))) + "\n" +                         str.tostring(year(array.get(month_time, w)) - 2000),                          text_size = size.tiny)                table.merge_cells(plt, i, 68, i+1, 68)                                w := w + 1                            else                 for j = 0 to 68                    pltCell(i, j, 0.05, 0.001, color.new(pltCol, 94), "")                        if i >= 2 and i <= array.size(month_pnl) * 2                pltCell(i, 34, 0.05, 0.005, borCol, "")        // Y-Axis Increments        table.cell(plt, 0, 1, width = barWdth, height = 1)        yInc( 2, math.ceil( 32/scalCoef))        yInc(18, math.round(16/scalCoef))        yInc(34, 0/scalCoef)        yInc(49, math.round(-16/scalCoef))        yInc(66, math.floor(-32/scalCoef))                // Title        pltTtl( 1, 8, "Monthly P&L", txtCol)