There is a very big difference in the result when using the set(BINARY) mode compared to the result from tradingview (pine-script)
What is the difference?
In the number of orders, in the results of %winRate, in the number of losses and winnings.
General testing logic that works in pinescript:
1. If we have received a condition for entering a trade, the result will be counted after the candle is completed.
For example: we entered the transaction 00:00 exit 00:15 (15 minute bar)
2. If at the time of the formation of the candle from point 1 we receive a new signal, at the end of the formation, namely at 00:15, there will be an entry into a new order again until (00:30).
3. If the closing price of the bar was greater than the opening price of this bar, then the signal is considered correct and is counted as + (and vice versa if minus (let me remind you that the system is only for long))
What I noticed was strange:
In addition to different results, I noticed in the logs that there is no coincidence in the expiration time, namely, when the expiration time is 15 minutes - the time of entry and the time of exit in the log (entry at 00:00 exit 00:30):
[579: Mon 22-03-21 00:00] (1.07434) < -------- Also if 1.07434 is entry price, i can't find that in price in tradingview fxcm chart ?
[AUD/NZD::L57906] Long 1@1.07422 x at 00:00:00 < --------- * Long at 00:00:00 *
[580: Mon 22-03-21 00:15] -1.00 -1.00 0/1 (1.07365) ** Or Maybe Long at 00:15 ?? :)
[AUD/NZD::L57906] Expired 1@1.07357: -1.00 at 00:30:00 < -------------- * Expired at 00:30 ?? *
If we talk about the correctness of the signals and the correctness of the data, then I compared the signals looking at the Zorro Chart and noticed that the charts 100% match, even some signals are exactly in the same places as on tradingview (specifically in the same places visually on the graph), but to be precise, I noticed that some signals that are on TV are not in the zorro chart.
Extensions:
Q:Which currency pair/timeframe/broker did I test on?
A: AUD/NZD/15M/FXCM (tradingview)
Q: Are you sure you have the same data?
A: Yes, the data was downloaded from FXCM (1M)
A2:
Q: Are you sure that tradingview has an accurate result?
A: Yes, I started from there and tested this system there several times, I created the code and tested it on many scripts, both using the replay function on tradingview and in real time.
Q: Is the result from zorro completely opposite to the result of tradingview or are there similar results?
A: If you test for several years, if zorro shows a result above 56%, then the same code and logic on tradingview will result in about 60-62%, this is about the difference.
In conclusion:
I have been testing zorro for about 2 days, two days ago I started using it, read the documentation and tried to figure out why there is such a difference, but after unsuccessful results I decided to ask a question here
I will be glad of any help, thank you!