FAQs

Find answers to some of the most frequently asked questions

Why do I get different results when applying an optimization to the chart?

  1. Are you using the same asset/timeframe/exchange?

  2. Are you limiting the trading time of the backtest?

  3. Have you applied the same commission and slippage?

  4. Are you using the same data for the backtesting? A common issue is that as we are using the Premium subscription on TradingView, we have 4x more data available then lesser tiers. So if the backtest results are on our whole available data and you don't have the highest tier, you will only see a part of our results (the newest part).

  5. Are you using the same exact settings? If you are trying to upload the provided .csv file with TradingView Assistant, some of the settings could not be set properly. Try re-downloading the original file and set it again. Never open the .csv with any other application then TV Assistant, since that can also cause compatibility issues.

  6. Is the optimization up-to-date? If you are comparing current results with old ones, it can happen that the overall performance has changed due to the recent period. This can have higher effect if you are using a small amount of data (like in 4.)

Why is there something wrong trading in lower timeframes like 1 to 5 mins?

Lets say you have a 0.05% commission and your average long trade move from entry point to take profit is 0.5% on a 5 minute timeframe then the fee effect is 0.05/0.5= 10% on a 15 minute chart your average long trade move from entry point to take profit will most likely be 3x bigger compared to the 5 minute chart (cause 15 minute chart =3x5 minute candle) then in this case the fees are still 0.05% but the average trade move has tripled. So now the fee effect will be 0.05/1.5=3.33% meaning you give back only 3.33% of your profits as fees instead of 10%. Following this example on a 1 minute chart fee effect would be 50%.

If I have a good performing strategy, would it be a disadvantage to run it e.g. on 5 cryptos?

This is where diversification comes in. We have not yet put much focus towards this topic, but will do in the future. The reason you don't want to automate a single optimization on for example 5 crypto pairs is because all of the assets have some correlation especially in crypto. The problem with that is when they profit they will profit on a lot of pairs, but that's true for losing streaks also. So when the optimization start entering into bad losing trades it will probably (but not always) enter into losing trades on multiple assets. And that will lead to multiple losses at the same time and can lead you to blowing/losing your whole capital.

Which trading strategy backtesting channel(s) are proven to share real or fake backtesting results?

Proven to share REAL results: - TradePro

Proven to share FAKE results: - TradeIQ - Traders Landing - Trade Genius

Check out the Full Series in which I proved every YouTube backtesting channel (mentioned above) if they post real or fake backtesting results:

I enabled automation and my chart is all messed up and cluttered, what can I do?

Unfortunately there is no way to show the original labels and the automation feature together, since we are using order comments to set up the webhooks and TV automatically uses the comments as labels in this case. The best you can do is disable them in the properties, that way your chart will be much less cluttered and you will still have information about the order on the chart (the color of the arrows show if the order was entry/exit or an early exit), and the signal plots show if the order was long/short.

I am experiencing problems while using the strategies on assets where whole contracts are traded exclusively

This issue will only affect assets that can only be traded with whole number of contracts. The problem is that when calculating the number of contracts to buy, the number is then clipped to a whole number. This can cause a huge increase or decrease in current profits, causing either the number of contracts to buy to go overboard or the base capital to go to 0 (hence the difference in the number of trades). Since TradingView only allows trading whole number of contracts in these cases, only the "Contract(s)" order size will work here as intended. Although other type of order size can also be used (like 'Risk Percentage (initial)'), since the clipping of the number of contracts, it will not follow the intended behavior.

Can I transfer my position size to the automation platform?

Position sizes are not transferred through the Webhooks, you will need to specify it on the platform, that will be used when opening trades. Webhooks will only trigger the action stated in the Automation section: meaning Enter Long, Exit Long, etc.

I set up a trailing loss in my strategy that I want to automate. Should I set up anything extra on the platform?

No. If the strategy on TradingView is set up with a trailing loss, you don't need to set up any additional stop losses in 3Commas or other platforms. All entries and exits of the strategy will be handled by the TradingView strategy itself.

I set up a strategy with alerts for automation. Can I use that chart window for anything else?

TLDR: you can reuse the same chart layout but we don't recommend it.

Alerts are rendered server-side, so that means once they are set they should work in their own instance, disregarding the chart and the browser window itself. Despite this, we don't recommend reusing a chart window after setting up the alerts.

What we always do is the following: Open 1 chart layout, rename it to something easy to ID (for example #001 Trading - TEMA - BTCUSDT - 15M), set it up and start the alert. Rename that alert with the same identification method, and only touch that chart layout when you want to modify the alert as well. When you want to make another one, just make a blank chart layout and use another ID (like #002 Trading).

If you do it this way, you will always have a possibility to recheck the settings of your strategy currently running with an alert. Also always keep in mind that when you want to change a strategy with even some slight modifications of the settings, the alert should be redone as well.

I am manual trading and would like to see an approximate Stop Loss and Take Profit level when the strategy enters a trade. Can I do that somehow?

Yes, what you can do is enable the Allow early TP/SL plots settings in the Plot Settings category. Note: with some settings or strategies this will not results in an exact match of the used SL, so please double check your chart before using it.

You can also display this information by settings up an alert with this message: SL: {{plot("Long Stop Price")}} {{plot("Short Stop Price")}} TP1: {{plot("Long Exit Price")}} {{plot("Short Exit Price")}}

You can also apply the Use Automation setting and add {{strategy.order.comment}} in the alert message as well. Of course this will not actually automate the process, but you will see information about the type of the order in the alert as well.

I am setting up an alert and I see a warning message for repainting. Why is this?

TradingView published an update in 2023 and now gives a heads up when opening alerts if it deems the strategy/indicator as "may cause repainting". This is tested very strictly, and it can be triggered by simple usage of some features in the code. All of the features and filters in every TradeSmart script was tested to see which can cause this warning, and they have been updated accordingly.

In some cases, the repainting warning is inevitable, for example when the feature/indicator uses calculations on multiple timeframes or other candle types, or uses the bar_index feature to get the index of the current bar. Where a feature/indicator like this is used in the strategies, a note in the tooltip can be found, giving a heads-up. We always make sure, that the calculations during backtesting are not using future data.

Can I use TradeSmart strategies for automation on forex?

Yes, our scripts are compatible with every platform that can manage Webhooks from TradingView and connect them to an exchange. If the platform supports the connection to an exchange where you can trade forex, the automation can be done. We suggest checking out Capitalise.ai if you want to explore this further.

I thought fees are calculated: You have 1000$. Fee: 0.05%, you made 100$, paid 0.05% of 1100. Paid 0.55$ in fees. Using 10x leverage would make 1k position 10k and earning 100$, 10100$*0.05% fee = 5.05$ fee

Almost correct. Correction: (using your example) You pay 0.05% at entry (so 0.05% on 1000$ = 0.5$) then you pay another 0.05% at exit on now 1100$ =0.55$ (altough it depend on maker and taker fees and how you enter and exit the position. Limit or Market order) Total fees in this case= 0.5+0.55=1.05$. To have this outcome the asset you were trading should have moved 10% (as 100$ profit is 10% of 1000$) This is hardly or not achievable on a 1-5 minute chart. In the explanation I had above I did not talk about how to calculate fees just the fee effect on different timeframes. you will have much higher fee effect on your profits on low timeframes compared to high ones.

Last updated