Intro to my python-tradingview strategyAfter three years working on multiple trading strategies, I decided to share my experience and my trades. But before going live, I think I need to explain the roadmap I’ve followed so far.
I initially started coding my strategy in PineScript, which is a powerful tool. It allowed me to simply code my ideas and turn them into trading signals using alerts and conditions. I’m sure you’ve already watched dozens of YouTube videos on how to use webhooks and TradingView to send signals to your trading platform. Anyway, I began developing my strategy in Pine and used webhooks to connect to Tradovate. I went live after a few months of testing—which, of course, was my first mistake. In January 2022, my algo went live. I traded on a strategy that was just tuned on seen data, manually flipping parameters to maximize PnL—a purely overfit model—and I went live with real money. Anyway, the first month was positive and I thought I was the best trader in the world. I even told my wife we were going to be rich, like nothing could stop us. But after three months of trading, I lost—obviously. It was a bummer, but I knew where the problem was: lack of proper backtesting.
So that was the moment I moved my code to Python. It took me a couple of weeks to build an end-to-end backtesting framework in Python. I used Backtrader as a backtesting tool, which is awesome. I’ll have some videos soon to explain more about that. Anyway, moving my code to Python gave me the luxury of backtesting and creating rolling walk-forward optimizations, allowing me not only to refine my strategies but also to test them on 5–6 years of historical data.
Long story short, working with Python enabled me to come up with five different strategies for NQ and ES. I plan to share those trades, but before that, I thought I should share my journey first.
Please leave comments and follow my channel. More to come.
Testing
Is there a secret profit day in EURUSD?Unfortunately, no secret day of the week has been found for the Euro!☹️
Hello, on a day off you can take your mind off trading and do important things like analyzing and looking for patterns.
Today I would like to present the result of a statistical test for statistically significant relationship between the day of the week and the price movement from the opening to the closing price of the day.
Instrument: Euro (Forex)
Data set: from 01.03.2022 to 21.02.2025
Test: ANOVA (Analysis of Variance)
Here are the steps taken:
1.Calculate the price change (close - open) for each row in the data frame.
2.Group the data by day of the week and calculate the average price change for each day.
3.Perform an ANOVA test to determine if the differences in the average price change are statistically significant.
Test results and interpretation:
👉The result of the ANOVA test is a F-value of 1.23 and a p-value of 0.30.suggests that there is no statistically significant relationship😞 between the day of the week and the price change from open to close.
EURUSD Testing Strong Support ZONE Near 1.0700EURUSD Testing Strong support zone near 1.0700
EURUSD is currently testing strong support zone near 1.0680:1.0700.
This area seems poised to push the price up again in the coming days making it a potential shortterm trade opportunity.
The US will release the consumer price index CPI data on wednesday so the market is likely to speculate again .
The US consumer price index YOY For October is expectedto be 2.6 percentage vs 2.4 percentage the previous month.
Energy YOY for October is expected to remain 3.3 percentage.
You mayfind more details in the chart thankyou and Good luck
Bitcoin Testing and Testing Demand ZoneBitcoin is once again seeking to fall into our equilibrium zone (purple zone). Bitcoin has tested this zone several times, and if we look at the overall structure, Bitcoin continues to bounce within a range.
Our plan remains in place. Remember that markets need to make pauses or retests before taking action. Additionally, we must consider that markets, in general, have been bearish—we are in a bear market. However, the points of interest I have marked are based on historical prices and significant liquidity, so we can expect aggressive movements once the price reaches the indicated zones.
Thank you for your support, and don't fear these bear markets; on the contrary, we should average in and take advantage of the opportunities they offer us.
I'm going to short thisSee the double top? When the markets open today I'll put a sell order, prices is testing the broken support. At the same time SPY is testing the 500 level and I think is going to be rejected again so expect another sell off soon. Is going to take more for the market to break out the 500 level. We will see a lot of volatility in on the upcoming days and I intend to use it in my favor.
Double top - PutsI bought a bunch of puts on this one. Market still on correction. Double top confirmed, testing the broken support and failing.