I was messing around and made a little script that works best for TRX and XVG for some reason. It is constant for nice 1 and 2% gains. This is a work in progress... if you want to talk about making scripts and crypto, join this discord I just made: discord.gg Comment if you'd like to see more :)
I am still learning pinescript, and part of this was created using the Pine Script language reference manual. This includes looking at the time series, a fixed length, and the default intraday_loss variables. This also includes the basic fixed lengths for an swma (Symmetrically weighted moving average) and the script to start creating a strategy. All in all this...
This is the main strategy that I will be forward testing on demo for a month or two, then making it an EA in MetaTrader4 You can see the code for yourself this time, all the strategy is, is a crossover of various moving averages. Commission included, $10,000 account. Results over the past 3 months, beginning in January 2017.
Version 3 for you guys, just add to favorites and you can use. Only 36 trades since 2017, since that is when the backtesting began. I made the commission more realistic, now it is about 37 pips per trade. Only works on gold, (XAUUSD). Trend Following as you can see. 1 contract size, 1 trade at a time, good proof of how being correct less than a third of the...
This strategy improves on the latest one that I posted in several ways. the %profit is reduced by 3% Success rate reduced by 2% Drawdown decreased by half (from 40% to 20%) Average trade $ increased by $500
Description It's nice to quickly be able to set the backtesting period when writing strategies. To make this process faster I wrote a simple 'component'. So this is not a strategy but rather code you can plug-into your strategy and use if you need that specific functionality. Then it's just a matter of selecting which dates you want to backtest. You can also...
This is a very basic strategy implementation Use as a code stub for your strategy code. I wrote it because I could not find one. This particular strategy goes long on Tuesdays at 10 am and goes short at 3 pm on Thursdays. Because US markets open at 9:30 you have to have your chart in 30 minute or less resolution for trades to fire. You can gut that code...