BTC/EUR, BTC/USD, ETC/EUR, ETH/USD, LTC/EUR, BCH/USD
EUR/USD, EUR/GBP, GBP/USD, USD/JPY, EUR/JPY, DXY
JUVENTUS FC, UNICREDIT, INTESA SANPAOLO, ENI, Apple, Advanced Micro Devices Inc
FTSE MIB, Euro Stoxx 50, Indice DAX, FTSE 100, S&P 500, Nasdaq Composite
Petrolio Brent, Petrolio greggio, Oro, Argento, Gas naturale, Bitcoin
Italia 10Y, Euro Bund, Germania 10Y, Francia 10Y, UK 10Y, US 10Y
Oro, Petrolio Brent, Petrolio greggio, CFD Gas Naturale, Palladio, Argento
WARNING: Martingale is subject to HUGE drawdown spikes, use at your own risk!
updated function to also double(aply multiplier) on even trades, example with a MA's crossover.
some simple functions to handle account margin call / trailling stop for account.
Functions with parameters do not work correctly: the returned value is sometimes different from the expected one.
The example script works correctly only when idx = 1 (instead of the current line 6).