Hello everyone, Here is a perfectly replicated TradingView backtesting engine condensed into a single library function calculated with arrays. It includes TradingView's calculations for Net profit, Total Trades, Percent of Trades Profitable, Profit Factor, Max Drawdown (absolute and percent), and Average Trade (absolute and percent). Here's how TradingView...
Library "profitestimate" Simple profit Estimatr. Engages when Position != 0 and holds until posittion is na/0... if position changes sizes, it will update automatically and adjust. it has an input for comission to estmate exit fees update_avgprice(_sizewas, _delta, _pricewas, _newprice) Get a new Average position Price Parameters: _sizewas :...
Scope: Up to 3 MA's can be applied at the users discretion Choose between 10 different average types including favorites from the Bjorgum series from HEMA to Reversal T3's Each MA can be independently set Go Multi-timeframe! Any MA can be set to any timeframe of reference you choose (ex. using 3 different timeframes of...
█ OVERVIEW This library is a Pine Script™ programmer’s tool containing a variety of strategy-related functions to assist in calculations like profit and loss, stop losses and limits. It also includes several useful functions one can use to convert between units in ticks, price, currency or a percentage of the position's size. █ CONCEPTS The library...
This is advanced version of T-R.A.S with better logic adapted for 4hour / 3month timeframes
Great Expectations helps traders answer the question: What is possible? It is a powerful question, yet exploration of the unknown always entails risk. A more complete set of questions better suited to traders could be: What opportunity exists from any given point on a chart? What portion of this opportunity can be realistically captured? What risk will be...
Hello traders Hope you enjoyed your weekend on my behalf. Was staying home working ... ^^ This is my first strategy educational post I'm doing ever While I'm generally against posting strategies because it's very easy to fake performance numbers... I cannot prevent myself from sharing a few cool strategy snippets anyway. So from now on, I'll be sharing a few...
Library "BjCandlePatterns" Patterns is a Japanese candlestick pattern recognition Library for developers. Functions here within detect viable setups in a variety of popular patterns. Please note some patterns are without filters such as comparisons to average candle sizing, or trend detection to allow the author more freedom. doji(dojiSize, dojiWickSize) ...
Hello traders Here we go again.... with the second strategy snippet. Reminder: the first snipper was a Trailing Profit strategy script What's on the menu? A trailing stop is designed to protect gains by enabling a trade to remain open and continue to profit as long as the price is moving in the investor's favor. The order closes the trade if the price...
Library "StocksDeveloper_AutoTraderWeb" AutoTrader Web trading API functions implementation for Trading View. preparePlaceOrderJson(account, symbol, group, variety) Prepare a place order json Parameters: account : Pseudo or group account number symbol : AutoTrader Web's stock/derivative symbol group : Set it to true to use group account...
This is a hourly version of T-R.A.S It's better for houry timeframes : 2h, 3h, 4h, 6h, 12h, 1d, 4d ; otherwise use version for weekly
If the short term (Default 7) moving average cuts the medium term (default 25) moving average, BUY. Conversely, it generates the SELL signal. If the long term (Default 99) moving average cuts its short term moving average, Quick SELL. Conversely, it can be interpreted as Fast SELL. You can change the moving average and the number of days as you wish, and you can...
Library "table_library" TODO: With this library, you can add tables to your strategies. strategy_table() Returns: Strategy Profit Table Adds a table to the graph of the strategy for which you are calling the function. You can see data such as net profit in this table. No parameters. Just call the function inside the strategy. Example Code : import...
I add a basic strategy for the "Quadratic traffic light" indicator, it can help to find a good configuration. Regards.
My Contribution to Jake Bernstein Educational Series, Initiated by Chris Moody. The Stochastic Pop was developed by Jake Bernstein and modified by David Steckler. Bernstein's original Stochastic Pop is a trading strategy that identifies price pops when the Stochastic Oscillator surges above 80. Steckler modified this strategy by adding conditional filters using...
Library "LevelsManager" TODO: Track up to 6 TakeProfits and 1 StopLoss achievement for one or many of your buy/sell conditions. manageTrade(bool, bool, bool, string, string, float, float, bool, bool, bool, bool, bool, bool, float, float, float, float, float, float, float) Track TakeProfits and StopLoss achievement for one or many of your buy/sell...
Library "time_filters" Collection of filters that related with time like sessions and datetime ranges. All existing session functions I found in the documentation e.g. not na(time(timeframe.period, sessionTimes)) are not suitable for strategies, since the execution of the entries and the exits are delayed by one bar. Thus I created this library to overcome this...