TradingView
RafaelZioni
Jan 8, 2019 11:01 AM

[Autoview][BackTest] open and close exp 

Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX

Description

So this model is experimental open and close model , with take profit . so far seems ok from point of repainting but I cannot say that its not repaint . so be aware on this issue if you use it in live trade ( its still work in progress)
if you want to make it as a study with alerts just change the strategy to study

The issue with all open and close models in TV that they tend to repaint if we use MTF higher then the time frame that we use . I try to put a filter in order to dump this issue but its still a work in progress

so if you find this model to be repainting please let me know .


you can use the script for other model for back testing ,just remove the model that is control of the buy and sell and put your own model instead .

Release Notes

ok I change to SMA candles it solve me the repaint issue and make better the results
Comments
Contras79
any progress on fixing the repaint issue?
Marko1984
good job, do you have a alert Version?
smythca1
This script looks great.. I am thinking about trading it live 30m BTCUSD. Has the repaint issue been resolved ?? Is it safe to live trade?
RafaelZioni
@smythca1, its repaint so do not trust it
smythca1
@RafaelZioni, Thanks!
theccinc
It is not firing the alerts in trading view alerts.. Is there something I need to change to get them to fire the alerts inside trading view. I added the code you gave perx and added it to my chart. I see the alerts come up on chart just not firing alerts ..I would like the live trade this with a bot.. so I would need the live alerts..
RafaelZioni
@theccinc, try this version I change here the candles - pastebin.com/1TNmYxEd
let me know if it work or repaint ?
theccinc
@RafaelZioni, ok thanks working on it..now..
theccinc
@RafaelZioni, when you uncheck take profit.. you lose the allow long and allow shorts at the same time.. it will only allow one.
RafaelZioni
@theccinc, so far in 1 day running seems that 30 min and 60 min graph time not to repaint :) need another week to run it to confirm
More