Long US 500 Ichimoku
Forums › ProRealTime English forum › ProOrder support › Long US 500 Ichimoku
- This topic has 8 replies, 4 voices, and was last updated 4 years ago by Ichimoku Reading.
Tagged: ichimoku
-
-
08/26/2020 at 11:58 AM #142111
Today, I would like to share with you a strategy developed for the US 500 index
This one relies on Ichimoku to validate the trend and give the signals to enterIts objective is to follow the evolution of the price rise or fall in order to benefit from it.
It also aims to exit the position at the most favorable time to cash out regularly.However, the objective remains a long-term one for annual performance.
The success of the backtest is based on the optimisation of the stop loss and the clear upward trend in the price.
Also, money management is in place to ensure that a crack addict does not destroy the entire portfolio.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778////============================== Basic settingdefparam cumulateorders = false//============================== Money ManagementCapital = 10000Lotss = Capital / 1000 // Value of risk on capital (attention)//============================== setting Managementif Lotss < 1 thenLotss = 1endifset stop loss (Capital*45)/100set stop %loss 9//============================== IndicatorSpanA = (Tenkan[26]+Kijun[26])/2Tenkan = (highest[9](high)+lowest[9](low))/2Kijun = (highest[26](high)+lowest[26](low))/2SpanB = (highest[52](high[26])+lowest[52](low[26]))/2timeframe(1hours)XSpanA = (XTenkan[26]+XKijun[26])/2XTenkan = (highest[9](high)+lowest[9](low))/2XKijun = (highest[26](high)+lowest[26](low))/2XSpanB = (highest[52](high[26])+lowest[52](low[26]))/2timeframe(default)timeframe(4hours)XXSpanA = (XXTenkan[26]+XXKijun[26])/2XXTenkan = (highest[9](high)+lowest[9](low))/2XXKijun = (highest[26](high)+lowest[26](low))/2XXSpanB = (highest[52](high[26])+lowest[52](low[26]))/2timeframe(default)//============================== setting trend BullishT1 = close > KijunT2 = close > SpanA and close > SpanBTrendBullish1 = T1 and T2timeframe(1hours)T3 = close > XKijunT4 = close > XSpanA and close > XSpanBTrendBullish2 = T4 and T3timeframe(default)timeframe(4hours)T5 = close > XXKijunT6 = close > XXSpanA and close > XXSpanBTrendBullish3 = T5 and T6timeframe(default)TrendBullish = TrendBullish1 and TrendBullish2 and TrendBullish3//============================== setting SignalS1 = low =< KijunS2 = low =< SpanAS3 = low =< SpanBS = S1 or S2 or S3Signal = TrendBullish and S//============================== setting Buyif Signal thenbuy lotss contract at marketendifif close < kijun and close > positionprice thensell at marketendif08/26/2020 at 12:05 PM #142587Thanks for the strategy, however I think like for this other strategy: Long US Tech 100 Ichimoku strategy that there might be something wrong in the stoploss calculation at line 18?
08/26/2020 at 2:24 PM #142611Thanks for sharing.
I have some doubt about the interest of it because the index curve and the equity curve are very similar, and it is a long only strategy on a bull market index… so why not just buy and hold ?
And the algo often exits a position and enters a new position a few time after, so the exit orders are useless most of the time.
08/26/2020 at 5:48 PM #142635Hello Nicolas, indeed, it is not conventional…
However, it is a method I use to use a %Stop
In limited risk CFD account, this kind of stop are not accessible, surprisingly, if I place a normal stop then a %stop it works…It’s adapting to the limited risk account.
This message will also be on this post like that x)
08/26/2020 at 5:56 PM #142636Hello Roger,
Indeed, this is correct.
That was also the goal of this strategy, closed to cash in regularly.
In this way, a reinvestment of the profits can be envisaged.Otherwise indeed, the performances are almost identical without closing.
However, the code can be modified and improved and shared again, it remains a “basic” idea.
This type of strategy remains simple and profitable over the long term with high potential markets.
08/27/2020 at 10:38 AM #142695And the algo often exits a position and enters a new position a few time after, so the exit orders are useless most of the time.
Useless with hindsight, but if price had gone against the exited position then not useless?
I don’t mind a strategy that exits often as long as the exit is at a logical place that warrants an exit … price is showing signs of reversing.
08/27/2020 at 7:23 PM #142747Hello Roger,
Indeed, this is correct.
That was also the goal of this strategy, closed to cash in regularly.
In this way, a reinvestment of the profits can be envisaged.08/27/2020 at 8:48 PM #142762Actually the exit condition is :
123if close < kijun and close > positionprice thensell at marketendifSo you are right, it may be a “good reason” to exit. My bad !What i said could be relevant if there was a target price, and in this case a trailing stop could avoid paying the broker spread so many times.08/28/2020 at 10:20 AM #142793The problem with setting a shorter stop on this value is that the backtest would not be efficient.
But it is fresh that closing so many times necessarily increases the costs…
-
AuthorPosts
Find exclusive trading pro-tools on