Binary Option Ultimate Backtester-V.1[tanayroy]The Binary Option strategy backtester gives the user extensive power to test any kind of strategy with advance trade management rules.
The strategy tester accepts external scripts as strategy sources. You can add your strategy and test it for historical stats.
Few assumption regarding strategy tester:
We are opening position at next candle after signal come
We are taking the position at opening price
Our call will be profitable if we get a green candle and put will be profitable if we get a red candle
We can open only one trade at a time. So if we are in trade, subsequent signals will be ignored.
How to make your strategy code compatible for strategy backtesting?
In your strategy code file add following lines:
Signal = is_call ? 1 : is_put ? -1 : 0
plot(Signal, title="🔌Connector🔌", display = display.none)
Is_call and is_put is your buy and sell signal. Plot the signal without displaying it in the chart. The new TradingView feature display = display.none, will not display the plot.
All Input options
Group: STRATEGY
Add Your Binary Strategy: External strategy to back test.
Trade Call/Put: Select CALL, to trade Call, PUT, to trade Put. Default is BOTH, Trading Call and Put both.
Number of Candles to Hold: How many candles to hold per trade. Default 1. If you want to hold the option for 30 minutes and you are testing your strategy in 15m intervals, use 2 candle holding periods.
GROUP: MARTINGALE
Martingale Level: Select up to 15 Martingale. Select 1 for no Martingale.
Use Martingale At Strategy Level: Instead of using Martingale per trade basis, using Martingale per signal basis. Like if we make a loss in the first signal, instead of starting martingale immediately we’ll wait for the next signal to put the martingale amount. For example if you start with $1 and you lose, at the next signal you will invest $2 to recover your losses.
Strategy Martingale Level: Select up to 15 Martingale at strategy signal level. Only workable if Use Martingale At Strategy Level is selected.
Type of Trade: Martingale trade type. Only workable if we are using Martingale Level more than 1.
It can be:
“SAME”: If you are trading CALL and incur a loss, you are taking CALL in subsequent Martingale levels.
“OPSITE”: if you are trading CALL and incur a loss, you are taking PUT in subsequent Martingale levels.
“FOLLOW CANDLE COLOR”: You are following candle color in Martingale levels, i.e if the loss candle is RED, you are taking PUT in subsequent candles.
“OPPOSITE CANDLE COLOR”: You are taking opposite candle color trade, i.e if the loss candle is RED, you are taking CALL in subsequent candle.
GROUP: TRADE MANAGEMENT
Initial Investment Per Option: Initial investment amount per trade
Payout: Per trade payout in percentage
Use Specific Session: Select to test trade on specific session.
Trading Session: Select trading session. Only workable if Use Specific Session is selected.
Use Date Range: Select to use test trades between dates.
Start Time: Select Start Time. Only workable if Use Date Range is selected.
End Time: Select end Time. Only workable if Use Date Range is selected.
Early Quit: Select to quit trade for the day after consecutive win or loss
Quit Trading after Consecutive Win: Number of consecutive wins. Only workable if early Early Quit is selected.
Quit Trading after Consecutive Loss: Number of consecutive losses. Only workable if early Early Quit is selected.
Buy/Sell Flip: Use buy signal for sell and sell signal for buy.
GROUP:STATS
Show Recent Stats: Show win trades in last 3,5,10,15,25 and 30 trades.
Show Daily Stats: Day wise win trades and total trades.
Show Monthly Stats: Month wise win trades and total trades.
Result and stat output:
Back tester without any strategy.
Strategy added with default option.
Stats with 7 Martingales. You can test up to 15.
Optional Stats:
Example Strategy code used :
//@version=5
indicator("Binary Option Strategy",overlay = true)
length = input.int(7, minval=1)
src = input(close, title="Source")
mult = input.float(3.0, minval=0.001, maxval=50, title="StdDev")
basis = ta.sma(src, length)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
fab_candle_upcross=(high< upper and low>basis)
fab_candle_downcross= (high< basis and low>lower)
up_cross=ta.barssince(ta.crossover(close,basis))
down_cross=ta.barssince(ta.crossunder(close,basis))
is_first_up=false
is_first_down=false
if fab_candle_upcross
for a=1 to up_cross
if fab_candle_upcross
is_first_up:=false
break
else
is_first_up:=true
if fab_candle_downcross
for a=1 to down_cross
if fab_candle_downcross
is_first_down:=false
break
else
is_first_down:=true
//strategy for buying call
is_call=(is_first_up or is_first_down ) and close>open
//strategy for selling call
is_put=(is_first_up or is_first_down ) and close<open
Signal = is_call ? 1 : is_put ? -1 : 0
plot(Signal, title="🔌Connector🔌", display = display.none)
Binarytrading
Binary Option Strategy Tester with Martingale-Basic V.2In Binary options, strategy testing is a bit different. The strategy result depends upon expiry intervals and payout ratio.
My previous script was a try to resolve this but has some bugs in specific choices. The new version overcame those and added some new features useful for binary option strategy testing.
Assumption:
We are opening position at next candle after signal come
Chart interval is option expiry time.
We are taking the position at opening price
Our call will be profitable if we get a green candle and put will be profitable if we get a red candle
We can open only one trade at a time. So if we are in trade, subsequent signals will be ignored.
All Input Options:
Test Call/Put individually or both. Default BOTH
Select up to 5 Martingale levels. Default 2
Type of Martingale Trade. Default “SAME”
“SAME”: If you are trading CALL and incur a loss, you are taking CALL in subsequent Martingale levels.
“OPSITE”: if you are trading CALL and incur a loss, you are taking PUT in subsequent Martingale levels.
“FOLLOW CANDLE COLOR”: You are following candle color in Martingale levels, i.e if the loss candle is RED, you are taking PUT in subsequent candles.
“OPPOSITE CANDLE COLOR”: You are taking opposite candle color trade, i.e if the loss candle is RED, you are taking CALL in subsequent candle.
Select Specific Trading Session. Please select “USE SPECIFIC SESSION”. Default: TRUE
Put the investment amount per option. Default: 10
Payout ratio. Default: 80%
The strategy is taken from Vdub Binary Options SniperVX v1 (by @vdubus). I have deleted extra parts and kept only the necessary parts.
Result Table
Signal and Win Levels:
Signal and Loss:
Please note that Binary options trading is very risky. You must be aware of the risk and be willing to accept them in order to invest in binary options. Only invest what you can afford to lose. The past performance of any trading system, strategy, or methodology is not necessarily indicative of future results.
Binary Option Strategy Tester with MartingaleIn Binary options, strategy testing is a bit different. The script is just a try to test Binary options strategies.
Assumption:
We are opening position at next candle after signal come
We are taking the position at opening price
Our call will be profitable if we get a green candle and put will be profitable if we get a red candle
We can open only one trade at a time. So if we are in trade, subsequent signals will be ignored.
The script is not counting your profit or loss, it just counting the winning and losing trades.
Input Options:
Choose long only or short only test. Default is both.
You can continue your trade with Martingale Level, up to 5. Default is 1 (no Martingale)
You can choose Martingale trade type
SAME: if call subsequent trade will be call only and vice versa
OPPOSITE: if call subsequent trade will be put
FOLLOW CANDLE COLOR: Subsequent trade will follow previous candle color
OPPOSITE CANDLE COLOR: Subsequent trade will opposite of previous candle color
You can choose trading session to test. Default is false.
The strategy is taken from Vdub Binary Options SniperVX v1 (by @vdubus) . I have deleted extra parts and kept only the necessary part.
Without Martingale
Result Table
With Martingale
I am very new to Pine script, so waiting for your comments and review.
Binary Option Turbo M1 by MercalonaAuto risk
You are diving into a high-risk investment. We are not responsible for losses, the only certainty is that they will come, the most important thing is to manage them. Test this script on a demo account, and use the backtest. Make sure you are familiar with it before using real money. Use all your experience and other assistance for better accuracy. Do not risk more than 5% per day. Try to use a maximum of 1-2%.
Recommendations
It is highly recommended whenever trying to make entries in stronger areas
Try to make entries when the graph is in trend and with good movements. It is better to lose an entry than to lose money.
Check if the chart is already with good accuracy before making your entry. At least 65%.
Try to make entries when the payout is above 75%. This will help you with risk / return.
About the Script
This script was developed to identify good entry areas quickly and safely. We recommend using in binary option, where the next candle is successful. Although it can also be used in other markets, using a larger timeframe, such as 1h or 4h.
How it works?
This script is based on trends, up and down, where up trend, we look for "CAL" entries in retractions, and down trends, the entries will be "PUT". Always operate in favor of the trend for better accuracy. A session filter is also displayed. The Filter is based on the New York and London session. In these periods there is a greater market volatility, where it is recommended to operate and avoid losses. In addition, there is also a (no trend) filter. Where it shows whether the chart is volatile or not, even during open market sessions.
What is the final result?
This script will show good entries areas. These areas are represented with lines. The lines closest to the current price are thinner lines. And the lines far from price are thicker. The thick lines represent stronger areas and are resistant to price. This means that there is a greater possibility of reversal when prices touch these lines.
Settings (mode)
There are 2 configuration modes:
1. MODERATELY
2. AGGRESSIVE
Using the "MODERATELY" mode, the signals are rarer, here we expect the price to hit the best areas indicated. To place the entry. Here we expect greater accuracy.
In "AGGRESSIVE" mode, we don't expect good entries. Whenever the price hits entry areas it will be considered an entry. In this case, the accuracy is less, since the areas do not have a great potential for reversion.
Settings (Length)
Here the number of bars can be configured for the calculation of support and resistance areas. A low amount may not be enough to check for good areas. And a very large area can be confused with areas that really matter. Try to check the best quantity for the chart you want to trade.
Settings (Win Rate Limit)
Place the limit of analyzed signals in this field. It is restricted to the “Win Rate Max Bars” field, which will be explained below. If the configured limit is not reached, the cause is that there were not enough signals within the configured bar limit. ATTENTION: Understand that a high value will cause a slow calculation of the script.
Settings (Win Rate Max Bars)
This is information is used to limit the number of bars in the “Win Rate” calculation. ATTENTION: Understand that a high value will cause a slow calculation of the script.
Settings (Sessions)
There are 2 other configurations. New York session and London session. You can see how it works reading below.
Indicator “Stars of Recommendation”
The indicator has 3 stars of recommendation.
NO TRADE (There is no positive point to take chances)
In Session (At least 1 open market, this is a positive point to take chances)
In Trend (There is a good probability of assertiveness when it is on trend)
More than one identified area. (Generally, when there is more than one area, the more distant areas become stronger and stronger. This is a positive point when the price reaches them.)
Good luck ❤️
Please feedback us.
We hope this helps you!
Strategy for binary options Signal for a trend reversal vol.2
Описание на русском см.ниже
This is a strategy for binary options. You can work on all TF and currency pairs, but the settings are more adapted for TF M5. TF 3. TF 1. The strategy consists of a set of indicators access to which you can get from me (See my scripts)
The levels of support and resistance are drawn automatically which is very convenient for beginners.
If you strictly adhere to the recommendations and work within the framework of this strategy, the percentage of positive deals is about 80%. The strategy is designed to work at equal rates without the participation of martingale and as consequences with minimal risks.
If you are interested in this script, then to get access to the test period, write me in private messages! (comments rarely look better write in private messages)
Everything is shown in great detail in the photo below!
Signal for purchase 1
1. there was a signal to buy on the chart
2. red dots appeared on the two indicators below the graph.
3. The signal line on the two indicators below the graph went beyond the colored area.
4. entrance to one candle for 2-3 seconds before closing, depending on the chosen T.F (T. F. = transaction time)
Signal for purchase 2
1. the signal line on the two indicators below the graph simultaneously sharply went beyond the colored zone. (use only in lateral price movement)
2. entrance to one candle for 2-3 seconds before closing, depending on the type of TF you chose (TF = transaction time)
Sell signal
Special attention! How to act when a long trend! (Look at the photo)
Русская версия .
Это Стратегия для бинарных опционов. Можно работать на всех ТФ и валютных парах, но настройки более адаптированы для Т.Ф М5 . Т.Ф 3. Т.Ф М 1. Стратегия состоит из комплекса индикаторов доступ на которые можно получить у меня ( Смотрите мои скрипты )
Уровни поддержки и сопротивления рисуются автоматически что очень удобно для новичков .
Если строго придерживаться рекомендаций и работать в рамках данной стратегии процент положительных сделок около 80 % .Стратегия рассчитана на работу равными ставками без участия мартингейла и как следствия с минимальными рисками .
Если вам интересен данный скрипт то для получения доступа на тестовый период пишите мне в личные сообщения ! ( комментарии смотрю редко лучше пишите в личные сообщения )
Всё показано очень подробно на фото ниже!
Сигнал на покупку 1
1.появился сигнал покупать на графике
2.появились красные точки на двух индикаторах под графиком .
3. сигнальная линия на 2 индикаторах под графиком вышла за окрашенную зону.
4.вход на одну свечу за 2-3 секунды до закрытия в зависимости от выбранного вами Т.Ф ( Т.Ф = время сделки )
Сигнал на покупку 2
1. сигнальная линия на 2 индикаторах под графиком одновременно резко вышла за окрашенную зону. ( использовать только в боковом движении цены )
2.вход на одну свечу за 2-3 секунды до закрытия в зависимости от выбранного вами Т.Ф ( Т.Ф = время сделки )
2.
Сигнал на продажу
Особое внимание! Как нужно действовать при затяжном тренде ! ( Смотрите на фото)